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
SFDC12SFDC12 

error while deploying

Hi experts when am trying to deploy the trigger am hitting below error ,please help  me to resolve .thanks in Advance.
First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception (Guest users cannot be record owners. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception (Guest users cannot be record owners
Sai PraveenSai Praveen (Salesforce Developers) 
Hi ,

This seems to be some record in the test class is being owned by guest user. Can you please check the below article which shows the explanation  to this error.

https://www.forcetrails.com/2020/07/guest-users-cannot-be-record-owners.html

If this solution helps, Please mark it as best answer.

Thanks,