Quantcast
Channel: SCN : Discussion List - SAP Identity Management
Viewing all articles
Browse latest Browse all 1754

While Executing a Javascript got RuntimeException - org.mozilla.javascript.EvaluatorException: uSetContextVar: Only valid for Provisioning jobs at line

$
0
0

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


Viewing all articles
Browse latest Browse all 1754

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>