In this article
Overview
You can use this Snap to inject a block of text, possibly including pipeline parameters, expression language, and writes out binary data.
Snap Type
Constant Snap is a READ-type Snap that reads a block of text and writes out binary data.
Prerequisites
None.
Support for Ultra Pipelines
Works in Ultra Pipelines.
Limitations and Known Issues
None.
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|
Input | Document Binary Binary or Document Retain one. | | Binary to Document File Writer JSON Parser
| |
Output | Document Binary Binary or Document Retain one. | | Binary to Document File Writer JSON Parser
| |
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter while running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are: Stop Pipeline Execution: Stops the current pipeline execution when the Snap encounters an error. Discard Error Data and Continue: Ignores the error, discards that record, and continues with the rest of the records. Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.
Learn more about Error handling in Pipelines. |
Snap Settings
Asterisk (*): Indicates a mandatory field. Suggestion icon (): Indicates a list that is dynamically populated based on the configuration. Expression icon (): Indicates whether the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic. Add icon (): Indicates that you can add fields in the fieldset. Remove icon (): Indicates that you can remove fields from the fieldset.
|
Field Name | Field Type | Description |
---|
Label* Default Value: Constant Example: Constant1 | String | Specify 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. |
Content* Default Value: [None] Example: pipe.label.toUpperCase() | String/Expression | Specify the text that may contain expressions including pipeline parameters. For example” |
Snap Execution Default Value: Example: Validate & Execute | Dropdown list | Select one of the three modes in which the Snap executes. Available options are: Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime. Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data. Disabled: Disables the Snap and all Snaps that are downstream from it.
|