SAP Knowledge Base Article - Public

3210178 - Error Message When Trying To Upload Attachment Using OData From Local Folder


The following error message appears when trying to upload a .pdf file using Odata service in Postman from customer local folder.

"Property 'DocumentLink' at offset '248' is invalid"


SAP Cloud for Customer

Reproducing the Issue

1. Open postman.
2. Generate the x-csrf-token.
3. Use the "ServiceRequestAttachmentFolder" URL to POST
Ex.: https://my*****
4. Payload as example:

"ParentObjectID": "*********",
"ServiceRequestID": "3492",
"TypeCode": "10001",
"MimeType": "standard/attachment",
"Name": "Test SAP ticket .pdf",
"CategoryCode": "2",
"DocumentLink": "C:\Users\myuser\TEST\C4sTicketAPI.pdf"


This is a syntax issue.
The issue is related with the backslash "\" on DocumentLink.


To solve the issue, you should use the slash "/" rather than backslash "\".
Example: "C:/Users/myuser/TEST/C4sTicketAPI.pdf"


OData, DocumentLink, Error, Invalid, Property, POST, Postman, Upload, File, Local, Folder , KBA , LOD-CRM-INT-API , OData API (C4C Only) , How To


SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications 2202