web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

'Reconcile to GL' duplicate error when running for Receivables Management Tables

(0) ShareShare
ReportReport
Posted on by 215

Hi All,

 

I am currently running into an issue with a client's GP environment wherein they are running the 'Reeconcile to GL' routine for receivables management and they are receiving the following error message:

 

"Violation of Primary Key Constraint 'PK##2152147' Cannot Insert Duplicate Key in Object dbo.##2152147"

 

The object value changes, as it represents a TEMP table. I was able to minimize the daterange such that it only occurs within a two week window. I have run checklinks, as well as the RM and GL duplications scripts, and nothing was found/resolved. I checked if there were corrupt or missing data in the RM and GL OPEN and HISTORY tables, and there was none.

 

I have done some research and determined that this was supposedley a known issue in GP10, although it was to be resolved with a service pack. The client is currently on the lastest release of GP2010. After reviewing other threads in this forum, it appears as though there was a script from Microsoft to resolve this issue, however all record of it has been wiped completely. The error renders the proceeding excel report useless.

 

I am completely lost as to what my next step may be. Does anyone have a suggestion I may be able to follow to resolve this issue, or at least a working location of the infamous script?

 

I would greately appreciate any help. Thank you very much.

 

 

*This post is locked for comments

I have the same question (0)
  • Richard Whaley Profile Picture
    25,195 on at

    Try doing a SQK reindex of the Receivables Tables.  I understand this is a temp table but it is built from the receivables tables.

  • Richard Whaley Profile Picture
    25,195 on at

    Sorry, that should have read "SQL reindex"

  • L Vail Profile Picture
    65,271 on at

    The RM00401 table is the RM Key File. If you truncate that table (Clear Data), and then run Check Links on the RM transaction tables, it will repopulate the RM00401 table.

    The SQL process is a bit different. In SQL you are rebuilding the actual index. For the Primary Key of the RM20201 table, it would look like this:

    ALTER INDEX [PKRM20201] ON [dbo].[RM20201]

    REBUILD PARTITION = ALL WITH (

    PAD_INDEX  = OFF,

    STATISTICS_NORECOMPUTE  = OFF,

    ALLOW_ROW_LOCKS  = ON,

    ALLOW_PAGE_LOCKS  = ON,

    ONLINE = OFF,

    SORT_IN_TEMPDB = OFF )

    I don't recall the issue you spoke of, so this might be no help at all, but you never know.

    Question, you have narrowed down a timeframe, have you narrowed down which customer?

    Kind regards,

    Leslie

  • Brandon Germaine Profile Picture
    215 on at

    Thank you for the responses.

    I cleared the RM00401 table and ran checklinks on all Sales tables which re-created all the correct records in the RM Key Table. Running the 'Reconcile to GL' routine continued to produce the same error as before.

    The KB article that I was refering to (that included a script to resolve the issue) was KB article (952380), however it appears to have been taken down and does not exist.

    I am currently attempting to track down which customer documents are causing the error, however I am having trouble determining which customer it is through the SQL log and table. I will continue to review and send an update once I have one.

    Thank you both so much for your help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans