Data Stream action - Error handling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 05:19 PM
Hi there,
We are using one of the OOTB Workday Actions. This Action is using data streams. The data stream is returning an object as [outputs.targetObject = {data}]. The issue is the Action Stream is not returning any Errors e.g. if there is a Server Error or HTTP Network issue.
The question is how do we do error handling while using a Data Stream actions? We have a requirement to create an incident and log the Integration related issues into the incident but there is no way that I can see to retrieve the errors. Please see below:
many thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 07:05 AM
As far as I know, it is not possible to add error handling to Data Streams (unless you put it in a try/catch and call it from a script). This is actually a pain because I am trying to use Scheduled Data Import with Data Streams and it won't handle errors natively. If someone figures this out, that would be great.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 07:08 AM - edited 12-13-2023 07:12 AM
With that being said, what you could do is have the error handling on the "Import Set" table. For example: Import sets get set to "Cancelled" if there is an error in the Data Stream and they get set to "Complete with Errors" if there are 0 records.
And an event is already created on scheduled import set so you can create a script action that checks for that event and if state = cancelled :]. Hope that helps.