Error Codes
The following error codes are used in the EDI Translation Detail Report:
- Map Iteration Count
- Measures the number of times the translator has
called the initialize method of the block processor. An iteration
of the map is every time the input and output sides of the map are
completed. The initialize function is run on both the input and output
sides of the map independently.
For example, if you are translating a batch document and the map is really only handling one document in the batch, the translator in many cases will run the map multiple times until the input data has been exhausted. This could be useful if you are translating a batch document and are not sure with which sub-document the translator report entry was associated.
- Block Name
- The unique name of the record in the map, which will usually be the same as the Block Signature Id Tag. If the tag appears more than once, it will be appended with a colon and a unique number for that tag (for example, in ASC X12, if there is more than one REF segment for a particular transaction set, one of the REF segments could be represented as “REF:3” in the map so it can be referenced uniquely).
- Block Signature Tag ID
- The tag that identifies a record in the document. It is the segment name in ASC X12.
- Field Name
- The name of the field contained in the record reported.
- Field Number
- The position of the field within the record.
- Block Count
- On the output side, this indicates the number of records that were written by the most recent call to the translator before the entry was made in the report. On the input side, this indicates the number of records that were read by the most recent call to the translator before the entry was made in the report.
- Location Index
- The current iteration of all groups leading up
to the reported record. If the block is at a depth of zero (meaning
it is at the root) it will return “0”. Otherwise it will return the
current iteration of all groups up to the depth of the reported record.
The indices are colon-delimited.
For example, if the reported record is contained inside three nested groups, where the first group is on its 22nd iteration, the second group is on its third iteration, and the third group is on its first iteration “22:03:01” is the location index.