Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Salesforce Account Failure - INVALID_CROSS_REFERENCE_KEY

jiahsun
New Contributor
New Contributor

Hi all! We are trying to provision a Salesforce account from Saviynt, and we are getting the following error message:

Error in user creation errorCode: INVALID_CROSS_REFERENCE_KEYmessage: invalid cross reference id

From the Saviynt debug logs, it did not specify what attribute caused this error. Here is our Salesforce Create Account JSON:

{
"Email":"${user?.getCustomproperty26()}",
"Alias":"${user?.getFirstname()}",
"Username":"${user?.getCustomproperty26().substring(0,user?.getCustomproperty26().indexOf('@')) + '@XXX.com.prd.XXX'}",
"FirstName":"${user?.getFirstname()}",
"LastName":"${user?.getLastname()}",
"IsActive":true,
"FederationIdentifier":"${user?.getUsername()}",
"State":"${if(user?.getCountry()=='United States') {user?.getState()} else {''}}",
"City":"${user?.getCity()}",
"Title":"${user?.getJobDescription()}",
"PostalCode":"${user?.getCustomproperty3()}",
"Phone":"${user?.getCustomproperty24()}",
"Country": ${user?.country == null ? null : '"' + user.country+ '"'},
"Street":"${user?.getStreet()}",
"MobilePhone":"${user?.getPhonenumber()}",
"TimeZoneSidKey":"America/Los_Angeles",
"LocaleSidKey":"en_US",
"LanguageLocaleKey":"en_US",
"EmailEncodingKey": "ISO-8859-1",
"ProfileId":"${profileId}"
}

Any help would be greatly appreciated! 

Thanks again!

1 REPLY 1

rushikeshvartak
All-Star
All-Star

 

  • Verify Profile ID:

    • Ensure that profileId is correctly set and is a valid Profile ID in Salesforce. You can check this in Salesforce by navigating to Setup > Profiles and confirming the ID.

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.