I'm deploying an apex class and Test class which is running successfully and covering 84% test coverage in sandbox however when deploying it in Prod, I'm running in to below issue. I have included Static Resource in the changeset. Any ideas what is wrong with it? The Static resource consist of a CSV file that includes User data (Name, email, Username , lastlogindate).
istest
public class TestScheduleInactiveUser {
@istest static void ScheduleInactiveUser(){
List<sObject> ls = Test.loadData(User.sObjectType, 'UserLoadTest');
Test.startTest();
ScheduleInactiveUser fc=new ScheduleInactiveUser();
Database.executeBatch(fc);
Test.stopTest();
}
}
Error: System.SObjectException: ORA-20001: ORA-06512: at "DOC.CPROFILE", line 1128 ORA-01403: no data found ORA-06512: at "DOC.CPROFILE", line 2940 ORA-06512: at line 1 SQLException while executing plsql statement: {?=call cProfile.get_user_type(?)}(00eP0000000bIq5)
Stack Trace:
Class.System.Test.loadData: line 53, column 1 Class.TestScheduleInactiveUser.ScheduleInactiveUser: line 5, column 1