The CreatorCon Call for Content is officially open! Get started here.

Data Stream action - Error handling

Rahman4
Tera Guru

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:

 

Rahman4_0-1697069859041.png

 

Rahman4_1-1697069886570.png

 

Rahman4_2-1697069956461.png

many thanks.

 

2 REPLIES 2

DorianK
Tera Expert

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.

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.