Symptom
Customer is experiencing an error when creating a new candidate via OData API due to the attached file sent to Resume or Cover Letter.
Here is a sample error: [COE0019]Unexpected error occurred: Upserted failed: The file type of ****.doc is not in the supported list [DOC] with the index 0
Environment
SAP SuccessFactors Recruiting Management
Reproducing the Issue
Cause
The reason that this is happening is that the File Content that is on the Payload is using a file extension name that is not supported in SuccessFactors.
Resolution
Here are the list of supported File Extension name: 2271789 - Attachments type supported - Recruiting Management
OBS: If you are using a supported .DOC / . DOCX file, and are still getting the error, this might be caused by a bad conversion from an original file format to a .DOC / .DOX extension, which created a file with an invalid base64
To double check if the File Content extension is supported, use this 3rd party tool which decodes the coded File Content: https://base64.guru/converter/decode/file
- Select Converter > Base64 Encode
- Change Datatype to local file
- Upload the file
- Encode it
- Copy the generated code
- Navigate to Converter > Base64 Decode
- Copy the code on the Base64 box and decode
- This will give you the information if the file is valid or not
If you already have the code and are not using a file, start from step 6.
See Also
Keywords
Postman, base64, File Content, decode, Postman , KBA , LOD-SF-RCM-API , Webservices & APIs , How To