R12 Multiple Transaction Entities Created in XLA for Payments or Invoices (Doc ID 1381782.1)

Last updated on JANUARY 22, 2017

Applies to:

Oracle Cash Management - Version 12.0.3 to 12.2.6 [Release 12 to 12.2]
Oracle Subledger Accounting - Version 12.0.3 to 12.2.6 [Release 12.0 to 12.2]
Oracle Payables - Version 12.0.3 to 12.2.6 [Release 12.0 to 12.2]
Information in this document applies to any platform.

Symptoms

Multiple Entities exists in XLA.XLA_TRANSACTION_ENTITIES for a single source id.

This will cause various issues will occur like:

·         Incorrect Payment Status
·         Invoices on Hold
·         Failure in Create Accounting

Expect single entity per transaction.

Identification SQL:
===================
Input Parameter: Ledger ID.

SELECT  xte2.application_id , xte2.entity_id ,
        xte2.ledger_id , xte2.entity_code ,
    xte2.SOURCE_ID_INT_1 , xte2.transaction_number
    , count(distinct xe2.event_id) event_count  
FROM xla_transaction_entities_upg xte2
     , xla_events xe2
WHERE ( xte2.application_id ,
        xte2.ledger_id ,
    xte2.entity_code ,
    NVL( xte2.SOURCE_ID_INT_1 , -99 )
      ) IN
      (
    select    xte.application_id ,
            xte.ledger_id ,
        xte.entity_code ,
        xte.source_id_int_1   
    from xla_transaction_entities_upg xte
    where  xte.application_id =200
    and    xte.ledger_id = &Ledger_ID
    and    xte.entity_code <> 'MANUAL'
    group by xte.application_id , xte.source_id_int_1 , xte.entity_code , xte.ledger_id
    having count(1) > 1  
     )
AND xe2.application_id(+) = xte2.application_id
AND xe2.entity_id(+) = xte2.entity_id
group by xte2.application_id , xte2.entity_id ,
         xte2.ledger_id , xte2.entity_code ,
         xte2.SOURCE_ID_INT_1 , xte2.transaction_number;

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms