SAP Knowledge Base Article - Public

3138240 - Error when updating FODynamicRole via Odata API

Symptom

You wish to update FODynamicRole via OData API and receive an error similar to the following:
"Property dynamicRoleAssignmentId is not upsertable. Please check the property setting in Admin Center > OData API Data Dictionary or the entity metadata"

Since dynamicRoleAssignmentId is a business key, you wish to understand how SAP SuccessFactors knows which record to update if the key is not specified in the request

Environment

SAP SuccessFactors OData API

Resolution

Please note dynamicRoleAssignmentId is not upsertable and gets generated automatically by the API server upon creation. In your payload, please ensure you are adding the externalCode, as follows:

Sample payload:

{
    "__metadata": {
        "uri": "FODynamicRole"
    },
    "externalCode":"FACILITIES",
    "resolverType": "POSITION",
    "payGrade": "GR123",
    "eventReason": "TRANING",
    "name": "testrole",
    "position": "1234567"
}

See Also

SAP SuccessFactors OData Reference Guide

Keywords

dynamicRoleAssignmentId, FODynamicRole, externalCode, OData API, Property dynamicRoleAssignmentId is not upsertable. Please check the property setting in Admin Center > OData API Data Dictionary or the entity metadata , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , How To

Product

SAP SuccessFactors HCM Suite all versions