2020.1

Table Of Contents
in a "Run Script" on page481 task.
l
None (validate only): Select to run the operation in Validation mode and output the
validation results in the Metadata. No data is extracted or stored in the Connect
Database.
The task performs a validation REST call and stores the returned JSON object in a
validationresult entry on the Group[0] level of the Metadata. (For the structure of
the JSON object, see the REST API Cookbook: JSON Data Mapping Validation
Result.) The JSON's result and recordcount fields are also stored at the Group[0]
level. Each Document node contains the following fields:
l index: The position of the record in the job. This value is 1-based. Note that
this is not a record ID, since the record is never stored in the database.
l error: The error message, or an empty string when no errors have been
reported for this record.
Document nodes with an error are selected, while those without an error are
unselected, to make looping through all errors easy.
By default, if the validation cannot be performed the task fails and logs an error, but
if the Generate error when validation cannot be performed checkbox is unticked,
the task will log a warning and it will generate metadata with a single group
containing a single document, with the error message "DataMapper could not
process the input file".
Tip
To determine if there were any errors in a job and handle it accordingly, you
can use a Condition that checks if
GetMeta(SelectedCount[0], 11, Job.Group[0])
is greater than 0, immediately after the task (see "Conditions" on page136).
l
Runtime Parameters: Runtime parameters pass information from the Workflow process
to the data mapping configuration (see Properties and runtime parameters in the Online
Help of OL Connect). Set the source of the value for any runtime parameters that are
defined in the selected data mapping configuration. Right-click to open the contextual
menu that allows to select variables, data and lookup functions (see "Data selections" on
page53).
If the data mapping configuration name is dynamic, you must enter the name (or select a
variable that contains the name) and set the value of all the runtime parameters that may
Page 624