Forum Discussion

thilkip's avatar
thilkip
New Contributor
5 years ago

Merge multiple documents to an array in ultra pipeline

We need to merge multiple documents to single array and looking for help. Since it is ultra task, we are running out of options…

Input data:

[
{“Record”: “1”},
{“Record”: “2”},
{“Record”: “5”},
{“Record”: “4”},
{“Record”: “6”}
]

Expected Output:
[ “response”: [{“Record”: “1”}, {“Record”: “2”}, {“Record”: “5”}, {“Record”: “4”}, {“Record”: “6”}]
]

25 Replies

  • siwadon's avatar
    siwadon
    Employee

    What does the timestamp part look like after the ID prefix? Does it has colons?

    • darshthakkar's avatar
      darshthakkar
      Valued Contributor

      @siwadon: I tried putting Date.now() in the file path which was having _pipelineParameter as its file name but it is showing the same error now.
      It was working at the beginning of this week but I didn’t want Date.now() for the dynamic file name so I deleted all the generated files (~5k) and cleared the recycle bin as well.

      If I’m able to replicate the same, I will keep you posted and apologies as I couldn’t share the required details and file as well for your validation purposes.