Parent context variable accessed in subflow's first function node yields undefined?

Sorry but that's exactly what the log (and the source code) shows: channels_length is initialized with a value 6 and later in the called child subflow it's undefined.

Sorry, come to this late. But I see that you have a JSON.parse in your function.

It is critical that you ALWAYS wrap JSON statements in a try/catch of their own. JSON is a very picky syntax and where you are trying to rely on it, you always need a way to handle an error. Having just that statement in its own try/catch should let you handle exceptions gracefully or agressively depending on need.

Yepp, it's handled in a try-catch block :slight_smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.