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-05-2024 09:42 AM
Thank You, @SpiroTaleski , @Aleksandar_A .
With your suggestion, am able to capture all the input data coming to my pipeline.
Is there any way i can capture only invalid input data, which fails at json parser?
Thanks.
02-06-2024 01:49 AM
The JSON parser snap will not keep/forward the incoming "invalid" data on a Snap Error view. So, probably you will need to re-design the whole pipeline.
Typically, this kind of issues should be resolved/handled on the source system that actually is sending the "invalid" data to SnapLogic endpoint.
02-08-2024 12:53 AM
Okay Got It.
Thanks @SpiroTaleski .