Getting the following error when running a script agent:
---
Line 169,410: Canonical data transform failed. Some agent data may be lost: java.lang.IllegalStateException: Error processing incoming data for node path: [FglAM::MyScriptAgent-1_0_0/MyScriptAgent_CDT-1_0_0/cdt.xml]/SPI:SPI/MyScriptAgent:*/MyScriptAgent:*/row:row/timeDiff.Integer.obs: java.lang.IllegalStateException: Error processing incoming data for node path: [FglAM::MyScriptAgent-1_0_0/MyScriptAgent_CDT-1_0_0/cdt.xml]/SPI:SPI/MyScriptAgent:*/MyScriptAgent:*/row:row/timeDiff.Integer.obs: java.lang.IllegalArgumentException: Type 'foglight-5:Integer:2' does not have a property with the name 'current'
---
The script returns:
Integer is not a valid type. When using observations, script agents only accept the .obs designation when the type is Metric or StringObservations. Other types are not supported as observations. But the type specification is only needed if it is not a metric.
The example above should be:
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center