SAP Knowledge Base Article - Public

2940547 - How to decode file content extension name - Recruiting Management

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

  1. Select Converter > Base64 Encode
  2. Change Datatype to local file
  3. Upload the file
  4. Encode it
  5. Copy the generated code
  6. Navigate to Converter > Base64 Decode
  7. Copy the code on the Base64 box and decode
  8. 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

Product

SAP SuccessFactors Recruiting all versions