Unable to create serializable iterator of class: class java.lang.String

VictoriaM
Tera Contributor

Hi all, 

 

i am working on a flow that is supposed to get the data from an external system, check if such an incident already exists, if not create an incident. 

 

In a Custom Action I have already set up the REST step and the SCRIPT step. I get two arrays of incident numbers and descriptions : 

VictoriaM_0-1730974954034.png

 

I'm using this action in a flow, where I want to loop through the arrays, check if such an incident already exists, if not - create a new record. 

 

VictoriaM_1-1730975406491.png

When testing, I get the following error :   Unable to create serializable iterator for items: ["INC5468","INC5469","INC5470","INC5471","INC5472"]   of class: class java.lang.String 

 

VictoriaM_2-1730975460127.png

Even if I have specified at the Action level that the Outputs are of Type Array.String 

 

 

Script Outputs

VictoriaM_3-1730976287905.png

 

 

 

Action Outputs 

VictoriaM_4-1730976321043.png

 

 

Does anyone have an idea how to solve this error ? 

 

Thank you. 

 

 

1 REPLY 1

Sai Kumar P
Tera Guru