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)

DocAttach - Missing Attachment_ID issue - Dynamics GP 2016

(0) ShareShare
ReportReport
Posted on by

Using Dynamics GP 2016 16.00.0439, this is my test company where I'm working on doc attach reporting.  

I ran into an issue where I was getting "A Save Operation on table 'coAttachMSTR' has created a duplicate key error" 

I found that similar issue where attachment_id was missing on 2013/2015 r2 was causing this problem but nothing for 2016.   I pulled up my CO tables and found that yes, one document has a missing attachment_id.   I have no idea how it got there, I check the paths, all under the 58 character issue that was associated with other docattach issue.

So now, how do I fix this.   Being that this is a test, I have remove all entry to a particular attachment before through sql.   But if this happens in production, where I need the data, that is probably not an option.

Can I generate my own attachment_id and fill in all missing attachment_id ?  how is the attachment_id calculated for each document?  

I did find the file name is invoice5.pdf, so is the attachement_id is calcuated off that name or combination of that name ?   Ill try a few other things and report back

  attachmentid.jpg

attachmentid2.jpg

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Looks like my issue got worse... I remove the entries for invoice5.pdf in all the tables..  but I'm still not able to attach files.   or when I attach one file, it creates  the entries in the CO tables but with a blank attachment_id...

  • Community Member Profile Picture
    on at

    I ran this against the profiler, and looks like the GP 2016 has the same no Attachment_ID issue as the 2015..   Anyone seen this before ?  how do I get a hot fix made if one is not available

    mahmoudsaadi.blogspot.com/.../document-attachment-error-with-gp-2015.html

    dynamics.jpg

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans