Integration Builder activity shows Success instead of Failed


Why does the activity stream show a request as completed when the body of the stream states it failed? The end-user is getting a positive response and event GUID, but no event is created.


  • All versions of xMatters


The "Failed" status appears if it is captured in the script code and not on the actual job execution. You will see a Cancelled status if the application was unable to execute in 60 seconds.  

If you want to capture a Failed state, include the following snippet in the integration script:

var response =;

// If not 2xx response, throw exception to fail the integration
if (response.statusCode >= 300) {
throw "Failed to complete integration server responded with status " + response.statusCode;

That should display a Failed status for the job.

Was this article helpful?
0 out of 0 found this helpful



Article is closed for comments.