Seeing "Cancelled : error="Unable to serialize process plan to JSON"" in flow designer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2022 06:23 PM
Hi everyone - hoping someone has seen this or knows what to do about it.
I'm building some automation in Flow Designer using some integration components like JSON parser and JDBC connectors in my Flow, and the outputs of some of these actions are JSON/Object type (not sure if that has anything to do with the problem).
I'm seeing this after using a "for each" on an object array:
An example:
Now, note that when I add a Wait component (set for only 1 second), i'm able to get past the apparent error:
results in this (i wish this completely fixed the whole process, but there are other parts that are not fixed with this method😞
All of this is to say that I'm stumped and can't find much on this error. I've made adjustments to the output of my JSON component (action step 1), but i'm not 100% sure this has anything to do with how i've coded my components.
Any help, suggestions, great ideas, or requests for more info are very much welcome. Thanks for taking the time to read and assess!
Andrew

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2022 02:14 PM
Well not sure if it'll help anyone, but i had to separate almost all of the actions out into subflows. maybe the nested "for each"es was having issues? not sure, but using nested and multiple subflows is allowing the complete process to now complete as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 05:14 AM
Did you find solution for this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 05:45 AM
Nope! just had to break the flow out into subflows instead of using the nested loops. never found out why it was happening or how to directly fix it, though.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 02:46 AM
Hello @africo,
I am having this problem and some others like "invalid context id =" for example.
did you also have problems other than "serialize process plan to JSON"? if you did, did your solution in breaking it out to subflow fix those as well?
And my problems are not constant but rather sporadically, was it the same for you?
best regards