06-09-2021 02:13 PM
I am trying to pass Snap label to error pipeline using in-build expression snap.label. I am getting error. Is their a way to pass snap label from multiple parent pipelines to the same error pipeline? Kindly help to find a better approach with in-build epression for the same.
06-09-2021 11:40 PM
@Amardeep_Shanmugam you don’t need to explicitly pass about failed snap level, it’s coming in snap_details attribute from the error view. you can use $snap_details.label to get exact name in error pipeline.
06-10-2021 05:14 AM
Thanks for responding. I see that in error view if I choose for route error to error view. How can we get this passed to error pipeline? Example: Pipe line label I am getting if I choose that in parent pipeline error pipeline parameters. Do I need to have $snap_details.label as one of the parameter in parent and same should be used in error pipeline as pipeline parameter? Attaching the screenshot of both.
06-10-2021 07:13 AM
@Amardeep_Shanmugam You don’t need to pass explicitly from error pipeline param, use one mapper in error pipeline and use $snapdetails.label. Snaplogic automatically pass those value to error pipeline, you can capture using the expression.
06-10-2021 07:38 AM
Thanks again Supratim. It works.