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
*This post is locked for comments
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
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...
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156