Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Internal_EntityWithSameKeyExists error when uploading attachment to a Purchase Invoice

Posted on by 30

Hi All,

i'm using the attachments endpoint to upload attachments to Purchace Invoices:

api.businesscentral.dynamics.com/.../attachments

But for a specific tenant I'm getting the following error response:

{"error":{"code":"Internal_EntityWithSameKeyExists","message":"The record in table Unlinked Attachment already exists. Identification fields and values: Id='{00000000-0000-0000-0000-000000000000}' CorrelationId: d1a71c10-1249-44c5-a051-4fc6886033d5."}}

I've confirmed that the right values are being passed to the endpoint. The same code works fine for several other tenants as well.

Any ideas will be greatly appreciated!

Thanks!

Kiril

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Internal_EntityWithSameKeyExists error when uploading attachment to a Purchase Invoice

    Thank you for sharing final outcome and no bother at all!

  • Verified answer
    RE: Internal_EntityWithSameKeyExists error when uploading attachment to a Purchase Invoice

    Ok, found the problem, wrong api version was set in the url. Sorry to bother!

  • RE: Internal_EntityWithSameKeyExists error when uploading attachment to a Purchase Invoice

    Thanks, I suppose I should do that.

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Internal_EntityWithSameKeyExists error when uploading attachment to a Purchase Invoice

    Hello,

    Feel free to raise this issue to Microsoft support via your partner or CSP. I do not think we cannot answer this issue without getting view access to the system.

    Thanks.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans