Skip to Content

SAP IDM 7.2 - Identity Center Unable to recognize the java script functions

Dear Experts,

Suddenly Identity center is unable to recognize the java script functions like split, .length, replace and throwing the below error.

The same job used to work earlier and from yesterday evening onwards it throwing the below error.

IDM version - 7.2 - SP08

Can you please let me know how we can resolve this issue

if(replace_custom_attributes.indexOf(seperator) > 0)
  {
    uWarning("replace_custom_attributes: " + replace_custom_attributes);
    //split into multiple values passed into array -- eg - attr1###val1|attr2###val2 
    sArr = replace_custom_attributes.split(delimiter); //this split function is not working
    //sArr = uSplitString(replace_custom_attributes,delimiter);
    var replaceAttr = "";

    for(var i=0;i<sArr.length;i++)//sArr.length is returning undefined value and so not able to enter the loop
    {
      replaceArr = sArr.split(seperator);
      //replaceArr = uSplitString(sArr[i],seperator);
      replaceAttr = "CUSTOM_" + replaceArr[0];
      sBody = uReplaceString(sBody,replaceAttr,replaceArr[1]);
    }
  }

Thanks in advanace

Regards,

Deva

error.png (5.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Hello Deva,

    you have not yet accepted the best answer. If you found the solution yourself (as it seems), you can post it as an answer and accept it. :)

    You can convert your comment with the solution to the issue into an answer (just click on the "Actions" menu under your post and you'll see the option).

    Please see Jürgen's blog on how to accept an answer and why this is in the community spirit.

    .

    Regards,

    Steffi.

  • Sorry Steffi,

    I have accepted it now and the solution was restart of the IDM server and the database.

    Regards,

    Deva

  • Awesome! No worries, this UI is not exactly helping. Thanks for looking after your questions! :)

    .

    Regards,

    Steffi.

  • Get RSS Feed

4 Answers

  • Best Answer
    Mar 06 at 05:29 AM

    Restarted the IDM Server where component installed and then DB, the issue got resolved. Also found one more issue, I have wrongly passed array value in uWarning Function. uWarning("array: " + array), where it should be as uWarning("array: " + array[0])

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 14, 2017 at 08:50 AM

    you can check the folder \identity center\java and see if any jar files are missing, especially js.jar?

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 14, 2017 at 08:04 PM

    Hello Dev,

    Just to get more insight on the issue, could you please write an on-demand job with a small script using the Split function and confirm whether it's working in the on-demand job. Please share the script and screenshot of the error, if you get the issue.

    Regards,

    C Kumar

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Deva,

      Could you please check your JAVA version and ensure that it must be as per the PAM.

      Is there any recent update to your JAVA file as such error caused by improper JAVA versions.

      Regards,

      C Kumar

  • Dec 15, 2017 at 05:29 PM

    Hi Deva,

    In this case, I would suggest recreating the job/pass and deleting the current one. Sounds like the entry is corrupt and it's not reading the script correctly. You can try just removing and re-adding the script, but that does not always work.

    Matt

    Add comment
    10|10000 characters needed characters exceeded