SAP Knowledge Base Article - Public

2298542 - 501 Internal Server Error When you add Attachments to Activity Using Batch ODATA Call


You are trying to add Attachments to Activity using batch ODATA calls, After sending the ODATA,

You are receiving 501 server error.

Reproducing the Issue

For Example the payload is as below,

Content-Type: application/http
Content-Transfer-Encoding: binary

POST ActivityAttachmentFolderCollection HTTP/1.1
Content-Type: application/json
Accept: application/json
Content-ID: 1
Content-Length: 10000

    "ParentObjectID" : "00163e08b8c81ee5bca93c9002632911",
    "CategoryCode" : "2",
    "MimeType" : "text/plain",
    "TypeCode" : "10001",
    "Name" : "ODATA01N2",
    "Binary" : "dGhpcyBpcyBhIHRlc3Q="


As in above example, the ParentObjectID is 00163e08b8c81ee5bca93c9002632911 but this is not the correct way. The ParentObjectID should be 00163E08B8C81EE5BCA93C9002632911.

Which means all the characters should be uppercase.


Maintain the ParentObjectID in uppercase and try the POST function again.


KBA , SRD-CC , Cross Components , How To


SAP Cloud for Customer add-ins all versions