3 weeks ago
Hello all,
I'm passing a few values to a child pipeline using "Pipeline execute", and I realized that my lists passed as parameters were converted into strings.
I did a quick test and made the "Pipeline execute" snap calling the child pipeline, and that child pipeline as only a mapper that returns the same vales received as parameter:
What I saw in the output of the "Pipeline execute" that returned the values of the child pipeline as well as the original values, is that my lists were converted to strings:
Is there a way to avoid or properly deal with this situation?
Thanks all in advance!
JF
Solved! Go to Solution.
3 weeks ago
Pipeline parameters are always strings only in format, if you need to pass structured data into the pipeline, you will either need to use JSON.stringify and JSON.parse (in the pipeline) to handle that in pipeline parameters, or include the structured data in the document being sent to the pipeline rather than as a pipeline parameter.
3 weeks ago
Pipeline parameters are always strings only in format, if you need to pass structured data into the pipeline, you will either need to use JSON.stringify and JSON.parse (in the pipeline) to handle that in pipeline parameters, or include the structured data in the document being sent to the pipeline rather than as a pipeline parameter.
3 weeks ago
Hello @ddellsperger,
Thanks for your reply, that's exactly what I needed to do. I keep the values as pipeline parameters, and I use the JSON.stringify and JSON.parse as you suggested. It works exactly as expected. 🙂
Kind regards,
JF