Search Results ra_interface_errors_pk




Overview

RA_INTERFACE_ERRORS_ALL is an Oracle Receivables (AR) interface table that stores records describing why rows in the AutoInvoice interface tables failed validation. AutoInvoice is the concurrent program that imports transaction data from external systems into Receivables, drawing source lines from RA_INTERFACE_LINES_ALL, sales credits from RA_INTERFACE_SALESCREDITS_ALL, and distributions from RA_INTERFACE_DISTRIBUTIONS_ALL. When any of these records cannot be validated, the processing engine writes an error row here rather than creating a transaction, allowing users to diagnose and correct the rejected data.

The table resides in the AR schema and is documented as VALID under ETRM 12.2.2 (the same physical definition applies to 12.1.1). Because it records attributes of interface events rather than defining new business entities, a heuristic Data Vault classification would model this table as a satellite attached to the interface line, sales credit, and distribution hubs, capturing the error message and offending value at the moment of rejection. It is not itself a hub or link; its composite primary key indicates it participates in the surrounding interface key structure rather than originating one.

Key Information Stored

The table's physical schema documents eight columns. The most significant are:

  • INTERFACE_LINE_ID — together with the two columns below, forms the primary key RA_INTERFACE_ERRORS_PK. Identifies the rejected RA_INTERFACE_LINES_ALL record.
  • INTERFACE_SALESCREDIT_ID — the second component of the composite primary key; identifies the rejected sales-credit row.
  • INTERFACE_DISTRIBUTION_ID — the third component of the primary key; identifies the rejected distribution row.
  • MESSAGE_TEXT — the human-readable validation error returned by AutoInvoice, the field users read first when troubleshooting.
  • INVALID_VALUE — the specific column value that failed validation, so the offending input can be located directly.
  • LINK_TO_LINE_ID — a reference linking the error to a related line, useful when an error on a distribution or sales credit is traceable to a parent line.
  • ORG_ID — the operating unit under multi-org, supporting partition-aware queries.
  • INTERFACE_CONTINGENCY_ID — correlates the error with contingency-related interface handling.

The composite primary key (INTERFACE_LINE_ID, INTERFACE_SALESCREDIT_ID, INTERFACE_DISTRIBUTION_ID) is the surrogate identifier here; note that in practice individual components frequently carry NULLs, since a single error may pertain only to a line. No separate business-key unique index is documented beyond RA_INTERFACE_ERRORS_PK.

Common Use Cases and Queries

Typical uses include purge and reconciliation of rejected interface data, pre-import error reporting, and root-cause analysis of AutoInvoice failures.

  • Listing all errors for a recipient: SELECT interface_line_id, message_text, invalid_value FROM ra_interface_errors_all WHERE org_id = :p_org_id;
  • Correlating errors with source lines: SELECT e.message_text, l.interface_line_id, l.line_number FROM ra_interface_errors_all e, ra_interface_lines_all l WHERE e.interface_line_id = l.interface_line_id;
  • Identifying the most frequent failure types through aggregation of MESSAGE_TEXT for recurring-error dashboards.
  • Cleansing cycles: after corrections are applied to the interface tables, the AutoInvoice process re-validates and deletes corresponding error rows on success, so monitoring this table signals outstanding exceptions.

Related Objects

The table depends on and is referenced by the AutoInvoice interface family:

  • RA_INTERFACE_LINES_ALL — join on INTERFACE_LINE_ID; the primary source line that failed validation.
  • RA_INTERFACE_SALESCREDITS_ALL — join on INTERFACE_SALESCREDIT_ID; the rejected sales-credit record.
  • RA_INTERFACE_DISTRIBUTIONS_ALL — join on INTERFACE_DISTRIBUTION_ID; the rejected distribution record.
  • RA_INTERFACE_CONTINGENCIES_ALL — associated via INTERFACE_CONTINGENCY_ID for contingency lines.
  • AutoInvoice Master Program / AutoInvoice Import Program — the concurrent programs that populate this table during validation.

Reporting and troubleshooting usually begin with these related interface tables, since RA_INTERFACE_ERRORS_ALL holds only the diagnostic messages rather than the full transaction payload.