In this article
Use this Snap to consolidate multiple input streams into a single output document, where each input stream is displayed as a label containing the records that were received by that input view.
Note that this Snap does not complete executing until the execution of all upstream Snaps is done.
Because this Snap collects multiple input documents into a single output document, there are system memory limitations, and this Snap should not be used for massive data propagation. If large amounts of data are required, offload your data prior to Snap execution. Instead, write your data to a file or database; then, after Snap execution completes, you can use a Reader Snap (such as File Reader and S3 Reader) to read from the offloaded data source.
- This Snap does not have error views. If the Snap fails during validation or execution, documents are not passed through and you receive an error message.
- Ultra Pipelines: Not supported in Ultra Pipelines.
Snap Input and Output
|Input/Output||Type of View||Number of Views||Examples of Compatible Upstream and Downstream Snaps||Description|
|Input ||Document||One or more documents containing records that must be passed on to downstream Snaps for further processing.|
A single document that contains all the records received from the various upstream Snaps.
|Parameter Name||Data Type||Description||Default Value||Example |
|Label||String||The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline.||N/A||Ensure Complete Execution|
Specifies the execution type:
|Validate & Execute||N/A|
Combining Completed Upstream Execution Output Using the Gate Snap
This example demonstrates how you can use the Gate Snap to combine the complete output of multiple upstream Snaps into a single document. This example also shows how the Gate Snap doesn't offer any output until all upstream Snaps have completed executing.
Download this Pipeline
Understanding the Pipeline
- You add a File Reader Snap to the Pipeline and configure it to read a CSV file containing contact information:
- You add a CSV Parser Snap to read the input binary data as CSV. Once this Snap executes, you can view the contents of the file that the File Reader Snap read:
You create a separate branch of the Pipeline by adding an unconnected REST Get Snap. You configure the Snap to retrieve contact data from HubSpot, which typically offers data in pages of 20 records each. You use the Has next and Next URL fields to specify how the Snap can retrieve additional pages of data. For step-by-step information on how to use the REST Get Snap to perform this task, see Retrieving Contact Information from HubSpot.
The REST Get Snap retrieves the data in pages of 20 as requested until the value of the
has-more variable changes to false:
- You create another branch of the Pipeline by adding a JSON Generator Snap that provides customer information:
- You add a Gate Snap and configure it to have three input views:
You make no further changes to the Gate Snap and connect its three inputs to each of the branches you created in the steps above.
- You save and run the Pipeline. The Gate Snap now collects the completed inputs from all upstream branches and offers them all as separate arrays in a single output document:
- To check how the Gate Snap behaves when one of the Snaps does not offer any output, you introduce an error into the REST Get Snap:
- You now save and re-execute the Pipeline. The Gate Snap now offers an output which contains all the data received from the File Reader and JSON Generator branches; but in the output associated with the REST Get Snap, it outputs a null record:
Download this Pipeline
Snap Pack History