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

africo
Tera Contributor

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:

find_real_file.png

An example:

find_real_file.png

 

Now, note that when I add a Wait component (set for only 1 second), i'm able to get past the apparent error:

find_real_file.png

results in this (i wish this completely fixed the whole process, but there are other parts that are not fixed with this method😞

find_real_file.png

 

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

4 REPLIES 4

africo
Tera Contributor

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.

lakshmi75
Tera Contributor

Did you find solution for this?

africo
Tera Contributor

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.

Community Alums
Not applicable

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