function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ViplavViplav 

external object error - The external object record for external data source "external_object" can't be created. Verify the primary key values

Hi Everyone,

Couple of users are getting the below mentioned error when they are trying to search for an account in the system. 

''The external object record for external data source "external_object" can't be created. Verify the primary key values.''

When the account is searched in the system, it tries to fetch the related records from an external object as well.
The external object records are having a lookup to the account and the external object records can be opened without any issues.
But, when user is trying to reference the account by clicking on the lookup field he is getting this error.
Admin and other users are not facing any such issues.

Any pointers to resolve this error would be of great help.
ANUTEJANUTEJ (Salesforce Developers) 
Hi Viplav,

Have you checked if anyother user with other profiles is getting this issue or is the issue occuring only with the users with one particular profile.

Try checking if the users with the affected profile has all the necessary permissions for them to have access and in case if the issue started occuring recently can you try seeing if there are any changes that might be causing the issue.

In case if this was helpful for your issue can you please choose this as the best answer so that it can be used by others in the future.

Regards,
Anutej
ViplavViplav
Hi Anutej,

Thanks for such a quick response !!
I have already verified that this issue is not happening for other users who are having same profile.
These Users are also having all the necessary permissions to access account but only for this particular account these
wo users are getting an error.
I have also verified that there aren't any changes done in the system recently. 

There is something wrong with the external objects records but we are not able to figure out the root cause.

Thanks,
Viplav