The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Sub-Flow Output Error in Flow?

Matthew Gill
Tera Expert

I am calling Sub-Flows within a Flow. The Sub-Flows return [status] which is a True/False variable. The Sub-Flow tests correctly, but when it is called from the Flow the Sub-Flow completes, returns the appropriate output when looking at the subflow execution details, but the Flow execution details show an error for the Sub-Flow task. 

It is as if the Sub-Flow output variable is not being passed back to the Flow. I have ensured that the variable types are the same, and the Sub-Flow is set to 'Wait for Completion). Any advice or guidance is appreciated. Thank you!

1 ACCEPTED SOLUTION

Matthew Gill
Tera Expert

Alright... Support figured out what the issue was.

 

Even though the error was being shown on the Sub-Flow call, the issue was actually failing on the Update Record Action. Specifically, updating the 'Actual Start' field. I was updating to " return ( new Date() ); "; however, that field requires a String, for some reason, and was not giving a good Error Code. The workaround is to update to " return ( new Date().toString() ); ". Not ideal, but it works...

 

Thanks everyone for helping!

View solution in original post

20 REPLIES 20

Appli
Mega Sage
Mega Sage

Hi, what exactly error is reported there?

Please see support page with one of possible reasons (recommendation there - set "wait for completion" to true).

Hope it helps

Hope it helps

OlaN
Giga Sage
Giga Sage

Hi,

Can you share your Flow/subflow configuration, and execution details?

Matthew Gill
Tera Expert

find_real_file.png

find_real_file.png

@Appli the 'Wait for Completion' was already set to true.

Hi, if you click the 'Go to error' button does it provide you with any useful logs to help diagnose further?

 

Geoff