When attempting to post transactions into WIP, the following error is generated: Error 'REVMGR-20669:Error inserting matching records. Because of the Post to WIP failure, transactions do not get posted.
Steps to Reproduce:
Expected Result: The transactions should be posted without this error message.
Actual Result: Post To WIP fails with Error 'REVMGR-20669:Error inserting matching records'.
Release: All Supported Releases
This issue can be caused by orphaned records in the PPA_WIP or PPA_WIP_VALUES tables or an incorrect ratio of records. This can happen in a Microsoft SQL Server environment if the 'Post Transactions to Financials' job is interrupted due to Database problems such as out of space, transaction logs filling up or the job itself is interrupted. The job creates the header record and may be interrupted during the time that it needs to create the 5 matching records.
This can also happen when xogging in records and can also affect PPA_TRANSCONTROL and PPA_TRANSCONTROL_VALUES.
The error may also be returned if the ppa_transconrol transno is already in WIP. Somehow the sequences got off between these 2 tables.
from ppa_wip wip
where wip.transno not in (select transno from ppa_wip_values)
Incorrect Ratio of Records: Here is a query that shows there might be records in the PPA_WIP_VALUES table, but not all 5 records in the table.
For the application to function properly, there must be a 1:5 ratio between PPA_WIP and PPA_WIP_VALUES tables. No results indicate no problem.
select w.transno, count(*)
from ppa_wip w, ppa_wip_values v
where w.transno = v.transno
group by w.transno
having count(*) <> 5
Orphan PPA_WIP_VALUES records: The following query will show any records that are in the PPA_WIP_VALUES table, but no matching header record in the PPA_WIP_VALUES table. No results indicate no problem.
from ppa_wip_values wipval
where wipval.transno not in (select transno from ppa_wip)
from ppa_transcontrol wip
where wip.transno not in (select transno from ppa_transcontrol_values)
If the issue arises again, review the data and check for the 1:5 record ratio to determine if there is a data corruption issue.
If the above sequences and values all match check for the transno issue.
select * from ppa_wip where externaltransno in
(select transno from ppa_transcontrol)
If this returns values then the sequence on ppa_transcontrol will need to be updated
Contact Broadcom Support for assistance in resolving the data corruption issue.
For more details on WIP (Work-in-Progress) see Manage Work-in-Progress Transactions