cancel
Showing results for 
Search instead for 
Did you mean: 

Error View : State always captured as 'Completed'

vyasyash
New Contributor III

Hi all,

We are trying to use the Pipeline Monitoring API in our implementation to trace which of the service calls have failed,
using e.g. ___https://elastic.snaplogic.com/api/1/rest/public/runtime/Partners?last_hours=100&state=Completed,Fail....

Based on the output/results of the Monitoring API, we’ll build a exception replay service to pick the document data (message payload) of all the failed transactions and replay/re-trigger then from the pipeline.

But the challenge is when we use error view in the pipeline, the state of a particular transaction is always captured as ‘Completed’ instead of ‘Failed’ or ‘NoUpdate’, 'Prepared’, 'Started’, 'Queued’, 'Stopped’, 'Stopping’. Also, so far we’re not able to figure out how to problematically overwrite the state as well, which if possible will come handy to filter the ‘failed’ transactions for replay purpose.

Please suggest if someone has observed similar design challenge or there is a possible workaround available.

Best,
YV

3 REPLIES 3

dippradhan
New Contributor

Not sure if I understood the problem correctly, I think, I faced similar design issue. Basically, you want the pipeline status to be returned as failure if data flow goes through error view. If this is the case, you can just union all of your error view into a single flow and then add an exit snap.
52a3a27a64f86d6ccf7a2330e82021d9e660d942.PNG

vyasyash
New Contributor III

Thanks a lot dippradhan, I forgot to update the thread, we also figured out the same solution to use exit snap at the end.

Thanks again for responding to my query.

Best,
YV

Pretty
New Contributor III

May I know how you are passing the state in pipeline and what base you will get the result completed failed stopped…
I need to implement in my pipeline
like pass the parameter as state with dynamically,