Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

A save operation on table "PM_Transaction_Open' has created a duplicate key

(0) ShareShare
ReportReport
Posted on by 702

We are using ver 9.0.  A single invoice in a payables batch was posted .  The 
batch did not appear to post and said go to batch recovery.  In batch 
recovery the status showed as Posting Interrupted and said "A save operation 
on table "PM_Transaction_Open' has created a duplicate key ".  Running batch 
recovery did not work.  Check links was then run and then when batch recovery 
was run a Payables Transaction Posting Journal was automatically printed.   
The posting journal says "This transaction already has been posted. This 
transaction contains errors. It won't be posted "  The transaction appears to 
be correct and the proper entries have been posted to the GL and the AP 
Vendor. 

The batch could not be deleted or posted.  Eventually we tried to edit the 
batch by changing the invoice # and the amount of the transaction to 0.  When 
this was done the batch could then be posted. 

Now however when you do an inquiry on the vendor it  gives an error "The stored procedure 
createSQLTmpTable returned the following results: DBMS: 2627, Great Plains 0. 

Any suggestions as to what should be done next ?? 

*This post is locked for comments

  • Verified answer
    Vinutha Holla Profile Picture
    Vinutha Holla 705 on at
    Re: A save operation on table "PM_Transaction_Open' has created a duplicate key

    Hi Suresh,

    Please note that Microsoft does not support GP 9.0 anymore.

    With regard to the error that you are receiving ,this error is caused by a duplicate transaction existing in more than one table (WORK, OPEN & HISTORY) and is usually caused by a posting interruption.

    The situation is discussed in the following blog articles.

    blogs.msdn.com/.../identifying-duplicate-transactions.aspx

    blogs.msdn.com/.../the-stored-procedure-createsqltmptable-returned-the-following-results-dbms-12-exceptions.aspx

    After creating a backup of the company data, use the script from the first blog article to identify the duplicate transactions and check what the correct state for the transaction is... unposted (WORK), posted (OPEN), Fully applied (HISTORY) and then you can use SQL to directly remove the duplicate records.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans