Search Results lead_import_error_id




Overview

The AS_LEAD_IMPORT_ERRORS table is a critical diagnostic and error-handling object within the Oracle E-Business Suite (EBS) Sales Foundation module (AS). Its primary role is to store detailed error messages generated during the import process for sales leads. When leads are imported into the system, typically via the Lead Import Interface, any records that fail validation due to data integrity issues, missing mandatory information, or business rule violations are logged in this table. This provides administrators and operational users with a centralized repository to review, troubleshoot, and correct failed records, ensuring data quality and facilitating successful lead processing.

Key Information Stored

The table's structure is designed to capture both the identity of the failed record and the specific nature of the error. Its primary key is the unique identifier LEAD_IMPORT_ERROR_ID. The most significant foreign key is IMPORT_INTERFACE_ID, which links the error directly to the source record in the AS_IMPORT_INTERFACE table. While the provided metadata does not list all columns, standard columns for such an error table typically include:

  • LEAD_IMPORT_ERROR_ID: The system-generated primary key for the error record.
  • IMPORT_INTERFACE_ID: Foreign key to AS_IMPORT_INTERFACE, identifying the specific lead import record that failed.
  • ERROR_MESSAGE: The text of the error generated by the import process (e.g., "Invalid Customer Name", "Required Territory ID is missing").
  • CREATION_DATE / CREATED_BY: Audit columns indicating when the error was logged and by which process or user.
  • Additional columns may store error severity, the name of the validation that failed, or the specific batch or request ID of the import job.

Common Use Cases and Queries

The primary use case is troubleshooting failed lead imports. After running a lead import concurrent request, users query this table to identify which records were rejected and why. A common query involves joining to the interface table to see the original import data alongside its corresponding error.

Sample Query:
SELECT err.error_message, intf.customer_name, intf.lead_number
FROM osm.as_lead_import_errors err,
osm.as_import_interface intf
WHERE err.import_interface_id = intf.import_interface_id
AND intf.request_id = :p_request_id
ORDER BY err.creation_date;

This data is essential for generating error reports, correcting source data in the interface table, and resubmitting the import. The table may also be referenced by standard Oracle EBS diagnostic scripts or custom monitoring alerts to notify administrators of import failures.

Related Objects

The AS_LEAD_IMPORT_ERRORS table has a direct, documented relationship with the AS_IMPORT_INTERFACE table, which serves as the staging area for lead data before it is validated and processed into the core application tables.

  • AS_IMPORT_INTERFACE: This is the primary related table. The foreign key constraint defined on AS_LEAD_IMPORT_ERRORS.IMPORT_INTERFACE_ID references the AS_IMPORT_INTERFACE table. This relationship ensures every logged error is traceable to a specific source record in the import interface.

While not explicitly listed in the provided metadata, the import and error-handling logic is typically driven by PL/SQL packages within the AS (Sales) module, which populate and read from this table during the lead import workflow.