My Oracle Support Banner

How Can the Error CSTPACIN.COST_INV_TXN:Failure in procedure CST_RevenueCogsMatch_PVT.Process_RmaReceipt() Be Resolved? (Doc ID 733275.1)

Last updated on JUNE 21, 2023

Applies to:

Oracle Inventory Management - Version 12.0.0 and later
Oracle Cost Management - Version 12.0.0 and later
Information in this document applies to any platform.


This document provides the detailed instructions for fixing transactions that exist in the Material Transactions (MTL_MATERIAL_TRANSACTIONS.MMT) with the 'ERROR
CSTPACIN.COST_INV_TXN:Failure in procedure CST_RevenueCogsMatch_PVT.Process_RmaReceipt()' error. This issue can also occur when Closing an Inventory Accounting Period. The issue can be reproduced with the following steps:

1. Create and ship a sales order
2. Create an RMA for the above sales order
3. Go to the Receiving screen to receive the RMA
4. Change the date on the receipt to be prior to the shipment date of the original sales order
5. Complete the receipt and save
6. Let the cost manager run

This document will also show all the available information regarding the Root Cause of this data corruption.

Please use this document in the following order:
A. Identification Scripts: This will confirm if you are having this data corrution.
B. Verifying your file versions: This will allow you and Support to confirm if you are already using a known fixed version.
C. Root Cause Analysis. It shows all the relevant information about this issue Root Cause.
D. Datafix Intructions. It will provide steps for fixing the data corruption.


To view full details, sign in with your My Oracle Support account.

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

In this Document
 A - Identification Scripts.
 B - Verifying your File Versions.
 C -  Root Cause Analysis.
 RMA Transaction Date
 D - Datafix.
 1. Backup data.
 2- Run the datafix script
 3- Check the data.

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.