Data Validator
This page is no longer maintained (Nov 12, 2025). For the most current information, go to https://docs.snaplogic.com/snaps/snaps-core/sp-flow/snap-data-validator.html
Snap type: | Transform | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: | This Snap provides the functionality to validate incoming data against a set of defined constraints.
An example of a pattern can be seen in the following image: The pattern constraint in the screenshot above validates all incoming documents and their attributes a.c.b against the regular expression ^abc, expecting that all attribute values of a.c.b start with abc. If they do, the document is routed to the output view; otherwise, the document is routed to the error view.
The type constraint should be defined last in case there are multiple constraints defined for a source path. | |||||||||||||
Prerequisites: | N/A | |||||||||||||
Support and limitations: | Works in Ultra Tasks. The Data Validator Snap displays an error if the required field is set to true and no object is passed from the upstream. Workaround: To validate null or empty values, you can either set a Minimum length Constraint of 1, or use the regex pattern ^.+$“ | |||||||||||||
Account: | This Snap does not use accounts. | |||||||||||||
Views: |
| |||||||||||||
Settings | ||||||||||||||
Label
| Required. The name for the Snap. You can modify it to be more specific, especially if you have more than one of the same Snap in your Pipeline. | |||||||||||||
Constraints
| Define constraints for one or more fields. If multiple constraints are defined for the same field using the same constraint, only the first definition is considered. Available options are:
Default value: N/A
| |||||||||||||
Validate full JSON path | Select this property to enable the Snap to verify if all parents in the JSON path exist, and produce an error if all parents do not exist. Example: When there is only one Constraint Required=true for a Source path=$a.c.b, but an input document is as follows: The Snap does not produce an error if this property is not selected, even if the JSON path $a.c.b has no values unless there is another Constraint Required=true for a Source path=$a.c. If this property is selected, the Snap produces an error with a reason field. Example, Path not found: $.a.c, Source path: $.a.c.b, Constraint: Required=true. Default value: Unselected | |||||||||||||
Standardize error output | If true, the Snap produces the error document in standard error format (error, reason, original, and stack trace). If false, the error document contains error and original. Default value: False | |||||||||||||
Snap Execution
| Select one of the three modes in which the Snap executes. Available options are:
Default Value: Execute only | |||||||||||||
Downloads
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2025 SnapLogic, Inc.