Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/28/2022 09:31 AM
Hi Team,
I've been trying to onboard the Salesforce for a while now. Everything is working properly except for the Accounts import. I'm able to import the account details, custom properties, and even the entitlements associated. However, the accounts are imported and left as orphan accounts despite setting up a User account correlation rule. Not sure what I'm missing.
Here are some useful details about the connection and the endpoint configurations.
OBJECT_TO_BE_IMPORTED | Account,Contact,Profile, Group, PermissionSet,Role,PermissionSetGroup,PermissionSetLicense |
ACCOUNT_FIELD_QUERY | Id,Username,LastName,FirstName,Name,Email,IsActive,UserType,ManagerId,CreatedDate,ContactId,AccountId,ProfileId |
FIELD_MAPPING_JSON | { |
User Account Correlation Rule | users.email equals accounts.customproperty4 |
Solved! Go to Solution.
09/28/2022 09:49 AM
09/28/2022 09:51 AM
Yes,
09/28/2022 10:00 AM
Does any sample account & user have CP4 & email respectively ?
Does email address in users is unique ?
09/28/2022 10:04 AM
Hi Rushikesh,
Yes, all users have unique emails and CP4 is imported when the account is imported.
09/28/2022 10:15 AM
Please check or send the logs from the import process to understand why the co-relation is failing.
09/28/2022 10:40 AM
These are the only logs related to the accounts import job for salesforce
09/28/2022 10:18 AM
select name, (select username from users u where u.email=a.customproperty4)correlation from accounts a where a.endpointkey=123 and a.name ='tbatty@stage-isc.com'
Run above query in data analyzer & check
09/28/2022 10:25 AM
the query is returning the correct user.
trying to retrieve logs at the moment
10/17/2022 03:13 PM
The issue has been resolved.
The connector guide mentioned that there is a default field mapping while also giving the user the opportunity to create a custom field mapping using the Field_Mapping_JSON.
The issue here was if the Field_Mapping_JSON was populated (as I have done in this case), the import job will run both the custom field mapping AND the default field mapping. This results in the job running into a duplicate entry error and crash. (This is definitely a bug that Saviynt should look into and fix)
To resolve this, since My custom field mapping is the same as the default, I had to clear out the Field_Mapping_JSON. This resulted in the import job using the default field mapping and then properly correlate the accounts to the users.