Unable to create serializable iterator of class: class java.lang.String
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 02:46 AM
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 :
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.
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
Even if I have specified at the Action level that the Outputs are of Type Array.String
Script Outputs
Action Outputs
Does anyone have an idea how to solve this error ?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2025 09:15 PM
Hi @VictoriaM ,
Check out below links where solution is provided to similar issues
Using list collector in Flow Designer 'For Each loop' by converting string into array of string
How to Iterate through a List Collector Variable in Flow Designer
Regards,
Sai Kumar