Symptom
SuccessFactors OData V2 Upsert operation fails due to encoded key property in the request payload as shown below.
Note that the '@' is encoded in the <id> and <link> tags of the request payload generated from SuccessFactors OData V2 adapter.
<feed xmlns=http://www.w3.org/2005/Atom xmlns:m=http://schemas.microsoft.com/ado/2007/08/dataservices/metadata xmlns:d=http://schemas.microsoft.com/ado/2007/08/dataservices xml:base=http://localhost:49675/odata/v2/>
<id>http://localhost:49675/odata/v2/User</id>
<title type="text">User</title>
<updated>2022-02-02T10:59:58.063+05:30</updated>
<author>
<name/>
</author>
<link href="User" rel="self" title="User"/>
<entry>
<id>http://localhost:49675/odata/v2/User('tony%40marvel.com')</id>
<title type="text">User</title>
<updated>2022-02-02T10:59:58.092+05:30</updated>
<category term="SFOData.User" scheme=http://schemas.microsoft.com/ado/2007/08/dataservices/scheme/>
<link href="User('tony%40marvel.com')" rel="edit" title="User"/>
<content type="application/xml">
<m:properties>
<d:status>active</d:status>
<d:userId>tony@marvel.com</d:userId>
<d:username>tony@marvel.com</d:username>
</m:properties>
</content>
</entry>
</feed>
Error: INVALID_USER_ID : Failed to add/update user [tony%40marvel.com] (N/A;N/A;N/A): Invalid User Id - "tony%40marvel.com". with the index 0
Read more...
Environment
SAP Integration Suite, SAP Cloud Integration
Product
Keywords
KBA , LOD-HCI-PI-CON-OD , OData Adapters , 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.
SAP Knowledge Base Article - Preview