SAP Knowledge Base Article - Public

2334659 - SuccessFactors : SFOData.Attachment upsert fails with error "Unexpected error occurred: Upserted failed: Failed upload attachment with the index 0"

Symptom

Upsert call for the Attachment field of an API entity fails with the following error:

Unexpected error occurred: Upserted failed: Failed upload attachment with the index 0

Environment

SuccessFactors BizX

Reproducing the Issue

1. For example, try the upsert call on the Candidate entity with an attachment

2. The response would look like:

<?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">Unexpected error occurred: Upserted failed: Failed upload attachment with the index 0</message>

</error>

Cause

The Attachment User Limit is set to a low value as seen in the screenshot below:

1.png

 

This is from Provisioning > Company Settings.

Resolution

Set the 

2.png

Keywords

KBA , LOD-SF-INT-API , API & Adhoc API Framework , Problem

Product

SAP SuccessFactors HCM Core 1608 ; SuccessFactors HCM Core 1505 ; SuccessFactors HCM Core 1508