Encountering Error During Create Account Operation in Oracle HCM

Unable to get a Create Account to process to endpoint with variables or hardcoded. Getting the error "Exception occurred while performing ‘Create’ operation on identity ‘null’ ".
We’re trying to connect to an Oracle HCM server to create ‘workers’ using /hcmRestApi/resources/11.13.18.05/workers with a body of:

{
    "PersonNumber": "$plan.personNumber$",
    "names": [
        {
            "LastName": "$plan.familyName$",
            "FirstName": "$plan.givenName$",
            "LegislationCode": "US"
        }
    ],
    "emails": [
        {
            "EmailType": "W1",
            "EmailAddress": "$plan.email$",
            "PrimaryFlag": true
        }
    ],
    "workRelationships": [
        {
            "LegalEmployerName": "LE",
            "WorkerType": "E",
            "assignments": [
                {
                    "BusinessUnitName": "BU",
                    "ActionCode": "HIRE"
                }
            ]
        }
    ]
}

The Create Account page is set up with those variables mapped to Identity Attributes:

  • personNumber → Username
  • givenName → Given Name
  • familyName → Family Name
  • email → Work Email

We are requesting an entitlement via Request Center to trigger.

Any help/advice would be appreciated.

Hello Aaron, I have the same problem but with the Salesloft environment, like you, when I make the call to create an account I get the exception. On the other hand, from postman the call is made correctly, have you been able to solve the error? cheers

We were able to get it working, though it was quite a bit of tinkering. Ultimately, it came down to not having the variable $plan.personNumber$ tied to an Account Attribute on the schema.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.