we are running IDM 4.6.1 on SLES 12 and we dp our deployments with Designer LDAP 4.6.1.

We introduced a new ECMAScript object only containing four functions. All function tests within the ECMAScript editor were successful.

But when calling the custom function trough an xpath argument, one function is not found durig execution of the policy.

[08/10/17 08:24:03.027]:User Management ST: token-xpath("es:returnJValue($current-node,'Referenz')")
[08/10/17 08:24:03.034]:User Management ST:
DirXML Log Event -------------------
Driver: \IDMS-DEV\tu-darmstadt\res\DriverSet\User Management
Channel: Subscriber
Status: Error
Message: Code(-9131) Error in vnd.nds.stream://IDMS-DEV/tu-darmstadt/res/DriverSet/User+Management/Subscriber/tudaUMbase-sub-etp-HandleModifyEvents#XmlData:143 : Error evaluating XPATH expression 'token-xpath("es:returnJValue($current-node,'Referenz')")' : com.novell.xml.xpath.XPathEvaluationException: function 'es:returnJValue' not found.

This is the content of the ECMAScript Object:
// load the compatibility functions
* Check if the String is a valid JSON Object
* Returns true if JSON is valid, false if not
function isJSON(str) {
    try {
    } catch (e) {
        return false;
    return true;
function setJSONValue(jstr,name,value)
jObject = JSON.parse(jstr);
if (typeof jObject[name] !== undefined)
                               jObject[name] = value;
return JSON.stringify(jObject);
 function returnJValue(jstr,name)
jObject = JSON.parse(jstr);
retvalue = jObject[name];
return retvalue;
Any ideas?

Kind regards,