Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

DocAttach - Missing Attachment_ID issue - Dynamics GP 2016

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: DocAttach - Missing Attachment_ID issue - Dynamics GP 2016

    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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: DocAttach - Missing Attachment_ID issue - Dynamics GP 2016

    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...

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans