1 May 12 11:13
I'm trying to determine HOW to solve the problem - though I've managed to identify what the problem is (down to the trx).
We are receiving the error "Cannot insert duplicate key row in object 'dbo.RM30101' with unique index AK4RM30101'." Followed by: "The stored procedure rmPaidTransactionRemoval returned the following results: DBMS: 2601, Microsoft Dynamics GP: 0."
Based on the index AK4RM30101 (RMDTYPAL, DOCNUMBR) I figured it was a duplicate document number.
SELECT a.rmdtypal, a.docnumbr, b.rmdtypal, b.docnumbr
FROM RM20101 a
INNER JOIN RM30101 b ON (a.rmdtypal = b.rmdtypal) AND (a.docnumbr = b.docnumbr)
Yielded just a single result (the duplicates).
Pulling all the fields for those documents, from their respective tables I found that BOTH are supposed to be valid.
Searching only suggested I modify the document number with a suffix, though event after I did that I was still unable to pull up the document in RM20101 in Cash Receipts Entry because it was "posted".
More searching suggested something to do with RM00401 and DCSTATUS (0: Reserved, 1: Work, 2: Open, 3: History), and it is showing a value of 2.
The customer numbers on these are different as are the method of payments, dates, and values.
How should I go about fixing this error?