@tylerlamparter I have updated the JSON structure of the output to be enclosed in square brackets, but it's still not passing through, and throwing the same error. Here's the sample, more than 1 record to be precise:
[
{"internal_study_name":"Cobalt Captain","leadname":"Chris Cortinhas","id_lead":"c32cce83-6208-4716-10bf-08da2133bf5b","date_admin":"2023-08-28","date_reviewed":"2023-08-28","subject":"100-999","visit":"Visit 4","scale":"PACC5","review_type":"FormAndAudio","visit_form_id":"2b19a329-e7a3-4c98-8bf1-c70c8fe97948"},
{"internal_study_name":"Larry Lobster","leadname":"Isabella Hauptman","id_lead":"05a6f4f6-02fe-43c8-10bd-08da2133bf5b","date_admin":"2022-04-10","date_reviewed":"2022-09-09","subject":"100-2200","visit":"Visit 18","scale":"CDR Review","review_type":"FormAndAudio","visit_form_id":"1cc05eb6-0a16-4908-8f0b-adc4d3e04bd8"},
{"internal_study_name":"Cobalt Captain","leadname":"Chris Cortinhas","id_lead":"c32cce83-6208-4716-10bf-08da2133bf5b","date_admin":"2023-09-27","date_reviewed":"2023-09-27","subject":"Test Site-999","visit":"Visit 1","scale":"PFCSRT","review_type":"FormAndAudio","visit_form_id":"f90e8291-2be0-4175-9bfc-a79b2b202b6b"},
]
The output above is the result of the handlebar expression below as JSON document:
[
{{#each record.records}}
{{#each this}}
{{{jsonSerialize this}}}{{#unless @last}},{{/unless}}
{{/each}}
{{/each}}
]
And here is the file coming in to the action:
{
"record": {
"id": "1661302356107665744",
"commandId": "95cc747705554e0f9597267308d56d38",
"records": [
[
{
"internal_study_name": "Cobalt Captain",
"leadname": "Chris Cortinhas",
"id_lead": "c32cce83-6208-4716-10bf-08da2133bf5b",
"date_admin": "2023-08-28",
"date_reviewed": "2023-08-28",
"subject": "100-999",
"visit": "Visit 4",
"scale": "PACC5",
"review_type": "FormAndAudio",
"visit_form_id": "2b19a329-e7a3-4c98-8bf1-c70c8fe97948"
},
{
"internal_study_name": "Larry Lobster",
"leadname": "Isabella Hauptman",
"id_lead": "05a6f4f6-02fe-43c8-10bd-08da2133bf5b",
"date_admin": "2022-04-10",
"date_reviewed": "2022-09-09",
"subject": "100-2200",
"visit": "Visit 18",
"scale": "CDR Review",
"review_type": "FormAndAudio",
"visit_form_id": "1cc05eb6-0a16-4908-8f0b-adc4d3e04bd8"
},
{
"internal_study_name": "Cobalt Captain",
"leadname": "Chris Cortinhas",
"id_lead": "c32cce83-6208-4716-10bf-08da2133bf5b",
"date_admin": "2023-09-27",
"date_reviewed": "2023-09-27",
"subject": "Test Site-999",
"visit": "Visit 1",
"scale": "PFCSRT",
"review_type": "FormAndAudio",
"visit_form_id": "f90e8291-2be0-4175-9bfc-a79b2b202b6b"
}
]
]
},
"job": {
"_id": "6788bd0bc01e987923878ab9",
"type": "import",
"startedAt": "2025-01-16T08:02:19.862Z",
"parentJob": {
"_id": "6788bd0bc01e987164878aba",
"type": "flow",
"startedAt": "2025-01-16T08:02:14.862Z",
"flowExecutionGroupId": "6788bd0bc01e98ccfc878abb"
}
},
"testMode": true,
"settings": {
"integration": {},
"flow": {},
"flowGrouping": {},
"connection": {},
"iClient": {},
"import": {}
}
}