Troubleshooting
Problem
When submitting a JavaScript Native Command Set, that uses parameters, the UOW log contains a "ReferenceError:
Symptom
A JavaScript Native Command Set is written containing code such as the following:
//#js
function execute(log,dev,sys) {
var stringToLog = $stringToLog$;
log.info(stringToLog);
return true;
}
The end-user submits the Native Command Set against a device and supplies a value for the parameter (stringToLog in the above example):
enterParameters.jpg
But the submitted UOW contains a ReferenceError quoting the actual parameter supplied by the user:
(47) Failed to execute script contents : sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "myTestValue" is not defined. (<Unknown source>#3) in <Unknown source> at line number 3
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
09 May 2025
UID
swg21614665