Error pipelines in SnapLogic

Error pipelines is an efficient way to handle your pipelines' error data, enabling you to read the errors in a single log and take further action.

This is typically a two-step process:

  1. Create and configure the main pipeline.

  2. Create and configure the error pipeline.

Create the main pipeline

  1. Create a simple pipeline containing the JSON Generator and Mapper Snaps.



  2. Configure the JSON Generator Snap with the message Hello World and number 1.


    Mapper Snap Settings

  1. Configure the Mapper pipeline as follows. We intentionally specify the $status in the Mapping table, wherein there is no status object in the input data so that the Snap results in an error. We configure the Snap to Route to Error Pipeline under the Views tab.


    Mapper Snap Settings


    Mapper Snap Settings

  2. Link the output from the Error Pipeline to this Pipeline. Right-click the Mapper Snap’s context menu and select, Link Output to Error Pipeline. You can see err in the Mapper connector.


    Linked Output in Mapper connector

  3. Click the Edit Pipeline Properties icon in the status bar of the Main Pipeline, and select the Error Pipeline that you want to link, and click Save.


    Edit Pipeline Properties

Create and configure error pipeline

  1. Create a pipeline containing the Mapper, JSON Formatter, and File Writer Snaps.


    Configure error pipeline

  2. Configure the Mapper Snap to gather data from the main pipeline.



  3. Next, we connect a JSON Formatter Snap to the Mapper Snap to format the document output into JSON format and write the file to SL database using the File Writer Snap. Now, we have completed the configuration of both the Main and Error Pipelines.

  4. Run the Main Pipeline to route the error data to the Error Pipeline.

    After you run, you will see the following error in the preview of the Pipeline Execution Statistics.


    Pipeline Execution Statistics

    You can navigate to the SnapLogic Dashboard to view the pipeline details.


    SnapLogic Dashboard