02-02-2024 04:58 AM
Hi, I have JSON parser snap in my pipeline and it is getting data from external resources.
Sometimes the data parse is failing due to invalid input. But am not able to capture that input data and error shows only "Invalid Json error" message (as below).
Solved! Go to Solution.
02-05-2024 12:39 AM
Hello @manjunathsinghs,
I'd suggest using the Binary Copy Snap as your starting point. Then create two copy branches: one for storing the payload through the File Writer Snap, and the other for your downstream logic.
Try this and let me know if this helps you.
Regards,
Aleksandar.
02-05-2024 01:53 AM - edited 02-05-2024 01:54 AM
As @Aleksandar_A outlined, put Binary Copy Snap as a first pipeline snap:
Make sure that the both Routes are satisfied, so the data can flow in both outputs:
BR,
Spiro Taleski
02-04-2024 10:23 AM
Using File Writer Snap you can capture/store the incoming data in a file.
02-04-2024 09:43 PM
Hi,
Thanks for reply.
Json Parser snap is the first snap in my pipeline and when the input request is valid and able to parse it and then i can able to capture it using Mapper snap (above screenshot for ref.).
But, if the input request is not valid and failed at parser snap. then i donno how to capture that input data.
So, Not sure how File Writer snap can help to capture the input request from parser snap? Can you please explain where i should use it in the flow.
Thanks.
02-05-2024 12:39 AM
Hello @manjunathsinghs,
I'd suggest using the Binary Copy Snap as your starting point. Then create two copy branches: one for storing the payload through the File Writer Snap, and the other for your downstream logic.
Try this and let me know if this helps you.
Regards,
Aleksandar.
02-05-2024 01:53 AM - edited 02-05-2024 01:54 AM
As @Aleksandar_A outlined, put Binary Copy Snap as a first pipeline snap:
Make sure that the both Routes are satisfied, so the data can flow in both outputs:
BR,
Spiro Taleski