Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

With Discovery Patterns how to extract an item from a list without the Java ClassCastException Error

RGreene
Tera Guru

I am extending a custom pattern for iLO discovery.  In the pattern a HTTP Get Call to a url based xml query is asked of a device that comes back with a list of items. Parsing is delimited Text.  I am attempting to get the serial number.  See the image below of my current step.

When this is run it finds the value but throws an error:
System error has occurred, exception is: ClassCastException : class java.util.ArrayList cannot be cast to class java.lang.String(java.util.ArrayList and java.lang.String are in java.base of loader 'bootstrap')

Any suggestions to get around this error?

Screenshot 2024-09-25 074151.png

0 REPLIES 0