You are on page 1of 37

How to resolve Costing Errors & Problems (Doc ID

865438.1)

Modified:22-Jan-2014 Type:DIAGNOSTIC TOOLS

In this Document

Main Content
Purpose
Troubleshooting Steps
Component: Data Fix
Component: Period Close
Component: WIP
Component: COST_ERROR
Component: Reports
Component: SLA
Component: Inventory
Component: Accrual
References

APPLIES TO:

Oracle Inventory Management - Version 11.5.10.2 and later


Oracle Cost Management - Version 11.5.9 and later
Oracle Work in Process - Version 11.5.10.0 and later
Oracle Subledger Accounting - Version 11.5.10 and later
Information in this document applies to any platform.

MAIN CONTENT

Purpose
Identify known and unknown issues in Costing, diagnose, and provide common data
fixes or root cause Patch.

Troubleshooting Steps
A. We expect Sup/Dev to use this note to find similar historical issues, collect diagnostic
data and suggest relevant root cause patches to the customer. However, since data fix
is very specific to individual customers, the listed scripts are only for reference purpose.
For a newly reported customer issue, a data fix SR/ Bug is still required to
get confirmation and approval of the final fix.

B. It is Highly recommended to apply the latest consolidate Patch for Costing:

R11i: please review Note 816651.1-- CONSOLIDATED COSTING PATCH FOR 11.5.10.2
CUSTOMERS FOR BUGFIXES TILL 30-MAR-2009

R12: please apply Patch 8442125 - COSTING R12 Consolidated patch applicable on top
of R12 RUP6. This patch includes many critical and recommended patches fixed as on
16- APR-2009.

C. If you encounter an Error/uncosted transactions, please provide the following


information in details:

1.Refer to Note 378348.1 (Data Collection Scripts for Cost Management ) and provide
spooled output of err_txn.sql,txn.sql, and cmlwmx.sql.

Upload the output of txn.sql for item in question


ORGANIZATION_ID = &org_id and INVENTORY_ITEM_ID = &item_id
Refer to Note 378348.1 (Data Collection Scripts for Cost Management )

2. Run and upload output of Costing_hook.sql from Note 378348.1

3. For the Organization and period in question, upload completed spooled file
CstDiag115.txt after running CstCheck.sql and output of BDEprdcls.sql Diagnostics
Scripts (see Note 246467.1)

Problem Error Data Collection Root Rel


Description Cause eas
e
Component: Data
Fix
In an actual costing none 1. Provide the output All the 11.5
organization (Average, showing any back dated causes of .10.
FIFO or LIFO) one or transactions this 2
more of the followings from Note 291005.1 To problem
can occur: verify if there have been has not R12
back dated transactions, being fully
1. Negative Quantity the script can be run to identified,
on Item Cost History check the type of please
form, which is not transaction the dates and make sure
matching with Onhand the periods affected. you log a
quantity form. bug with
2. Check if there is MMT- Cost
2. Some items have MOQ mismatch Managemen
prior costed quantity (Inventory issue) t to analyze
not matching from Note 291005.1. Log the
with the quantity in a bug against Inventory feasibility of
the previous team so that MMT-MOQ finding the
transaction in qty mismatch can be root cause
transaction history fixed. of this
form problem.
3. Provide output of
3. The All Inventories costing diagnostic script
Value Report is not mmt_cql_info_11i10+.sql
matching with the
Transaction Value
Report Verify if any mismatch in
MMT-CQL is detected by
4. The total quantity in the script and verify no
Layer Cost Update MMT-MOQ mismatch is
form is not found, if it is go back to
matching with the the bug logged in 2 with
Onhand quantity form Inventory Development
(Only in FIFO/LIFO) to verify if fix was
applied.
5.Any of these
symptoms could 4. Run the costing
signify MMT-CQL diagnostic script for all
mismatches or MMT- the cost groups in the
MOQ mismatches organization that is
which will need to be having problems to find if
confirmed by the there are mismatches
diagnostic scripts. between MMT and CQL.
Every time the script is
run it will create a spool
file mmt_cql_info.lst

Customer needs to give


input as:
organization_id
and Cost_group_id
Unbalance Journal EU02 Run and upload the Apply Patch 11.5
entry from Inventory following in Excel file 3557357 .9
with error code: format with headings:
EU02
Journal import is SELECT *
failing with EU02 with FROM GL_INTERFACE
an imbalanced entry where
caused by root cause USER_JE_SOURCE_NAME
Bug 3557357 ='Inventory'
and STATUS Like
'%EU02%' ;
Subledger Period Close none Review Note 738529.1 Patch 12.0
Exception Report 7690716 .5
Event Type exceptions
Inventory Journals are EU02 Run the following SQL to Patch 11.5
stuck in GL interface identify transactions that 7127206 .10.
EU02 are in batches causing 2
REFERENCE_ACCOUN the discrepancy in the
T = -1 accounting layer.

Select
mta.transaction_id,
SUM(mta.base_transactio
n_value)
from gl_interface gli,
mtl_transaction_accounts
mta
where gli.reference1 =
&'GL batch name'
and gli.gl_sl_link_table =
'MTA'
and gli.gl_sl_link_id =
mta.gl_sl_link_id
group by
mta.transaction_id
having
SUM(mta.base_transactio
n_value) <> 0
Run Receiving Account ORA-01476: Run and upload the Apply Patch 11.5
Distribution report DIVISOR IS EQUAL following in Excel file 6790176 .10.
error ORA-01476: TO ZERO format with headings: 2
DIVISOR IS EQUAL TO
select *
ZERO. from
Error due to a unit of rcv_accounting_events
measure conversion where
that rounded the value primary_quantity<=0;
to 0 in the table
RCV_ACCOUTING_EVE
NTS
Missing RRSL return to none Provide output of the Apply Patch 11.5
receiving records for following script 3712932 .9
PA related Expense PO
transactions. data colection script
Some Return to bug7392052.txt
Receiving transactions
were accounted in a
Return to Vendor or
another Return to
Receiving transaction
Cost History shown none 1. Provide the output none 11.5
Negative Onhand showing any back dated .9
Quantity . transactions
from Note 291005.1 To
Negative quantity verify if there have been
appearing on the Item back dated transactions,
Cost History due to the script can be run to
MMT-MOQ mismatch check the type of
and MMT-CQL transaction the dates and
mismatch the periods affected.

2. Check if there is MMT-


MOQ mismatch
(Inventory issue)
from Note 291005.1. Log
a bug against Inventory
team so that MMT-MOQ
qty mismatch can be
fixed.

3. Run the following data


script
mmt_cql_info_new_11i9.
sql
Period Closed- none none Apply Patch 11.5
Summarized Reversal. 7036602 .10.
Script needed to undo/ 2
Reopen Period Close.
WIP VALUE REPORT, none Provide output of the Apply Patch 12.0
old Repetitive following script 3621298 .2
Schedule is showing
Ending Balance. Data collection
Even after the Bug7554940.txt
accounting period is
closed, there are some
repetitive schedules
records which aren't
balanced in WPB, and
that makes them to
have an ending
balance causing that
this value is reflected
as the ending balance
in the WIP Value
Report.

Component: Period
Close
EU02 Error while EU02 Run and upload the Apply Patch 11.5
running the JOURNAL following in Excel file 7127049 .10.
IMPORT from format with headings: 2
Inventory. The error
comes due to the fact select *
that user doesn't use from
the encumbrance mtl_transaction_accounts
functionality for
requisitions but the where
MTA was being accounting_line_type =
created for 15
encumbrance reversal and
with encumbrance encumbrance_type_id is
type id as null due to null
which transfer to GL and gl_batch_id =
was treating it as &affected_glbatchid
Actual and thus the and
error was EU02. transaction_source_type_
id in (7,8)
and not exists ( select 'x'
from
FINANCIALS_SYSTEM_PA
RAMS_ALL
where set_of_books_id =
&sob_id and org_id =
&operating_unit_id
and
nvl(req_encumbrance_fla
g,'N') = 'Y' )
NEED TO CLOSE none none Submit the 11.5
MONTH IN COST pending .10.
MANAGEMENT transactions 2
The reason was that for costing
the through
transaction_group_id forms.
was populated for the
transactions. This can Review
happen if the cost Note
worker was cancelled. 748704. 1
Cost workers are
system generated
programs and should
never be cancelled.
There was another
problem that the misc
receipt transaction had
null
distribution_account_i
d which was there
because of an
unknown inventory
bug.
Inventory Accounting none Run and upload the Apply Patch 11.5
Period is combining following in Excel file 5257946 .10.
Data from Different format with headings: 2
CALENDERS
The Open Period a. SELECT
control program can organization_id,
cause a corruption in operating_unit,
org_acct_periods that legal_entity,
will pull data from set_of_books_id
different calendars in FROM
particular this cst_organization_definitio
customer was having ns;
transactions with
wrong calendar b. SELECT
set_of_books_id,
PERIOD_SET_NAME,
creation_date,
last_update_date
FROM gl_sets_of_books;

c. SELECT *
FROM org_acct_periods
WHERE organization_id
= &org_id;

d. SELECT *
FROM gl_periods

Check if the organization


has correct period
Pending/ Uncosted ERROR_CODE: 1. Run 1. Following 11.5
Transactions error due CST_INVALID_WIP wip_cst_invalid_wip.sql. Root-cause .10
to non existence of ERROR_EXPLANATI This will create an output patches
wip_period_balances. ON: The wip entity is called should be R12
either not defined or wip_cst_invalid_wip.lst applied:
does not have a
period balance entry a. If you see output for R:11.5.10
SQL # 1, log bug against 4209052
CST with the output. 4322200
b. If you see output for 4771899
SQL # 2 and 3, please 5187652
follow the instructions
mentioned in Bug R12:
5860661. Apply <<
c. If you see output for Patch
SQL # 4 and 5, log bug 8344919>>
against WIP To update
with the output file version
d. If you see output for INVTTGPM.f
SQL # 6, log bug against mb
WIP with the output 120.19.120
e. If the query did not 00000.7 or
return any rows for the higher
SQLs mentioned in
2. If
wip_cst_invalid_wip.sql, wip_period_
please follow steps balances
mentioned in "Missing does not
records in wip period have data
balances" section. for the
combination
f. If there are records in of
WIP_FLOW_SCHEDULES, organization
whose WIP_ENTITY_ID _id,
are missing in acct_period
WIP_ENTITIES, then log _id and
bug against WIP with the Transaction
output. _source_id
The root cause of this (wip_entity
issue is disabling the _id) existing
standard WIP triggers on in
table mtl_materia
WIP_FLOW_SCHEDULES. l_transactio
Use the following query ns customer
to check the status of the can get the
triggers: records
SELECT status FROM inserted
all_triggers WHERE into
table_name LIKE wip_period_
'WIP_FLOW_SCHEDULES' balances
; using the
If the triggers are script
disabled, enable them to mentioned
prevent further data in the
corruption. following
Note
2.Provide output from 1080033.6
Note 362826.1 Oracle to create
Work in Process the missing
CST_INVALID_WIP Error WPB
Data Collection Test records.
Run the
c. Run the following to script
determine whether there cm276916.s
is a row in ql out of
wip_period_balances for Note
this job / accounting 1080033.6
period combination: if this error
is for
select * discrete
from jobs.
wip_period_balances Otherwise
where wip_entity_id = run the
&wip_id script
and acct_period_id = cm325424.s
&period_id ql if the
and organization_id= errors are
&org_id; for
repetitive
d.Also can run schedules.
wip_missing_wpb.sql to Then
see how many jobs have resubmit
missing the
records in transactions
wip_period_balances through
table. forms.

e. Provide job.sql output 3.After


( Note 378348.1 ) for the Patch
following jobs: application
wip_entity_id=& and data
( TRANSACTION_SOURC fix, please
E_ID in MMT table) resubmit
for the error transaction through
application
itself.
Costs ->
View
Transaction
s ->
Material
Transaction
s.
From the
menu,
Tools Select
All: Tools
Submit All

Else, can
use the
following
script to
submit the
records in
MMT table:

update
mtl_materia
l_transactio
ns
set
costed_flag
= 'N',
error_code
= NULL,
error_expla
nation =
NULL,
transaction
_group_id
= NULL,
transaction
_set_id =
NULL
where
organization
_id =
&org_id
and
TRANSACTI
ON_ID=
&err_txn_id
and
costed_flag
='E';

commit;
TRANSFER none Run and upload the Apply Patch 11.5
TRANSACTIONS TO following in Excel file 7026054 .10.
GL - COMPLETED with format with headings: to update 2
ERROR file to latest
The Gl batch_id in SELECT * version
org_gl_batches gets FROM org_gl_batches CSTVWORB
stamped with -1* ogb .pls
gl_batch_id if the where ogb.gl_batch_id < 115.4.1151
transfer errs out. Now 0 and exists 00.7 or
the problem here is ( select 'x' from higher
that when the funds mtl_transaction_accounts
checker errs out it mta
commits the data into where mta.gl_batch_id =
gl_interface and data -1 * ogb.gl_batch_id and
in MTA and WTA mta.organization_id =
( updation of ogb.organization_id
gl_batch_id). So we union all select 'x' from
will have gl_batch_id wip_transaction_account
as "XX" in MTA and s wta where
WTA wta.gl_batch_id = -1 *
while "-XX" in ogb.gl_batch_id and
org_gl_batches. wta.organization_id =
ogb.organization_id )

Component: WIP
RESOURCE none Provide output of the none 12.0
TRANSACTIONS are following script .4
not always updating
Costs on the WORK Data collection
ORDER. Bug7447898.txt

Due to incorrect
maintenance cost
category setup cost
Labor transactions are
not being recorded on
EAM work orders
tables i,e
wip_eam_period_bala
nces and
cst_eam_asset_per_ba
lances
User would see
difference in wip value
report and EAM value.
RESOURCE none Run and upload the Apply Patch 11.5
transactions Pending following in Excel file 3309813 .10.
in format with headings: 2
WIP_COST_TXN_INTE
RFACE table. SELECT Count(*)
FROM
Transactions in WCTI wip_cost_txn_interface
which is getting wcti
orphaned is due to the WHERE wcti.entity_type
launching of resource = 4 AND exists ( select
cost worker when 'x' from
there is a running cost mtl_material_transaction
update,due to this for s mmt2 where
the stuck records in mmt2.completion_transa
WCTI all the ction_id =
associated completed wcti.completion_transacti
transactions are on_id and
costed. mmt2.transaction_source
_type_id =5 and
mmt2.transaction_action
_id in (31,32) and
mmt2.costed_flag IS null
)
WIP_PERIOD_BALANC none Run and upload the Apply Patch 11.5
ES Created for all following in Excel file 5600760 .10.
Open Period by WOLC. format with headings: 2

Wip_period_balances select *
records existed for from
flow schedules for all wip_period_balances b
open future periods where b.organization_id
even if they were = &org_id and exists
beyond the closing (select 1 from
date of the flow wip_entities
schedule. e,org_acct_periods o
where e.wip_entity_id =
b.wip_entity_id and
o.organization_id =
e.organization_id and
o.acct_period_id =
b.acct_period_id and
o.period_start_date >
SYSDATE and
e.entity_type = 4) order
by wip_entity_id,
acct_period_id desc
Unable to Save Move none Run and upload the none 11.5
Transactions following in Excel file .10.
Customer had a few format with headings: 2
items which didn't
have costs defined SELECT
even though they msi.inventory_item_id,m
were costing enabled p.organization_id,mp.org
items.This seems to anization_code
be a PLM bug. FROM
inv.mtl_system_items_b
msi,inv.mtl_parameters
mp
WHERE NOT EXISTS
( SELECT 'X' FROM
bom.cst_item_costs cic
WHERE
cic.inventory_item_id =
msi.inventory_item_id
AND cic.organization_id
=
mp.cost_organization_id
AND cic.cost_type_id =
mp.primary_cost_method
) AND
msi.costing_enabled_flag
= 'Y' and
msi.organization_id =
mp.organization_id;

Component:
COST_ERROR
Margin Analysis Load ORA-20001: none Apply Patch 12.0
Run error with CSTPMRGL.load_om 7215820 .4
CSTPMRGL.LOAD_OM _margin_data(160):
_MARGIN_DATA(160) ORA-01403
ORA-12899
Cannot Calculate none none Patch 12.0
Average Resource & 6908025 .3
Overhead Costs
resulting in WIP
VARIANCE.

No errors job
completion cost
incorrect
CST_MATCH_DATE_PE Error Cosde: Run and upload the 11.5
RIOD error, pending CST_MATCH_DATE_ following in Excel file .10.
Cost Transactions PERIOD format with headings: Data Fix 2
Error explanation: ----------
The transaction date SELECT Run the
is not within the oap.acct_period_id following
accounting period oap_acct_period_id, update to
specified." mmt.acct_period_i d correct the
mmt_acct_period_id, acct_period
COGS recognition mmt.transaction_id _id:
Errors.Refer Note mmt_transaction_id,
733275.1 oap.period_start_date Update
period_start_date, mtl_materia
mmt.transaction_date l_transactio
mmt_transaction_date ns
FROM set
mtl_material_transaction acct_period
s mmt, _id =
org_acct_periods oap ,
WHERE mmt.costed_flag costed_flag
= 'E' = 'N'
AND ,
mmt.transaction_source_ transaction
type_id = 2 _group_id
AND = NULL
mmt.transaction_action_i ,
d = 36 transaction
AND mmt.organization_id _set_id =
= oap.organization_id NULL
AND oap.acct_period_id , error_code
= mmt.acct_period_id = NULL
AND ,
( mmt.transaction_date error_expla
< oap.period_start_date nation =
OR mmt.transaction_date NULL
> where
oap.schedule_close_date costed_flag
+.99999); = 'E'
and
acct_period
_id =
and
error_code
=
'CST_MATC
H_DATE_PE
RIOD'
and
organization
_id = ''

Root Cause:
--------------
11i:
Patch
4447285 to
obtain
CSTPACQB.
pls
115.35.115
100.5
Periodic
Cost Update

Patch.4870
805
CSTFEPCU.f
mb in
version
115.18.115
100.3
Periodic
Cost Update

Patch.5398
466 wms
patch/115/s
ql
WMSTKPTB
.pls
115.141.11
5100.25

Patch
4992305
CSTVCPVB.
pls version
115.0.1151
00.7

R12:
Apply Patch
6873037
FAILURE IN Failure in procedure none Apply Patch 12.0
PROCEDURE CST_RevenueCogsM 8685863 .6
CST_REVENUECOGSM atch_PVT.Insert_On or Higher to
ATCH_PVT.INSERT_O eSoIssue() update file
NESOISSUE() Unexpected error in CSTRCMVB.
CST_RevenueCogsM pls to
atch_PVT . version
Insert_OneSoIssue ( 120.37.120
40 ) 00000.25
The transaction date
is not within the The
accounting period following
specified. pre-req
patch needs
to be
applied
first: Patch
8510248
DEADLOCK IN COST none none Apply Patch 12.0
WORKER (CMCMCW). 6709905 .4

The update to WPB for


repetitive schedule
does not lock the rows
first causing that other
workers may try to
pick the rows and may
go into deadlock.
Periodic Absorption No entries found for none Please log 11.5
Cost Processor 'RUN list values an SR with .10.
OPTIONS' error NO support to 2
LOV NO ENTRIES re-set the
FOUND process
status as
'unprocesse
d' for
problematic
period
ACTUAL COST ORA-01455: Run and upload the Make sure R12.
WORKER CMLACW converting column following in Excel file you have X
FAILED DUE TO ORA- overflows integer format with headings: the latest
01455: CONVERTING data type code for the
COLUMN OVERFLOWS select * following
INTEGER DATATYPE from files:
mtl_material_transaction
s inltcp.lpc
where costed_flag = 'E'; cmlacw.lpc
cmlmcw.lpc
cmllcw.lpc

For R12.x
Apply Patch
10435651:R
12.BOM.A.
or higher

For R12.1.1
Apply Patch
Patch
10416679:R
12.BOM.C
or higher
CSTPACDP.INV_COST CSTPACIN.COST_IN none Apply Patch 12.1
_TXN (45): ORA- V_TXN:CSTPACDP.in 7384398 .1
01086: SAVEPOIN v_cost_txn (45):
ORA-01086:
This is because of the savepoint
spell mistake in the 'INSERT_ONESOISS
code. save point. UES_PVT' never
Changed 'ROLLBACK established
TO ORA-06512: at
Insert_OneSoIssues_P ""APPS.CST_REVENU
VT' to 'ROLLBACK TO ECOGSMATCH_PVT"
Insert_OneSoIssue_PV ", line 2338
T' in ORA-06510: PL/SQL:
Insert_OneSoIssue unhandled user-
procedure defined exception
CSTPLCIR.COMPONEN CSTPLCIR.componen Run and upload the Apply Patch 11.5
T_ISSUE():30:INVENT t_issue():30:Invento following in Excel file 7282633 .10.
ORY TOTAL TXN QTY ry total txn qty was format with headings: 2
WAS 0; EXPECTED -1 0; expected
Distributiobs for SELECT *
cst_inv_layer_cost_det or error: FROM CST_INV_LAYERS
ails Is not created CIL
whenever layer CSTPLCIN.COST_INV WHERE NOT EXISTS
quantity is zero in _TXN:CSTPLENG.cre (SELECT 1
cst_inv_layers ate_layers FROM
There were couple of (130)::ORA-01407 CST_INV_LAYER_COST_
records in cannot update DETAILS CILCD
CST_INV_LAYERS (""BOM"".""CST_INV WHERE
which didn't have data _LAYERS"".""LAYER_ CILCD.INV_LAYER_ID
in COST"") to NULL =CIL.INV_LAYER_ID);
CST_INV_LAYER_COS
T_DETAILS
or getting error:

CSTPLCIN.COST_INV_
TXN:CSTPLENG.CREAT
E_LAYERS (130):
ORA-1407 CANNOT
UPDATE ("BOM
Lines from Inventory No Error drill down Run the following to Apply Patch 11.5
View from GL is incorrect identify the incorrect 7264369 .10.
XLA_INV_AEL_GL_V transaction: 2
XLAIQDRL select * from
from
mtl_transaction_accounts
mta,gl_je_lines jel
where mta.gl_batch_id =
jel.reference_1
and
mta.reference_account =
jel.code_combination_id
and mta.transaction_id =
NVL(jel.reference_3,
mta.transaction_id)
and
NVL(mta.gl_sl_link_id,-1)
= NVL(jel.gl_sl_link_id,
NVL(mta.gl_sl_link_id,-
1))
having
SUM(base_transaction_v
alue) = 0"
After RMA Receipt Failure in procedure Run and upload the Apply Patch 12.0
transaction showing CST_RevenueCogsM following in Excel file <="" a=""> .4 to
Costing Error in MMT atch_PVT.Process_R format with headings: 12.x
table maReceipt() to update
SELECT * FROM file
or error cst_cogs_events RCVCOTRX.
CSTPACIN.COST_IN WHERE cogs_om_line_id pld
V_TXN:UNEXPECTED = &om_line_id; 120.53.120
ERROR IN 10000.9 or
CST_REVENUECOGS SELECT * FROM higher
MATCH_PVT.INSERT mtl_material_transaction
_ONES s and Patch
WHERE 7015709 or
(trx_source_line_id = higher to
&source_line_idOR update file
transaction_id = CSTRCMVB.
&txn_id); pls
120.37.120
SELECT * FROM 00000.11
oe_order_lines_all
WHERE line_id =
&line_id;

SELECT * FROM
cst_revenue_cogs_match
_lines
WHERE cogs_om_line_id
= &om_line_id;
Cost Manager is CST_MATCH_DATE_ Run and upload the Apply Patch 12.1
Unable to Cost PERIOD following in Excel file 6873037
Transactions, ends in format with headings: or higher to
error update file
SELECT CSTRCMVB.
CST_MATCH_DATE_PE oap.acct_period_id pls
RIOD oap_acct_period_id,
mmt.acct_period_i d
mmt_acct_period_id,
mmt.transaction_id
mmt_transaction_id,
oap.period_start_date
period_start_date,
mmt.transaction_date
mmt_transaction_date
FROM
mtl_material_transaction
s mmt,
org_acct_periods oap
WHERE mmt.costed_flag
= 'E'
AND
mmt.transaction_source_
type_id = 2
AND
mmt.transaction_action_i
d = 36
AND mmt.organization_id
= oap.organization_id
AND oap.acct_period_id
= mmt.acct_period_id
AND
( mmt.transaction_date
< oap.period_start_date
OR mmt.transaction_date
>
oap.schedule_close_date
+.99999);
INV_EVENT_3S INV_EVENT_3S none Please log 11.5
Generates Unbalanced an SR with .10.
Entries support 2

MCACD not created,


missing cost details in
CICD
MMT error with CST_INVALID_WIP Run the following script none 11.5
CST_INVALID_WIP and identify the .10.
with missing records in reason.Based on this 2
WIP_FLOW_SCHEDUL should transfer the bug
E. to respective team if data
fix for the issue is not
This error can occur in provided in this link
following cases:
wip_cst_invalid_wip.sql
1.MISSING records in
WIP_FLOW_SCHEDUL
E.
2.Missing records in
WIP_PERIOD_BALANC
ES
(These two errors
should be handled by
wip team)
AN INVALID ACCOUNT An invalid account is 1.Make sure to set the none 12.0
IS ASSOCIATED WITH associated with the following profile options .4
THE ITEM BEING item being MRP:debug Mode option
TRANSACTED transacted. set to yes
MRP: Trace Mode set to
yes
CST:Cost update debug
level = Full

2.Resubmit the error


transactions for costing.
Uncosted/failed
transactions can be
resubmitted through
application itself.
Costs -> View
Transactions -> Material
Transactions.
From the menu, Tools
Select All: Tools Submit
All

Else, can use the


following script to submit
the records in MMT
table:

update
mtl_material_transaction
s
set costed_flag = 'N',
error_code = NULL,
error_explanation =
NULL,
transaction_group_id =
NULL,
transaction_set_id =
NULL
where organization_id =
&organization_id
and costed_flag in
('N','E');

commit;

3.Obtain the log file of


the Cost Worker.
CSTPACIN.COST_INV_ cstpacin.cost_inv_tx 1.Set MRP DEBUG Data 12.0
TXN: an Invalid n:an invalid account 2.Resubmit the error issue(Root .4
Account is Associated is associated with transactions for costing. cause
with the Item. the item 3.Obtain the log file of should be
PAC distribution identified
A miscellaneous processor. by
transaction was Inventory
erroring out with error Team)
due to missing
distribution_account_i
d information
Error in Obtaining the Error in Obtaining 11i: Apply 11i
Transfer Price the Transfer Price Patch.9302 &
Internal Requisition 594 R12
Intransit Receipt inltcp.lpc
transaction 115.120.11
5100.52 or
higher

R12: apply
Patch<>
inltcp.lpc
120.35.120
10000.13 or
higher
Material or CMCACW - Error Code = No This query will list all the 11i: Please 11i
Actual Cost Worker Error in transaction Ids for the review &
completes with CSTPSISC.ins_std_co transactions from Note: R12
Error st MMT(MTL_MATERIAL_TR 284700.1 ,
Error explanation = ANSACTION) Note
CSTPSISC.INS_STD_ table which are also 290868.1
COST (40): ORA- having entries in the
00001: unique accounting tables. R12 Patch
constraint 10634679:R
(INV.MTL_CST_ACT Select 12.BOM.A
UAL_COST_DETAILS MMT1.transaction_id,MM
_U1) violated T1.costed_flag, R12.1 Patch
MMT1.error_code,MMT1. 10416679:R
error_explanation 12.BOM.C
from
MTL_MATERIAL_TRANSA
CTIONS MMT1 where
MMT1.transaction_id in
( SELECT
MMT.TRANSACTION_ID
FROM
MTL_MATERIAL_TRANSA
CTIONS MMT WHERE
MMT.costed_flag in
('N' ,'E')
AND (EXISTS(SELECT 1
FROM
MTL_TRANSACTION_ACC
OUNTS MTA
WHERE
MMT.transaction_id=MTA
.transaction_id) OR
EXISTS (SELECT 1 FROM
MTL_CST_ACTUAL_COST
_DETAILs MCACD
WHERE
MCACD.transaction_id=M
MT.transaction_id)))
Component:
Reports
Journal Entries Report P_SECURITY_ID_IN none Please log 12.0
- Cost Management T_1 an SR with .5
error support
P_SECURITY_ID_INT_
1
the function "Change
inventory
Organization" was not
assigned to the
responsibility.
POXRRCVV Receiving ORA-01476: divisor Run and upload the Apply Patch 11.5
Value Report is equal to zero following in Excel file 6790176 .10.
completes with error format with headings: to update 2
ORA-01476: divisor is file
equal to zero SELECT RCVVRUTB.
RAE2.rcv_transaction_id pls or
FROM higher
rcv_accounting_events
RAE2
WHERE
RAE2.transaction_quantit
y=0
OR
RAE2.primary_quantity=
0
OR
RAE2.source_doc_quantit
y=0);
ORGANIZATIONS MSG-00999: Run and upload the none 11.5
CLOSED BUT NOT CSTRPCRE >X Mon following in Excel file .10.
SUMMARIZED - Sep 1 14:56:29 2008 format with headings: 2
PERIOD CLOSE
RECONCILIATION REP-0771: After SELECT
Due to incorrect Form trigger failed. MAX(acct_period_id)
sequence of INTO l_prior_period_id
acct_period_id,Period FROM org_acct_periods
close Reconciliation WHERE organization_id
Process Failed. = p_org_id
AND acct_period_id <
p_period_id;
then log a data fix bug
with development
All Inventories Value none Run the following: none 11.5
Report - Average .9
Costing QTY mmt_cql_info_new_11i9.
mismatch with sql
Transaction Value
report
MMT-CQL mismatch
Uninvoiced Receipts An invalid character none none 12.0
Report - CSTACREP err was found in text .2
no output content
AP AND PO ACCRUAL none Run and upload the Patch 12.0
RECONCILIATION following in Excel file 7528609 .5
REPORT DOESN'T format with headings:
SHOW NET
DISTRIBUTIONS select * from
xla_distribution_links xdl
where
xdl.source_distribution_t
ype
='RCV_RECEIVING_SUB_
LEDGER'
AND xdl.application_id
=707
AND
xdl.source_distribution_id
_num_1 IS NULL;

Component: SLA
NO ACCTG EVENTS none none Patch 12.0
CREATED FOR INT 6792259 .4
REQ DIRECT ORG
XFER AT RECEIV

In Oracle Cost
Management,Accounti
ng events in SLA may
not be created for
internal requisition
direct interorg transfer
at the receiving
organization if both
the sending and
receiving organization
are standard costing
organization.
Some SLA data for none Run and upload the Patch 12.0
MTL_TRANSACTION_A following in Excel file 6922624 .4
CCOUNT are created format with headings:
by 12.0.4 upgrade
Patch Select
a.TRANSACTION_SOURC
During upgrade of the E_TYPE_ID,
MTA the transaction count(a.TRANSACTION_I
user defined D)
transaction types for from
action 1 and 27 are mtl_transaction_accounts
not considered for a
upgrade. where not exists (
The internal req select 'X'
receipt in case of from
Actual costing xla.XLA_TRANSACTION_
organization is also ENTITIES b
not being considered. where
The internal req a.TRANSACTION_ID =
receipt in case of b.source_id_int_1)
Standard costing group by
organization is a.TRANSACTION_SOURC
also not being E_TYPE_ID ;
considered.
PLEASE EXTRACT THE none none Patch 12.0
SLA OBJECTS 7033488 .4
Receipt Accruals -
Period-End process
errored out with "SLA
errors" when
processing both 11i
Upgraded and R12
POs at the same time.

COSTING EVENT
CLASS SEED CHANGES
FOR PERIOD END
ACCRUAL
PERIOD CLOSE: none To find the list of Patch 12.0
ENCOUNTERED accounting event 6916164 .4
UNPROCESSED WIP corresponding to MMT
VARIANCE/JOB CLOSE and WT transactions with
VAR EVENTS distributions, run and
Some WIP and INV upload the following in
accounting events are Excel file format with
not accountable headings:
because the
distributions are not SELECT a.event_id
created. ,b.event_type_code
There are SLA events FROM xla_events a,
created even if those xla_event_types_b b,
transactions are not xla_transaction_entities_
suppose to be upg c
accounted since they WHERE a.event_date <=
don't have TO_DATE('&problem_per
distributions iod','DD-MM-YYYY')
AND a.application_id =
707 AND
a.event_status_code =
'U'
AND
a.process_status_code =
'U' AND b.application_id
= 707
AND b.entity_code IN
('MTL_ACCOUNTING_EV
ENTS','WIP_ACCOUNTIN
G_EVENTS')
AND b.event_type_code
= a.event_type_code
AND c.application_id =
707
AND c.entity_id =
a.entity_id
AND ( ( b.entity_code =
'MTL_ACCOUNTING_EVE
NTS'
AND NOT EXISTS
(SELECT NULL
FROM
mtl_transaction_accounts

WHERE transaction_id =
c.source_id_int_1))
OR ( b.entity_code =
'WIP_ACCOUNTING_EVE
NTS'
AND NOT EXISTS
(SELECT NULL
FROM
wip_transaction_account
s
WHERE transaction_id =
c.source_id_int_1)));
R12 SLA Subledger none Run and upload the Patch 12.0
Period Close Exception following in Excel file 7505874 .4
format with headings:
Report is showing
transactions as Select
Unprocessed. sum(mmt.quantity_adjus
Standard cost update ted*mmt.transaction_cos
is not accounting for t),
intransit items but the mmt.intransit_account,
accounting events are mp.organization_code,
created. ccu.inv_adjustment_acco
unt
from
mtl_material_transaction
s mmt, mtl_parameters
mp,
cst_cost_updates ccu
where
mmt.organization_id =
mp.organization_id
and
mmt.transaction_action_i
d = 24 and
mmt.intransit_account is
not null
and mmt.costed_flag is
null and
mmt.quantity_adjusted >
0
and
mmt.transaction_cost <>
0
and
mmt.transaction_date
between &&from_date
and &&to_date
and
(nvl(mmt.new_cost,0) -
nvl(mmt.prior_cost,0))
<> 0
and
ccu.cost_update_id(+) =
mmt.cost_update_id
and not exists (select null
from
mtl_transaction_accounts
mta where
mta.transaction_id =
mmt.transaction_id)
group by
mmt.intransit_account,
mp.organization_code,
ccu.inv_adjustment_acco
unt order by
organization_code
CREATE ACCOUNTING Error number= Run and upload the none 12.0
ERR 95318 CODE 95318 following in Excel file .4
COMBINATION ID The account code format with headings:
SPECIFIED FOR LINE combination id 102
DOESN'T EXIST specified for line 1 Select distinct
does not exist. transaction_id
from
mtl_transaction_accounts

where
reference_account=&prio
r_wrong_account_id;
COGS RECOGNITION none Run and upload the Apply Patch 12.0
EVENT is unprocessed following in Excel file 7690716 .4
for some SALES format with headings:
ORDER ISSUE lines
1.SELECT * FROM
XLA_EVENTS
WHERE
EVENT_STATUS_CODE=
'P'
and application_id =
707;

2.select * from
CST_REVENUE_RECOGNI
TION_LINES where
revenue_om_line_id
=&line_id

3. select * from
cst_cogs_events where
cogs_om_line_id
=&line_id;

4. select * from
cst_revenue_cogs_match
_lines where
cogs_om_line_id
=&line_id;

Component:
Inventory
JOURNAL IMPORT EU02 The following script is Apply Patch 11.5
ERROR EU02 SOURCE executed for a particular 4998992 .10.
INVENTORY batch_id will spool 2
the data of
Data was missing in Inventory/WIP
GL Interface table. subledgers GL Interface
GL journals required
Inserted data in for reconciliation of data
gl_interface table between Sub-ledgers and
GL

Input required :
GL_BATCH_ID

GL_Batch_info.sql
ERROR IN THE none The following script none 11.5
PERIOD CLOSING, spools the PAC setup .9
DUE TO INACTIVATED information to
ORGANIZATIONS. a file pac_setup.lst.
Script should be run from
User created sql prompt.
unwanted
organization, pac_setup.sql
unwanted cost group
and keep running PAC
processes for many
PAC periods
COGS CANNOT BE none none Bug 12.0
RECOGNIZED IF SO 7211401 .4
(NON AR) IS CLOSED
ON LAST DAY OF THE
MONTH

Revenue recognition
lines were not created
when a sales order
was closed on the last
day of a month. This
was because the
costing api was
comparing the event
date with time stamp
to the truncated gl
end date.
COGS not recognized
for ship only OM sales
orders on the last day
of the accounting
period when the OM
lines are closed
XLAIQDRL DRILL none none Bug 11.5
DOWN FORM GL TO 4751586 .10.
INVENTORY RETURNS 2
MORE THAN ONE LINE

The
GL_IMPORT_REFEREN
CES had duplicate
lines, which made the
drill down data also
duplicated
RVTPTCONTROL RVTPTCONTROL Run and upload the none 12.0
FAILED RVTII-060: FAILED RVTII-060: following in Excel file .4
SUBROUTINE SUBROUTINE format with headings:
INV_TXN_MANAGER_P INV_TXN_MANAGER Select
UB.PROCESS_TRANSA _PUB.PROCESS_TRA MS.inventory_item_id,
CTIO NSACTIO MS.organization_id
from
Receiving processor is mtl_system_items_b MS
erroring out because where
its trying to retrieve MS.inventory_asset_flag
records from ='Y'
CST_ITEM_COSTS for and
the cost type id 2 MS.costing_enabled_flag
(Average) and it = 'Y'
doesn't exist for this and NOT exists (
items select
cic.inventory_item_id
from cst_item_costs cic,
mtl_parameters mp
where
cic.inventory_item_id =
ms.inventory_item_id
and ms.organization_id =
mp.organization_id
and cic.organization_id =
mp.cost_organization_id
and cic.cost_type_id=
mp.primary_cost_method
);
UNCOSTED error_code = Run and upload the none 11.5
TRANSACTIONS IN CST_NO_TXN_INVAL following in Excel file .10.
MMT 2 OF THEM IN ID_ACCOUNT format with headings: 2
ERROR
The following SQL
error_code = identified the invalid /
CST_NO_TXN_INVALI incorrect data:
D_ACCOUNT select *
error_explanation = from
'CSTPACIN.COST_INV MTL_MATERILA_TRANSA
_TXN:An invalid CTIONS
account is associated where Costed_Flag =
with the item being "E";
transacted

Error due to expense


account not being
defined for the
subinv/item/org.
Define the accounts
and resubmit the
transactions.

Component:
Accrual
Some of the RECEIPTS none Run and upload the Root Cause 12.0
system is creating following in Excel file Bug with .3
double ACCOUNTING format with PSA: Bug
in DELIVERY status headings.Run the 7714739
In the case of PO following script to
delivery to expense identify the problem:
with budgetary control
enabled, Encumbrance SELECT SUM (NVL
reversal happens (accounted_dr, 0) - NVL
against actual instead (accounted_cr, 0)),
of encumbrance accounting_class_code,
causing Double entry code_combination_id
against Actual. FROM xla_ae_lines
WHERE application_id =
707
AND ae_header_id IN (
SELECT ae_header_id
FROM xla_ae_headers
WHERE application_id =
707
AND event_id IN (
SELECT event_id
FROM xla_events
WHERE application_id =
707
AND
budgetary_control_flag =
'Y'
AND
process_status_code =
'P')
AND
gl_transfer_status_code
= 'Y'
AND balance_type_code
= 'A')
GROUP BY
accounting_class_code,
code_combination_id
CREATE ACCOUNTING Error Number = Using this SQL, user will None. 3 12.0
errored out for 95311 be able to identify the bugs logged .4
PERIOD END RRSL created for the for the
ACCRUAL EVENT The COMPANY 'PERIOD_END_ACCRUAL' same issue
segment value for for the
Create Accounting the account code PO_DISTRIBUTION_ID
Receiving program combination is not with the wrong CCID
fails for transaction assigned to the The issue can be
when incorrect ledger. identified using the
account combination following query :
used for the charge
account for Expense Select rrsl.*
POs. Error : The from
Company segment rcv_receiving_sub_ledger
value for the account rrsl,
code combination. rcv_accounting_events
This is due to rae
Incorrect Account Id where
used in RRSL and rrsl.rcv_transaction_id =
hence erroring out 0
when transferred to and
GL. rrsl.accounting_event_id
=
An invalid charge rae.accounting_event_id
account and variance and rae.event_source =
account was stamped 'PERIOD_END_ACCRUAL'
on PO distributions and rae.event_type_id =
that caused the period 14
end accrual events to and
fail in SLA create rae.po_distribution_id =
accounting program. &PO_DIST_ID
and
rrsl.accounting_line_type
= 'Charge';
No RECEIVING none Run and upload the None. 11.5
ACCOUNTING records following in Excel file Similar .10.
on RETURN TO format with headings: Datafix in 2
SUPPLIER transaction Bug
SELECT 6742514
Receiving Txn T1.TRANSACTION_ID,T1
Processor ended with .PO_HEADER_ID
error due to FROM
compilation issue of RCV_TRANSACTIONS T1
Pkg WHERE
RCV_AccEvents_PVT (TRANSACTION_TYPE IN
which was Invalid ('RECEIVE', 'RETURN TO
after applying Patch VENDOR')
4443747 . However, OR
data on the Receiving (TRANSACTION_TYPE=
side (RT) got 'DELIVER' AND
committed. DESTINATION_TYPE_CO
DE='EXPENSE'))
AND EXISTS
(SELECT 'Accrue_Rcpt
and Non-Consigned'
FROM
PO_LINE_LOCATIONS_A
LL poll, po_headers_all
poh
WHERE
poll.po_header_id =
poh.po_header_id
AND
poll.ACCRUE_ON_RECEIP
T_FLAG='Y'
AND
POLL.LINE_LOCATION_I
D
=T1.PO_LINE_LOCATIO
N_ID and
NVL(poh.consigned_cons
umption_flag, 'N') = 'N')
AND NVL(COMMENTS,'!')
NOT IN ('OPM
RECEIPT','OPM Receipt
Correction')
AND NOT EXISTS
(SELECT 1
FROM
RCV_RECEIVING_SUB_L
EDGER T2
WHERE
T2.RCV_TRANSACTION_I
D=T1.TRANSACTION_ID
);
Accounts Payable and none Please 12.0
PO Reconciliation apply Patch .5
Summary report 8367493:R1
mismatch 2.BOM.A
Also
Incomplete Receiving
Data Migration to SLA

Receiving data (Pre-


Upgrade) did not get
migrated to XLA and
hence is missing in
XLA. Because of this,
unable to reconcile
accruals as the AP and
PO Reconciliation
Summary Report
shows large number of
invoices matched to
PO's as open AP
Balances. In other
words, all records in
the accrual
reconciliation table
(cst_reconciliation_su
mmary) have a zero
value for the
po_balance column.

You might also like