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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

coattachMSTR error GP 2013 R2

(0) ShareShare
ReportReport
Posted on by 50

Our client is receiving the error A save operation on table 'coattachMSTR' has created a duplicate key'.  They are using GP 2013 R2. I see a lot of info. about GP 2015 but not a lot about GP 2013 R2. Please let me know, thanks...

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Shannon Aune Profile Picture
    Microsoft Employee on at

    Hi Sean,

    The two main causes we've seen for this error message, are as follows:

    1. The ODBC System DSN that Dynamics GP 2013 is using, is not setup as per the settings in KB 870416, with a 'Server' or 'Server\Instance' name value for the SQL Server name. What happens is that in the CO00101 table, the Attachment_ID column, which is the primary key for the table, will be blank, and because of this, any subsequent attachments will throw the violation key error because two records will have the primary key column, Attachment_ID, as blank.

    2. We've also seen this issue occur if the file or document that you're attempting to attach is currently open, because it cannot be attached with the document open, due to processes that are being run in the background.

    Other possible causes are:

    * Unsupported environment using multiple Dex.ini files.

    * Dynamics.exe.config file renamed as a result of attempting to resolve another issue

    I hope this information helps.

    Thanks,

  • Verified answer
    Sean Casey Profile Picture
    50 on at

    Hey Shannon!

    I checked all of the above and still got the error. I ran repair on her GP program and it corrected the issue. Thanks for the troubleshooting steps!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Shravan Attelli Profile Picture

Shravan Attelli 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans