Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Processing Flat Files | Sending and Receiving Flat Files | Validation Error Contents | Entries for Conditional Validator Errors in the errorDetails Array
 
Entries for Conditional Validator Errors in the errorDetails Array
The errorDetails array includes detail information about the conditions that were violated when the following are true:
*When you set the validate and flag/detailedErrors input variables of the pub.flatFile:convertToValues service to true.
–AND–
*The pub.flatFile:convertToValues service encounters errors with conditional validator.
The following shows a sample of the errors array that includes the errorDetails array, which contains details about violated conditions. See the table below the sample for more information.
Example of Validation Results with Conditional Validation Errors
Portion of the array
Description
errors
For a description of this portion of the errors array, see General Error Entries in the errors Array.
When the flag/detailedErrors input variable of the pub.flatFile:convertToValues service is set to false, this is the only information generated in the errors array about violated conditions.
When the flag/detailedErrors is true, the pub.flatFile:convertToValues service generates the detail in errorDetails array described below.
errorDetails
To provide information about the conditions that were violated, the convertToValues service generates an entry in the errorDetails array for each violated condition.
Variable in errorDetails
Description
errorPosition
Always zero; the errorPosition is not meaningful at this level of the errorDetails array.
errorMessage
A brief description of the condition that was violated.
errorCode
A number indicating the type of error. For a list, see Validation Error Codes.
reference
Always null; the reference is not meaningful at this level of the errorDetails array.
badData
Always null; the badData is not meaningful at this level of the errorDetails array.
condition
The condition that was violated.
errorDetails
Details about how the condition was violated. See the description below.
errorDetails
The child errorDetails array contains detail about how the condition was violated. The convertToValues service generates an entry for each way the condition was violated.
Variable in errorDetails
Description
errorPosition
Indicates the position in the record that contains the field that caused the condition to be violated.
errorMessage
A brief description of the condition that was violated.
errorCode
A number indicating the type of error. For a list, see Validation Error Codes.
reference
The name of the element in the flat file schema that contained the error.
badData
The value of the data that failed validation.