Configure the Mapper Snap to gather data
from the main pipeline.
Next, we connect a JSON
Formatter Snap to
format the document output into JSON format and write the file to SL database using the
File Writer Snap.
Create the main pipeline
Create a simple pipeline containing the JSON Generator and Mapper Snaps.
Configure the JSON Generator Snap with the message Hello World and
number 1.
Configure the Mapper pipeline as follows. Specify $status in the
Mapping table.
There is no statusobject in the input data, hence the Snap results
in an error.
Set the Snap to Route to Error Pipeline under the
Views tab.
Right-click the Mapper Snap’s context menu and select, Link Output to Error
Pipeline. You can see err in the Mapper connector.
Click the Properties icon in
the Desinger toolbar, and select the Error Pipeline that you want to link.
Click Save.
Run the Main Pipeline to route the error data to the Error Pipeline. After you run,
you can view the errors in the preview of the Pipeline Execution
Statistics. You can also navigate to the SnapLogic Monitor to view the pipeline execution
details.