Forum Discussion
Hi, as noted in the Script Snap documentation:
Important Notes
The SnapLogic platform (when running the pipeline) can not deal with script-language-specific container types, such as lists and arrays. Those need be represented explicitly by using java nativejava.util.Map
orjava.util.List
implementations, such asHashMap
andArrayList
.
There are further examples listed in the link above. Also, if using the Script Snap is not a necessity, there are ways to use Transform Snap Pack Snaps to group/aggregate multiple document objects together into an array and then add it as a field (e.g. via the Mapper) to an existing object.
Hi, Robin
Yes, i understand i can use groupby and aggregate and using script snap is not a good solution at all.
However, in our case, we are building Ultra pipeline in which groupby or aggregate will not work.
We are building a lot of time sensitive APIs in our company, so Ultra task is the only way to fullfill our requirement.
I will take a look at the java script library you mentioned, some how, the documentation does not provide enough examples, that should be one of the improvement you guys need to work on.
Thanks
Hi Chris,
As Diane said, this is an issue with Confluence. That said, if you’re continuing to have access issues, then please try and send the following information to documentation@snaplogic.com:
- A screenshot of the entire screen in high resolution so we can analyze the error;
- A HAR File created while the error is shown;
- The browser’s console log.
We will remove any private information and send the rest to Confluence Support to try and reproduce this error.
If this is now resolved, then let us know.
Thx,
Ankur