Skip to main content

Notifications

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

  • Verified answer
    Sean Casey Profile Picture
    50 on at
    RE: coattachMSTR error GP 2013 R2

    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!

  • Suggested answer
    Shannon Aune Profile Picture
    on at
    RE: coattachMSTR error GP 2013 R2

    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,

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans