cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Failing a pipeline that contains data in error view

omair
Contributor

Hi all,

Is it possible to have a SnapLogic pipeline fail when one of the error views in the pipeline contains data, while still returning the output from the error views.

2a09769c21524e2f95d86b823ab27505c5e5e670.png

In the example above, the pipeline contains multiple branchesโ€ฆ and the SF Lookup/Upsert snaps have error views which are being Unionโ€™ed at the far right. We would like this pipeline to be marked failed if 1+ documents are returned from the unionโ€ฆ and also return the error view contentโ€ฆ

I tried using the Exit snap and the pipeline fails as intended. However, Iโ€™m not sure how to get the error output to be returned by SnapLogic to the callerโ€ฆ

1 REPLY 1

nganapathiraju
Former Employee

I think you are close to it.

Have 2 unions. 1 error union and 1 success union.

on the error union, have the exit configure like the way you did. It should
work even if the error union has one document through it.

Hope that makes sense.

Thanks & Regards,
Naveen