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