Solutions
ForgeRock Identity Platform
Does not apply to Identity Cloud

Empty path name is not legal error with the Groovy connector in IDM (All versions)

Last updated Apr 8, 2021

The purpose of this article is to provide assistance if you get an "Empty path name is not legal" error with the Groovy connector toolkit in IDM.


Symptoms

The following error is shown when using the Groovy connector toolkit:

Empty path name is not legal

Recent Changes

Implemented the Groovy connector toolkit.

Causes

The format of the script file names (for example, updateScriptFileName or searchScriptFileName) is incorrect in your provisioner configuration file (for example, provisioner.openicf-groovy.json), which is located in the /path/to/idm/conf directory.

Solution

This issue can be resolved by correcting the format of the script file names.

The path of the directory where the scripts are all located should be specified as follows depending on the version of IDM:

  • IDM 6 and later: specify the location in the scriptRoots, for example:
  • "scriptRoots" : [        "&{idm.instance.dir}/tools"],
  • IDM 5.x: specify the location in the scriptRoots, for example: "scriptRoots" : [        "&{launcher.project.location}/tools"],

Where idm.instance.dir or launcher.project.location equates to the /path/to/idm directory.

The script file names should then just contain the name of the required script, for example:

"updateScriptFileName" : "UpdateScript.groovy",

See Also

Empty path name is not legal error with the PowerShell connector in IDM (All versions)

Connectors Guide › Groovy Connector Toolkit

Samples Guide › Connect to DS With ScriptedREST

Samples Guide › Connect to a MySQL Database With ScriptedSQL

Related Training

N/A

Related Issue Tracker IDs

N/A


Copyright and Trademarks Copyright © 2021 ForgeRock, all rights reserved.