Explain Edi Error
explain_edi_errorExplains EDI validation and functional-ack errors using the local X12 dictionary, providing meaning, likely cause, and fix. Works offline as a read-only lookup.
Instructions
Explain an EDI validation or functional-ack error using the local X12 dictionary (meaning, typical cause, fix, lookup_x12 cross-refs). Never calls the network; works in the docs profile. Local read-only operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Ack or validation code (e.g. R, 4, 7). | |
| segment | No | Segment id near the error (e.g. SE, PO1). | |
| rawError | No | Optional raw error text from validate_edi or a 997/999. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | Yes | ||
| meaning | Yes | ||
| rawError | No | ||
| lookup_x12 | Yes | ||
| typicalCause | Yes |