Technical Support Hours

M-F 8am to 8pm (EST)

Start a conversation

Cannot Insert Duplicate Key in Object

POSTING ANALYTICAL ACCOUNTING TRANSACTIONS IN MICROSOFT DYNAMICS GP

Error message when trying to post Analytical Accounting transactions in Microsoft Dynamics GP: Cannot insert duplicate key in object

This is a known issue when copying a database from live to test.

This Microsoft Dynamics Knowledge Base article (ArticleID: 897280) will walk you through fixing the error.

RESTORING A LIVE COMPANY OVER A TEST COMPANY

Restoring a live company over a test company can lead to an SQL Exception: Violation of PRIMARY KEY constraint PKAAG20000. Cannot insert duplicate key in object dbo.AAG20000. when trying to save records such as sales documents.

There may be mismatched ID numbers in the AAGXXXXX tables in the DYNAMICS database that need to be corrected. Please contact Microsoft or your Dynamics GP partner for specific advice on how to correct this problem.

ENTERING A DEPOSIT

If you receive an error message stating Cannot insert duplicate key in object 'CM20300' when entering a deposit in SalesPad, you will have to enter the deposit in GP.

Once a deposit has been made in GP, there should be no more errors in making the deposits within SalesPad.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. SalesPad Support

  2. Posted
  3. Updated

Comments