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. |