Search Results populate_catalog_files




Overview

APPS.ICX_CAT_R12_DATA_EXCEP_RPT_PVT is a private (PVT) PL/SQL package belonging to the Oracle iProcurement catalog administration schema. Its business function is to generate exception reporting for supplier catalog data that failed validation during the Oracle E-Business Suite 12.1.1 / 12.2.2 upgrade and data migration path. Specifically, the package collects the erroneous lines that were rejected while loading purchasing catalog interface records, formats them as XML, and persists them into dedicated upgrade exception and error message tables so administrators can diagnose and correct the rejected data.

The package header originates from the iProcurement catalog data exception utility (source header ICXVDERS.pls, version 120.4). The package declares several PL/SQL collection and record types used to marshal metadata and bind variables into dynamic XML queries. These include descriptors_list_tbl (an indexed table of VARCHAR2(18000) used to supply the select-list column definitions for the generated XML Query), territories_list_rec and territories_list (which map ISO language and territory codes to their NLS equivalents), and xml_bind_param_rec together with the xml_bind_params VARRAY(5), which carry name/value bind parameters for those queries.

Key Procedures and Functions

The ETRM documentation lists four documented program units in the package. All are internal helpers rather than a public application programming interface, consistent with the PVT classification. Parameter lists are not restated here.

  • POPULATE_CATALOG_FILES — Populates the catalog exception output in XML format for the errored interface lines. It operates over arrays of interface header identifiers, vendor identifiers, vendor site identifiers, operating unit identifiers, currency codes, contract numbers, and languages, driving bulk generation of exception catalog files.
  • PROCESS_DATA_EXCEPTIONS_REPORT — Populates the ICX_CAT_R12_UPG_EXCEP_FILES and ICX_CAT_R12_UPG_ERROR_MSGS tables with the lines that errored during data migration. It accepts a batch identifier and is the primary entry point for building the report for a given migration batch.
  • REPLACE_CLOB — A CLOB/text manipulation helper used to substitute content within the generated XML report content (for example, replacing placeholders or escaping values in the assembled document).
  • GET_XML — Returns the assembled XML document representing the exception report data. This is the function most frequently referenced when consumers search for how the package emits its XML output, and it underpins the file and error-message population performed by the other units.

Tables Accessed

The package reads from and writes to the following database objects, accessed through APPS synonyms:

  • ICX_CAT_R12_UPG_EXCEP_FILES and ICX_CAT_R12_UPG_ERROR_MSGS — the target tables holding generated exception file content and the associated error messages.
  • PO_HEADERS_INTERFACE, PO_LINES_INTERFACE, PO_INTERFACE_ERRORS, and PO_ATTR_VALUES_TLP_INTERFACE — the purchasing interface tables scanned to identify header, line, attribute, and validation-error details for rejected catalog records.
  • ICX_CAT_ATTRIBUTES_TL and ICX_CAT_CATEGORIES_TL — translatable catalog attribute and category definitions, joined to render human-readable descriptions in the report.
  • FND_LANGUAGES — the language and territory reference, used to derive the NLS language/territory mappings declared by the territories collection types.
  • DBMS_SQL, DBMS_LOB, DBMS_XMLGEN, and PLITBLM — Oracle-supplied packages used for dynamic SQL, CLOB manipulation, XML generation, and PL/SQL index-by table handling respectively.

Usage Notes

Because ICX_CAT_R12_DATA_EXCEP_RPT_PVT is classified as a private package, it is not intended for direct invocation by end users or external integrations. It is referenced by one other package within the Oracle EBS code base, which acts as the public driver. Typical invocation occurs from iProcurement catalog administration flows and upgrade/migration concurrent programs during the R12 upgrade cycle, where the report generator calls PROCESS_DATA_EXCEPTIONS_REPORT for a migration batch and POPULATE_CATALOG_FILES to materialize the XML artifacts, with GET_XML supplying the rendered document and REPLACE_CLOB handling content substitution within it. In 12.1.1 and 12.2.2 environments, customers typically reach this functionality indirectly through the standard catalog data exception report rather than by calling the package from custom code. Any custom extension should respect the package's private contract and the underlying interface and error tables, and should be validated against both release levels before deployment.