Professional Documents
Culture Documents
Symptoms:
Solution:
Troubleshooting Details
It is important to have the latest Trial Balance code and files to avoid
encountering any of the known issues. Please apply the following patches
to get the latest Trial Balance Code and any dependent/related files (As of
14-Jul-10):
R12.0.x
9162536:R12.AP.A (Includes Summary/Detail Report Mode change and Trial
R12.1.x
9162536:R12.AP.B (Summary/Detail Report Mode change and Trial Balance
Remodel Phase 4)
9023641:R12.XLA.B
9133956:R12.XLA.B
9451385:R12.XLA.B
Note: Please see R12 Oracle Financials XLA Patching Dependency Analysis
Note 833986.1 for additional patching that may be required.
The Trial Balance Phase 4 remodel patch includes the previous remodel
additions/updates e.g.
AP Invoice amount and payment status fields are now included on the
report template for better diagnostics.
Improved performance in the Open Accounts Data Manager.
It only reports on Liability accounting line information.
The report filters out the Liability account data in AP, even if the same
account is used for non-Liability accounts.
No manual entries are inserted into the Trial Balance table
(xla_trial_balances)
This is the R12 Accounts Payable Trial Balance, this is the correct report
name to run if Trial Balance Remodel Phase 4 or higher has been applied.
This report is a modified version of the Open Account Balance Listing
report.
This is a Subledger Accounting report. This report should NOT be used for
Payables. Instead, use the applicable Payables modified version of the
report.
This is the subledger Open Account Balance Listing report modified for
Payables and should be used with Trial Balance Remodel Phases 1 - 3.
Note: Currently, the Trial Balance documentation and notes refer to the
Accounts Payable Trial Balance and Open Account AP Balance Listing report
interchangeably. The name change was due to a change in Phase 1 - 3,
going forward all Payables Trial Balance patches should retain the name
"Accounts Payable Trial Balance". Please make sure you run the correct
report based on your Trial Balance remodel phase and do NOT run the Open
Account Balance Listing report for Payables.
>cd $XLA_TOP/patch/115/sql
>sqlplus apps/****
>@xlaapinvpostupg.sql
Note: This step is for R11i Customers upgraded to R12 ONLY. NEW installs of
R12 and customers upgraded to R12.1.x should NOT complete this step.
Query 1: Use the following query to find the indexes that exist:
Make sure the ap_liability_balance table has a current last analyzed date
and shows a row count under num_rows column.
How to Rebuild the Open Account AP Balances Listing (Trial Balance) Data
Note: For better performance of Data Manager run, increase the number of
processors to 16,32 or 64 by
navigating to Sub Ledger Accounting Setup -> Open Account Balances
Listing Definitions
-> Process Options button and for the ledger update the number of
processors to
16,32 or 64.
Navigate: Sub Ledger Accounting Setup -> Open Account Balances Listing
Definitions ->
Process Options button and reset the number of processors back to 1 for
the ledger.
Query 3: Run the following query to verify the data was rebuilt
The rebuilt definition code data should have a minimum creation date equal
to the date the data was rebuilt.
1. Run a new Accounts Payables Trial Balance report for the report
definition with the rebuilt data and the following details:
Start Date = Begin Date for first period you started using Oracle (This
parameter is hidden as of Trial Balance Remodel phase 4, with default date
01-Jan-1950)
Note: See Note 444044.1 for details on how to change the template.
Note: The Accounts Payable Trial Balance report output shows a GL total.
That GL total includes manual and non Liability class entries from the
Payables subledger, and non-Payables source entries in GL. Use the given
method to reconcile, and the Trial Balance amount remaining total should
equal the GL total excluding the manual and non Liability class entries from
the Payables subledger, and non-Payables source entries in GL.
2. If you are unable to resolve this issue after reviewing the steps in this
section, please log an SR and include the following:
o R12 invoices reported on the Trial Balance for a specific supplier that are
paid and should not be reported.
o R12 invoices reported on the Trial Balance for a specific account that are
paid and should not be reported.
o Invoices created in R11i and reported on Trial Balance in R11i, but NOT
report on the R12 trial balance.
o Invoices created in R11i and NOT reported on Trial Balance in R11i, but
reported on the R12 trial balance.
Note: Use the new Payment Status and Cancelled Dates column to identify
Fully Paid and Cancelled invoices reported incorrectly.
b. Provide the data from the Get the example problem invoice data section
c. Upload the Accounts Payable Trial Balance report and request log output.
d. Upload the query results from the Get the Trial Balance file/package
versions section of this note
Steps to investigate/fix "AP Trial Balance total does not reconcile with GL":
2. If you are unable to resolve this issue after reviewing the steps in this
section, please log an SR and include the following:
b. When was the last time the Trial balance was in balance?
c. If any problem invoices have been identified as causing the out of
balance, provide the data from the Get the example problem invoice data
section from this note.
d. Upload the Accounts Payable Trial Balance report and request log output.
Upload for both the "Group by Account, Detail" and "Group by Account,
Summary" templates. Upload for the last month in balance and the current
month out of balance..
spreadsheet.
g. Upload the query results from the Get the Trial Balance file/package
versions section of this note
h. Upload the query results from the Get the Report Definition Data section
of this note.
i. Upload the query results from the Queries to Check for Known Issues
section of this note.
j. Upload the query results from the Queries to compare XLA and GL data
section of this note.
Type 3: R12 Trial Balance does not reconcile with R11.5 Trial Balance after
the upgrade.
2. If you are unable to resolve this issue after reviewing the steps in this
section, please log an SR and include the following:
e. Upload the R11i Accounts Payable Trial Balance with As of Date = Last
f. The R12 trial balance uses data from the R11i ap_liability_balance table to
report upgraded data. Run the following query to verify the data existed
and was correct in R11i:
Note: Download and apply Oracle Diagnostic patch 8599943 to get the
latest R12 Invoice Data Collection (APList) code.
select *
from xla_trial_balances
where source_entity_id in (
select entity_id
from xla.xla_transaction_entities xte
where application_id = 200
and (
select *
from ap_liability_balance
where invoice_id = &invoice_id;
Download and apply Oracle Diagnostic patch 8517685*** to get the latest
R12 Trial Balance Diagnostic.
SELECT *
FROM XLA_TB_DEFINITIONS_B;
SELECT *
FROM XLA_TB_DEFINITIONS_TL;
SELECT *
FROM XLA_TB_DEFN_DETAILS;
Common Problems
Subledger Accounting created, but not transferred to GL.
Subledger Accounting transferred to GL, but not posted in GL.
The trial balance Start Date and As of Date do not include the invoice and
payment accounting.
The Trial Balance was ran for a specific operating unit and the Ledger has
multiple operating units. The ledger total will only include the amounts for
the operating unit it was ran for.
Is the problem with upgraded data? (Check the APList upg_batch_id
column in xla_events and xla_ae_headers)
Do the APList accounting dates for the invoice and payment fall within the
range of the Start Date and As of Date Trial Balance parameters?
Are there rows in the xla_trial_balances tables? Do they look correct?
(For non-upgraded data) If data is missing from the xla_trial_balances
table, does the data in xla_ae_lines and xla_distribution_links look OK?
(For upgraded data) If data is missing from the xla_trial_balances table,
does the data exist in the ap_liability_balance table?
Review the definition data, does it look like the Invoice/Payment should be
included for a report definition? Does it has the same account/segment as
defined for the definition?
Verify the xlaapinvpostupg.sql script was ran. See the Complete PostInstall Steps for Trial Balance Remodel patch section of this note for
instructions on how to run this script.
The Accounts Payable Trial Balance GL total includes manual and non
Liability class entries from the Payables subledger, and non-Payables
source entries in GL. Make sure you exclude those from the GL Balance if
you are trying to reconcile to that total.
(For upgraded data) Were the R11i and R12 reports ran with the same
parameters? Same Start Date? Same As of Date? Same account?
Make sure the data is rebuilt. See the How to Rebuild the Open Account AP
Balances Listing (Trial Balance) Data section of this note for instructions on
how to rebuild the data and verify it has been rebuilt.
Query 8: Find how many transfer runs do not have data in the
gl_import_references table.
drop table sub_gir;
from
(select xeh.ledger_id, xeh.ae_header_id, xeh.accounting_date,
xeli.code_combination_id, sum(accounted_dr) xel_dr, sum(accounted_cr)
xel_cr, count(*)
from xla_ae_lines xeli, xla_ae_headers xeh
where xeli.ae_header_id = xeh.ae_header_id
and xeh.application_id = 200
and xeli.accounting_class_code = 'LIABILITY'
and xeh.event_type_code != 'MANUAL'
and xeh.gl_transfer_status_code = 'Y'
group by xeh.ledger_id, xeh.ae_header_id, xeh.accounting_date,
xeli.code_combination_id) xel,
(select definition_code, ledger_id, code_combination_id, ae_header_id,
gl_date,
sum(acctd_unrounded_dr) xtb_dr, sum(acctd_unrounded_cr) xtb_cr, count(*)
from xla_trial_balances
group by definition_code, ledger_id, code_combination_id, ae_header_id,
gl_date) xtb
where 1=1
and xtb.ae_header_id = xel.ae_header_id(+)
and nvl(xtb.xtb_dr, 0) - nvl(xtb.xtb_cr, 0)= nvl(xel.xel_dr(+),0)nvl(xel.xel_cr(+),0)
and xtb.ledger_id = xel.ledger_id(+)
and xtb.code_combination_id = xel.code_combination_id(+)
and trunc(xtb.gl_date) = trunc(xel.accounting_date(+))
and xel.ae_header_id is NULL
order by xtb.definition_code, gl_date desc;
And Check for data in the xla_ae_lines table that does match/exist in
xla_trial_balances table
select xel.*
from
(select xeh.ledger_id, xeh.ae_header_id, xeh.accounting_date,
xeli.code_combination_id, sum(accounted_dr) xel_dr, sum(accounted_cr)
xel_cr, count(*)
from xla_ae_lines xeli, xla_ae_headers xeh
where xeli.ae_header_id = xeh.ae_header_id
and xeh.application_id = 200
and xeli.accounting_class_code = 'LIABILITY'
and xeh.event_type_code != 'MANUAL'
and xeh.gl_transfer_status_code = 'Y'
group by xeh.ledger_id, xeh.ae_header_id, xeh.accounting_date,
xeli.code_combination_id) xel,
(select definition_code, ledger_id, code_combination_id, ae_header_id,
gl_date,
sum(acctd_unrounded_dr) xtb_dr, sum(acctd_unrounded_cr) xtb_cr, count(*)
from xla_trial_balances
group by definition_code, ledger_id, code_combination_id, ae_header_id,
gl_date) xtb
where 1=1
and xtb.ae_header_id(+) = xel.ae_header_id
Query 18: Run the following query to get the account ccid
SELECT *
FROM gl_code_combinations
WHERE 1=1
and segment1 = '&segment1'
and segment2 = '&segment2'
and segment3 = '&segment3'
and segment4 = '&segment4'
and segment5 = '&segment5';
Query 19: Please run the following query to show the Liability account
totals in GL (gl_je_lines):
select gjh.period_name, gps.start_date, gjh.je_source, gjh.ledger_id,
gjh.status,
gjl.code_combination_id, sum(accounted_dr), sum(accounted_cr), count(*)
from gl_je_lines gjl, gl_je_headers gjh, gl_je_batches gjb, gl_period_statuses
gps
where gjl.je_header_id = gjh.je_header_id
and gps.period_name(+) = gjh.period_name
and gps.ledger_id(+) = gjh.ledger_id
and gps.application_id = 200
and gjb.je_batch_id = gjh.je_batch_id
and code_combination_id in (&ccid)
and gjh.ledger_id = &ledger_id
group by gjh.period_name,gps.start_date, gjh.je_source, gjh.ledger_id,
gjh.status,
gjl.code_combination_id
order by gjh.je_source, gps.start_date;
Note: Verify the entries are posted, Status = P.
Query 20: Please run the following query to show the Liability account
totals in GL (gl_balances):
select *
from gl_balances
where 1=1
and code_combination_id in (&ccid)
and ledger_id = &ledger_id
order by period_year, period_num; Query 21: Please run the following query
to show the Liability account totals in AP (xla_ae_lines):
select xeh.application_id, xeh.ledger_id, xeh.period_name, gps.start_date,
xeh.gl_transfer_status_code, xel.accounting_class_code,
xel.code_combination_id, sum(xel.accounted_dr), sum(xel.accounted_cr),
count(*)
from xla_ae_lines xel, xla_ae_headers xeh, gl_period_statuses gps
where 1=1
and xel.application_id = 200
and xeh.ae_header_id = xel.ae_header_id
and xeh.gl_transfer_status_code = 'Y'
If the steps above do not resolve the issue, the following additional
information may be needed:
1. Get the trace for the Trial Balance process
The Trial Balance report does not directly use the data from the
XLA_TRIAL_BALANCES tables. It takes the data from the
XLA_TRIAL_BALANCES tables and inserts it into
the Global Temporary XLA_TRIAL_BALANCES_GT table. If there is a problem
with that part of the code, a trace file may be needed to troubleshoot.
a. Submit the Trial Balance for the problem supplier to limit the size of the
trace and use the trace instructions from:
Note 458371.1 - How To Get The R12 Trace/Debug File?
Get the insert from the trace and modify the insert to insert into
copy_XLA_TRIAL_BALANCES_GT
and replace the bind variable in the script with the actual values.
d. Query the data. Please upload the output formatted in an Excel file:
select *
from copy_xla_trial_balances_gt;
2. Review the RTF file
Upload the RTF file that corresponds to template i.e. Template = Accounts
Payable Trial Balance - Group by Account, Detail corresponds to
APTBRPT02.rtf. Open the file in MS WORD.
Do the following to find the column name that maps to the template field
name:
a. Open the RTF file in MS WORD.
b. Right click on the field name > Click on Properties > Add Help Text
3. and XML output
Find the report output in the View Request form, Click on the Diagnostics
button
and select View XML.
cd $AP_TOP/patch/115/publisher/templates/US/
strings -a APTBRPT01.rtf
patch 9162536
strings -a APTBRPT02.rtf
patch 9162536
strings -a APTBRPT03.rtf
patch 9162536
strings -a APTBRPT04.rtf
patch 9162536
strings -a APTBRPT05.rtf
patch 9162536
strings -a APTBRPT06.rtf
patch 9162536
cd $XLA_TOP/patch/115/publisher/defs/
strings -a XLATBRPT.xml | grep Header
cd $XLA_TOP/patch/115/xdf
strings -a xla_trial_balances_gt.xdf | grep Header
cd $AP_TOP/patch/115/xdf
strings -a ap_sla_invoices_transaction_v.xdf | grep Header
select *
from dba_source
where line =2
and name in ('XLA_TB_DATA_MANAGER_PVT','XLA_TB_REPORT_PVT',
'XLA_TB_AP_REPORT_PVT','XLA_TB_BALANCE_PKG');
References: