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

Passing error reason to error pipeline

nishant_k9
New Contributor II

I have designed an error pipeline which accepts few pipeline parameters like ruuid, label, error etc. I have configured this error pipe line in all other pipelines in my project to make call to this pipeline in case of error. I am not able to find any way to directly pass error reason, resolutions etc as parameterโ€ฆ Is there any expression that can be used to achieve thisโ€ฆ?
Screenshot 2022-06-01 at 2.58.17 PM

1 ACCEPTED SOLUTION

SpiroTaleski
Valued Contributor

@nishant.k9

If you capture the error message that is delivered to error pipeline using File Writer or Record Replay Snap, you will notice that the error message structure contains the fields like error, reason, resolution, stacktrace etc.

You donโ€™t have to pass the error, reason, resolution as a error pipeline parameters.
In the error pipeline, in separate Mapper Snap you can map those fields(error, reason, resolution):

image

View solution in original post

5 REPLIES 5

SpiroTaleski
Valued Contributor

@nishant.k9

As I mentioned above, you can capture the error message that is delivered to the error pipeline.

In the error pipeline put Record Replay Snap, in order to save the error message. In that way you can see that structure of one error message.

BR
Spiro Taleski