on 06-16-2010 9:47 AM
Hi,
I have configured the role owner approval workflow, where the application takes approval from role ower everytime it add the role to users.I am facing following error message at the pass "preproceesig role owners".
Error: Running pass failed with unhandled exception
org.mozilla.javascript.EvaluatorException: Invalid JavaScript value of type com.sap.idm.ic.DSEEntry
warning: Executing SetDefaultApprover_RoleResponsible(MSKEYVALUE - {MX_APPROVERS=$FUNCTION.SetDefaultApprover_RoleResponsible(%MX_ATTRIBUTE_VALUE%)$$, MX_ENTRYTYPE=MX_PENDING_VALUE, MSKEYVALUE=%MSKEYVALUE%}) got RuntimeException - org.mozilla.javascript.EvaluatorException: Invalid JavaScript value of type com.sap.idm.ic.DSEEntry HINT: Check line 5 in the script SetDefaultApprover_RoleResponsible
I have the following script:
// Main function: SetDefaultApprover_RoleResponsible
function SetDefaultApprover_RoleResponsible(Par){
var role = Par;
var roleOwners = uIS_nGetValues(role, "MX_OWNER");
return roleOwners;
}
Please let me know any changes in the script, as the warning suggests to check line 5.
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chennai,
Another thing you may want to check is the runtime engine type since this is a java script then you must make sure that the job/task is Runtime Engine is set to "Java"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chennai,
The syntax of your script looks correct. One thing I would caution is to be sure that you have declared the name properly. I have run into trouble at times because I changed the name inside of the script to something different and even when I tried to correct it I eventually had to recreate it to resolve the issue. Also, be sure there are no hanging spaces, and that you declared the correct attribute in the pass. Hope this helps!
Regards,
Nathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello.
Where do you call the script from?
A ToGeneric pass or as a script in a row in a ToIdentityStore pass?
Best regards
Dominik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.