FavoriteVenkateswarlu B asked in #ApexSep 20, 2017, 10:15 AMGetting "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?2 answersSortSort by Most HelpfulSort by Most HelpfulSort by DateGaurav GARG (Panasonic Asia Pacific Ltd.)Sep 20, 2017, 11:12 AMHi 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,GauravLoadingWrite an answer...BoldItalicUnderlineStrikethroughBulleted ListNumbered ListAdd linkCode blockInsert imageAttach filesLink URLCancelSave0/9000Reply
Gaurav GARG (Panasonic Asia Pacific Ltd.)Sep 20, 2017, 11:12 AMHi 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