You are on page 1of 3

Symptoms

Cause
Solution

Applies to:

Oracle Cost Management - Version 11.5.10.2 to 12.1.2 [Release 11.5 to 12.1]


Information in this document applies to any platform.

Symptoms

Material Transactions are not getting accounted after a particular transaction which is
stuck with
the following error

ERROR
----------

CST_NO_TXN_INVALID_ACCOUNT

CSTPLCIN.COST_INV_TXN:An invalid account is associated with the item being


transacted.

CSTPAVCP.COST_ACCT_EVENTS

Cause

The cause of the issue is invalid / missing DISTRIBUTION_ACCOUNT_ID or


ENCUMBRANCE_ACCOUNT in table mtl_material_transactions.
The data should have DISTRIBUTION_ACCOUNT_ID / ENCUMBRANCE_ACCOUNT

Bug 5709941: <invalid account is associated with the item being transacted>

The issue is due to Account alias /Misc transactions are created with user
entered/setup account

Solution

Check the following update script , please execute it on TEST INSTANCE first
after taking appropriate back up.

For the failing transaction id


Please follow this action plan.

1. Cancel the Cost Manager:


System Administrator -- Requests -- View -- Go To Specific Request and in the
Name give Cost Manager. From here cancel the Cost Manager that is Pending
Scheduled.

2. Create a back up table of MMT


Create table MMT24APR as select * from mtl_material_transactions where
costed_flag in('E' ,'N')

3. The following sql may help in finding the account_id:

select CONCATENATED_SEGMENTS, code_combination_id


from gl_code_combinations_kfv
where CONCATENATED_SEGMENTS = '&user_account'

also use the following note


Note 400088.1 How To Determine The DISTRIBUTION_ACCOUNT_ID For
Inventory

4. update mtl_material_transactions

set distribution_account_id = &enter_account_id


where ENCUMBRANCE_AMOUNT is not null
and ENCUMBRANCE_ACCOUNT is null
and organization_id = &org_id
and transaction_id = &txn_id

5. Update mtl_material_transactions
Set costed_flag = 'N',
transaction_group_id = null,
error_code = null,
error_explanation = null
where costed_flag in ('N','E');

6.Commit

7. Launch the Cost Manager


Inventory -- Setup -- Transactions -- Interface Managers --- Tools (Menu Bar) -
- Launch Manager --Submit
(No scheduling for the Cost Manager should be done in the Request Form)

Also

1. Find the cost group associated with the erred transaction.


2. Navigate to the cost group form via Inventory > Setup > Costs > Costs Groups >
Query up the Cost Group
for the cost_group_id associated with the erred record.
3. Enter the expense account for the Cost Group and Cost Variance Account and
save.
4. Resubmit the erred transaction for costing.

You might also like