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
DritterDritter 

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 * * ? *';​​
Best Answer chosen by Dritter
BalajiRanganathanBalajiRanganathan
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.