Deploying Changed UDO to PD
Hi All
We are running TR 9.2.5.4 and seem to be having an issue with a Custom script that has been changed and re-deployed to PD.
When originally deployed the script generated the following error:
{
"SYS_CUST_GetRuntimeAttributes": {
"Exception": "Exception",
"Message": "java.lang.ArrayIndexOutOfBoundsException: 2"
}
}
Which I resolved by putting a "try { } catch (Exception e) {}" structure around the offending lines of code. When I test the script in the Orchestrator Studio it works perfectly:
String[] words;
words = name.split(' ');
try {
email = words[2] + '.' + words[1] + '@domain.co.uk';
}
catch (Exception e) {
email = "e1.support@domain.co.uk";
}
I have deployed the change to PD, but still get the same error though I can see the corrected script within the PD Orchestrator Studio.