02-20-2023 02:36 AM
JSON splitter last week was working correctly.
Pipeline was not edited, JSON format did not change, and yet Pipeline is crashing indicating error that JSON splitter is expecting list not an object. Before 17th of Feb it was working perfectly fine. was something changed in snap architecture?
“Failure: Json Splitter expects a list, Reason: Found an object of type class java.util.LinkedHashMap, Resolution: The path $.data needs to refer to a list in the incoming document”
Solved! Go to Solution.
02-20-2023 05:57 AM
The object $data is an instance of Object not an array…
Place a mapper before the JSON splitter then set mapper as pass through enabled
02-20-2023 05:14 AM
Kindly post a screenshot of pipeline validation before the JSON splitter snap
Thanks
02-20-2023 05:52 AM
02-20-2023 05:57 AM
The object $data is an instance of Object not an array…
Place a mapper before the JSON splitter then set mapper as pass through enabled
02-20-2023 06:11 AM
Thanks it seems to work!
Do you know why it was working since like always, till last Thursday 16th of Feb and now it is not? Json is the same structure… It was going smoothly before. This is strange for me, my colleague has the very same issue with different pipeline, different json file, also there was a scheduled task last week and it went smoothly, today he has the same error message…
02-20-2023 06:38 AM
Using jsonPath in the JSON splitter snap will do the work without the additional mapper
I Would prefer this solution 😀
jsonPath($, “$.data[*]”)