on 04-01-2015 5:09 AM
Hello Experts,
I am receiving an error whenever i am executing a java script file. I am calling the script in the below fashion.
MSKEYVALUE - $FUNCTION.DP_getMskeyValueForUser(%ABCD01%)$$
function DP_getMskeyValueForUser(Par){
---- Here we have written logic---
var result = uSelect(query);
result = DP_generateId("CREATE");// calling another script
return result;
}
function DP_generateId(Par){
--------------Here Code Logic ----------------------
--------At ending setting the output value and storing it in the context variable
uSetContextVar("new_mskeyvalue", newMskeyValue);
return newMskeyValue;
}
While executing i am getting an error message at the above highlighted part stating that got RuntimeException - org.mozilla.javascript.EvaluatorException: uSetContextVar: Only valid for Provisioning jobs at the line
Can you kindly please help me with this error.
Regards,
DP
Are you calling the uSetContextVar from batch job or provisioning task? I think it only works from provisioning tasks (tasks in Id Store not from jobs in Job Folder).
regards, Tero
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi JP and Tero,
the answers were helpful. By mistake i was using the scripts used for the same job, now i have re written the scripts.
Regards,
DP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.