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
Venkateswarlu BVenkateswarlu B 

Getting "INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on object id" when deploying case emailservice classclass into production when running test class.It is passed in all sandboxes but getting error in Production environment?

User-added image
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi venkateswarlu,

may I suggest you Please refer the below link for reference. Hope it will be helpful.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.

Thanks
Rahul Kumar
 
GauravGargGauravGarg
Hi Venkat,

Please check the case permission for the user running test classes and if you are creating new user within Test class. Then create with Admin access or some profile having Case access on it. 

Thanks,
Gaurav