Data Source report error when data stream generate a blank payload.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 07:45 PM - edited 05-22-2024 10:48 AM
Good afternoon, all
I am wonder if anybody ever resolve this issue. I am really thanks for anyone able to provide directions.
I have a integration set up like below:
REST API-> Data Stream Action-> data source->IH ETL.
In data stream splitter steps, I am use item path. $.entities to extract pay load and pass to parser steps .
Normal pay load would like:
{
"totalCount": 11310,
"pageSize": 50,
"nextPageKey": "AQQTREAUS",
"entities": [
{
"entityId": "HOST-123456789",
"type": "HOST",
"displayName": "XYZ",
"firstSeenTms": 1665105217679,
"lastSeenTms": 1716399078945,
},
{
"entityId": "HOST-123456789",
"type": "HOST",
"displayName": "XYZ",
"firstSeenTms": 1665105217679,
"lastSeenTms": 1716399078945,
}
]
}
but some tine it return:
{"totalCount":0,"pageSize":50,"entities":[]}
When payload like tis, the data source load data process report error,
No fields provided for mapping to headers
I did try the following in splitter steps:
-Change item path from $.entities to $, but the payload seem not pass
-Try to use $.*, but got error message says wildcard is invalid
Seem all not working
I am wondering how data stream handle the blank pay load...How can I pass the whole payload to parser steps.
Thanks Again.
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 08:54 PM
Hi, unfortunately your post does not make your issue or configuration clear.
Perhaps you could update this thread to include your script and example payload (both as plain text), so that the community is in a better position to review and advise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 09:23 AM - edited 07-09-2024 09:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 10:04 PM
Hi, Andrew, Thank you for reply,
I was running into anther similar issue recently. I have an external API call with paging for JSON payload, some call return just [], I notice when data stream encounter this issue, it stop for next page, and report completed.
I am wondering if any one have any idea how to skip this kind payload and continue for next page.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 04:00 PM
Hi @kevin33 , did you ever find a resolution to your issue? I'm having the same problem now. I have a datastream I'm calling in a loop within a flow, and as soon as one of the iterations of the loop returns 0 data (which I'd consider a valid thing to return for some iterations of the loop), the datastream action considers it an error, and the whole loop & flow stop processing. I want it to continue processing the remaining iterations of the loop.