SAP Knowledge Base Article - Preview

2831410 - Unable to insert Attachment via ODATA API 'Attachment' Entity with file type docx or doc

Symptom

When creating an attachment via Postman, below error that attachment file is not supported is returned as a response.

Sample Request Payload

{
"__metadata": {
"uri": "Attachment"
},
"userId": "cgrant",
"fileName": "f1.docx",
"description": "des1",
"fileContent": "ZHV6aWVsZQ==",
"viewable": true,
"deletable": false,
"moduleCategory": "PERFORMANCE_ASSESSMENTS",
"module": "PERFORMANCE_MANAGER"

}

Sample Response Body

<?xml version="1.0" encoding="utf-8"?>

<error xmlns=" http://schemas.microsoft.com/ado/2007/08/dataservices/metadata "> <code>COE_GENERAL_SERVER_FAILURE</code>

<message lang="en-US">[COE0019]The file type of testJC1.docx is not supported for attachments</message></error>


Read more...

Environment

SAP SuccessFactors Recruiting Management

Product

SAP SuccessFactors HCM Core all versions

Keywords

SFOdata.Attachment, MS Word Odata Attachment, fileContent, base64, [COE0019]The file type of **.docx is not supported for attachments, odata api , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.