You need to sign in to do that
Don't have an account?
Dritter
Compile Error: Invalid type: KapScheduledUserCleanUpBatch at line 6 column 49
I trying to write a scheduler to clean up our portal users accounts. I'm getting a Complie Error in line 6 (below are the first 8 lines), and I'm not sure why. Anyone have any suggestions? Thanks!
public with sharing class KapUserCleanUpScheduler {
public static Boolean runTestMethod = FALSE;
public static void scheduleUserCleanUpJobs() {
KapScheduledUserCleanUpBatch ucub = new KapScheduledUserCleanUpBatch(); - Line 6
String cron_sched_01 = '00 00 1 * * ? *';
String cron_sched_02 = '00 03 2 * * ? *';
public with sharing class KapUserCleanUpScheduler {
public static Boolean runTestMethod = FALSE;
public static void scheduleUserCleanUpJobs() {
KapScheduledUserCleanUpBatch ucub = new KapScheduledUserCleanUpBatch(); - Line 6
String cron_sched_01 = '00 00 1 * * ? *';
String cron_sched_02 = '00 03 2 * * ? *';
Best Answer chosen by Dritter
BalajiRanganathan
do you have this class in your org KapScheduledUserCleanUpBatch? if it is then is it top level class or inner class? if it is inner class use with full name like <outerclass>.<innerclass>. also check if the class is public. mostly you dont have this class or mispelled it.