cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

JSON snap not working as expected

dabalka
New Contributor II

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โ€

image

1 ACCEPTED SOLUTION

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

image

View solution in original post

16 REPLIES 16

dabalka
New Contributor II

You see, I was right that snap is not working as it was before ๐Ÿ™‚

ptaylor
Employee
Employee

Thereโ€™s a regression in the snap for this undocumented behavior. My apologies. Weโ€™re fixing it.

To clarify: this regression was introduced in the 431patches19359 patch version, and also exists in main19844 (the Feb 2023 GA version) and in 432patches19918. I recommend rolling back to main18944 (the Nov 2022 GA version) until we deploy a new patch to fix this.

dabalka
New Contributor II

Thank you for this information!
I thought Iโ€™m loosing my mind ๐Ÿ™‚

Hi Sir Patrick, any updates when the patch fix will be available?

dabalka
New Contributor II

Iโ€™ve seen that it is already working correctly as before because I had to reverse all changes :stuck_out_tongue_winking_eye: , so I assume this is already done. At least on PaaSโ€ฆ @ptaylor please confirm?