Vous êtes sur la page 1sur 3

Document 1610280.

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=1...

PowerView is Off Dashboard Knowledge Service Requests Patches & Updates Search Knowledge Base

Ahmed

(0)

Contact Us

Help

Advanced

Fix Script From GDF Patch 17487581 - ap_incl_excl_tax_fix.sql Fails With Error: RETURN_STATUS - XLA_ERROR (Doc ID 1610280.1)
Modified: 22-Jan-2014 Type: PROBLEM

To Bottom

In this Document Symptoms Cause Solution References

APPLIES TO:
Oracle Payables - Version 12.0.3 to 12.1.3 [Release 12.0 to 12.1] Information in this document applies to any platform.

SYMPTOMS
Error While applying Patch 17487581 which is suggested in the following note: R12: Generic Data Fix (GDF) Patch 17487581 - Accounted Amounts are Out of Sync With Invoice Distribution Amounts (Doc ID 1063263.1)

Fix script: ap_incl_excl_tax_fix.sql erroring out with RETURN_STATUS - 'XLA_ERROR'

CAUSE
This issue has been identified and clarified through Bug:17778655 - INVOICES VALIDATED AND ENTRIES TRANSFERRED TO GL, BUT ACCOUNTING STATUS SHO

SOLUTION
Check the Output records for below mentioned queries: --1) SELECT /*+ leading(xah) */ xah.* FROM XLA_LEDGER_OPTIONS opt, XLA_LEDGER_RELATIONSHIPS_V rs, xla_gl_ledgers_v gl, xla_ae_headers xah, xla_subledgers xsu, xla_events xle, xla.xla_transaction_entities xte WHERE opt.LEDGER_ID = xah.ledger_id AND opt.APPLICATION_ID = xah.application_id AND xsu.application_id = xah.application_id AND xah.event_id = 1570204 -- input parameters AND xah.application_id = 200 -- input parameters AND xah.event_id = xle.event_id AND xah.application_id = xle.application_id AND xah.entity_id = xte.entity_id AND xah.application_id = xte.application_id AND xah.parent_ae_header_id IS NULL AND xah.accounting_entry_status_code = 'F' AND opt.ENABLED_FLAG = 'Y' AND rs.LEDGER_ID = opt.LEDGER_ID AND ( rs.LEDGER_CATEGORY_CODE = 'PRIMARY' OR rs.LEDGER_CATEGORY_CODE = 'SECONDARY') -- commented bug 11883762 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=11883762] AND xsu.valuation_method_flag = 'Y' -- commented bug 11883762 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=11883762] AND opt.CAPTURE_EVENT_FLAG = 'Y')) AND rs.RELATIONSHIP_ENABLED_FLAG = 'Y' AND rs.ledger_id = gl.ledger_id AND rs.SLA_ACCOUNTING_METHOD_CODE IS NOT NULL AND NOT EXISTS (SELECT 1 FROM xla_ae_headers xah2 WHERE xah2.application_id = 200 AND xah2.event_id = 1570204 AND xah2.accounting_entry_status_code = 'F' AND NVL(xah2.gl_transfer_status_code,'N') IN ('N','NT')) -- can be reversed only if it is transferred --Added bug#8344908 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=8344908] AND EXISTS ( SELECT 1 FROM xla_ae_lines xal, gl_import_references gir

1 sur 3

14/02/2014 19:27

Document 1610280.1

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=1...

WHERE xah.ae_header_id = xal.ae_header_id AND xah.application_id = xal.application_id AND xal.gl_sl_link_id = gir.gl_sl_link_id AND xal.gl_sl_link_table = gir.gl_sl_link_table); --2) SELECT /*+ leading(xah) */ gl.currency_code, xsu.je_source_name, xah.entity_id, xah.accounting_date, xah.ledger_id, xte.legal_entity_id, xah.accrual_reversal_flag, xle.budgetary_control_flag FROM XLA_LEDGER_OPTIONS opt, XLA_LEDGER_RELATIONSHIPS_V rs, xla_gl_ledgers_v gl, xla_ae_headers xah, xla_subledgers xsu, xla_events xle, xla.xla_transaction_entities xte WHERE opt.LEDGER_ID = xah.ledger_id AND opt.APPLICATION_ID = xah.application_id AND xsu.application_id = xah.application_id AND xah.event_id = 1570204 -- input parameters AND xah.application_id = 200 -- input parameters AND xah.event_id = xle.event_id AND xah.application_id = xle.application_id AND xah.entity_id = xte.entity_id AND xah.application_id = xte.application_id AND xah.parent_ae_header_id IS NULL AND xah.accounting_entry_status_code = 'F' AND opt.ENABLED_FLAG = 'Y' AND rs.LEDGER_ID = opt.LEDGER_ID AND ( rs.LEDGER_CATEGORY_CODE = 'PRIMARY' OR rs.LEDGER_CATEGORY_CODE = 'SECONDARY') -- commented bug 11883762 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=11883762] AND xsu.valuation_method_flag = 'Y' -- commented bug 11883762 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=11883762] AND opt.CAPTURE_EVENT_FLAG = 'Y')) AND rs.RELATIONSHIP_ENABLED_FLAG = 'Y' AND rs.ledger_id = gl.ledger_id AND rs.SLA_ACCOUNTING_METHOD_CODE IS NOT NULL AND NOT EXISTS (SELECT 1 FROM xla_ae_headers xah2 WHERE xah2.application_id = 200 AND xah2.event_id = 1570204 AND xah2.accounting_entry_status_code = 'F' AND NVL(xah2.gl_transfer_status_code,'N') IN ('N','NT')) -- can be reversed only if it is transferred --Added bug#8344908 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=8344908] AND EXISTS ( SELECT 1 FROM xla_ae_lines xal, gl_import_references gir WHERE xah.ae_header_id = xal.ae_header_id AND xah.application_id = xal.application_id AND xal.gl_sl_link_id = gir.gl_sl_link_id AND xal.gl_sl_link_table = gir.gl_sl_link_table); --3) SELECT /*+ leading(xah) */ gl.currency_code, xsu.je_source_name, xah.entity_id, xah.accounting_date, xah.ledger_id, xte.legal_entity_id, xah.accrual_reversal_flag, xle.budgetary_control_flag FROM XLA_LEDGER_OPTIONS opt, XLA_LEDGER_RELATIONSHIPS_V rs, xla_gl_ledgers_v gl, xla_ae_headers xah, xla_subledgers xsu, xla_events xle, xla.xla_transaction_entities xte WHERE opt.LEDGER_ID = xah.ledger_id AND opt.APPLICATION_ID = xah.application_id AND xsu.application_id = xah.application_id AND xah.event_id = 1570204 -- input parameters AND xah.application_id = 200 -- input parameters AND xah.event_id = xle.event_id AND xah.application_id = xle.application_id AND xah.entity_id = xte.entity_id AND xah.application_id = xte.application_id AND xah.parent_ae_header_id IS NULL AND xah.accounting_entry_status_code = 'F' AND opt.ENABLED_FLAG = 'Y' AND rs.LEDGER_ID = opt.LEDGER_ID AND ( rs.LEDGER_CATEGORY_CODE = 'PRIMARY' OR rs.LEDGER_CATEGORY_CODE = 'SECONDARY') -- commented bug 11883762 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=11883762] AND xsu.valuation_method_flag = 'Y' -- commented bug 11883762 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=11883762] AND opt.CAPTURE_EVENT_FLAG = 'Y')) AND rs.RELATIONSHIP_ENABLED_FLAG = 'Y'

2 sur 3

14/02/2014 19:27

Document 1610280.1

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=1...

AND rs.ledger_id = gl.ledger_id AND rs.SLA_ACCOUNTING_METHOD_CODE IS NOT NULL AND NOT EXISTS (SELECT 1 FROM xla_ae_headers xah2 WHERE xah2.application_id = 200 AND xah2.event_id = 1570204 AND xah2.accounting_entry_status_code = 'F' AND NVL(xah2.gl_transfer_status_code,'N') IN ('N','NT')); --4) SELECT /*+ leading(xah) */ gl.currency_code, xsu.je_source_name, xah.entity_id, xah.accounting_date, xah.ledger_id, xte.legal_entity_id, xah.accrual_reversal_flag, xle.budgetary_control_flag FROM XLA_LEDGER_OPTIONS opt, XLA_LEDGER_RELATIONSHIPS_V rs, xla_gl_ledgers_v gl, xla_ae_headers xah, xla_subledgers xsu, xla_events xle, xla.xla_transaction_entities xte WHERE opt.LEDGER_ID = xah.ledger_id AND opt.APPLICATION_ID = xah.application_id AND xsu.application_id = xah.application_id AND xah.event_id = 1570204 -- input parameters AND xah.application_id = 200 -- input parameters AND xah.event_id = xle.event_id AND xah.application_id = xle.application_id AND xah.entity_id = xte.entity_id AND xah.application_id = xte.application_id AND xah.parent_ae_header_id IS NULL AND xah.accounting_entry_status_code = 'F' AND opt.ENABLED_FLAG = 'Y' AND rs.LEDGER_ID = opt.LEDGER_ID AND ( rs.LEDGER_CATEGORY_CODE = 'PRIMARY' OR rs.LEDGER_CATEGORY_CODE = 'SECONDARY') -- commented bug 11883762 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=11883762] AND xsu.valuation_method_flag = 'Y' -- commented bug 11883762 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=11883762] AND opt.CAPTURE_EVENT_FLAG = 'Y')) AND rs.RELATIONSHIP_ENABLED_FLAG = 'Y' AND rs.ledger_id = gl.ledger_id AND rs.SLA_ACCOUNTING_METHOD_CODE IS NOT NULL;

If Query1 return rows and Query2 does not return any record, Then check the RDBMS version of the instance where fix script is ran.

1> If RDBMS version is 11.1.0.7.0, Rebuild the tables and its indexes. To do this use: ALTER TABLE MOVE <table name>; ALTER INDEX <index name> rebuild; Note : Alter All the tables and indexes used in above 4 queries. 2> Run the Selection and Fix script mentioned in Patch 17487581

REFERENCES
BUG:17778655 - INVOICES VALIDATED AND ENTRIES TRANSFERRED TO GL, BUT ACCOUNTING STATUS SHO NOTE:1071876.1 - R12 GDF: POSTED FLAGS ARE INCORRECT FOR ACCOUNTED INVOICES/PAYMENTS NOTE:1063263.1 - R12: Generic Data Fix (GDF) Patch 17487581 - Accounted Amounts are Out of Sync With Invoice Distribution Amounts

Related
Products
Oracle E-Business Suite > Financial Management > Procure to Pay > Oracle Payables > Patch Application Issues > Patch Errors and Unable to Proceed Back to Top
Copyright (c) 2014, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement

3 sur 3

14/02/2014 19:27

Vous aimerez peut-être aussi