Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [scheduled-job]

The tag has no usage guidance.

0
votes
2answers
36 views

how to schedule a salesforce job every 3 months? [duplicate]

Someone know how to cron a salesforce job every 3 months, on the 1st at 9am? any ideas?
1
vote
2answers
42 views

Delete cron jobs instead of using abort

Currently I'm using the System.abortJob(job.Id); method to abort the execution of already scheduled cron jobs as per the following code: List<CronTrigger> cronjobList = [SELECT Id, ...
0
votes
1answer
30 views

Help with batch/scheduled apex

I'm trying to figure out the best way to transfer Account ownership of certain accounts once a day. I would use declarative tools but can't because the data that would fire the automation is coming ...
0
votes
0answers
24 views

How could I build a new dataset for new events at Event Monitoring Analytics apps?

I need to monitor events which don't have a pre-built dashboard and dataset (DocumentAttachmentDownloads, Logout, PackageInstall, Search, SearchClick), and I would like to know if there is any method ...
0
votes
2answers
46 views

notify user by sending an email to user whose last-login is more than 1 day

Here is my code, please check global class LastLoginEmail implements Schedulable { global void execute(SchedulableContext SC) { List<User> uds =[SELECT Id, LastLoginDate, Email FROM ...
0
votes
1answer
101 views

Why the Manage button in Scheduled Jobs is not visible

I scheduled 2 jobs in Developer Console: System.schedule('Scheduled Process Daily at 09:00 and 21:00', '0 0 9/12 * * ? *', new ScheduledProcess_1()); System.schedule('Scheduled Process Daily at 03:00'...
2
votes
1answer
170 views

Create a scheduled job without specifying End date

Is it possible to create a scheduled job without specifying End date? I know that this is possible, because, in our org someone already set a scheduled job without specifying the End date. When ...
1
vote
1answer
54 views

AsyncApexJob record when I use System.scheduleBatch() method

I have just found a very strange behavior regarding Batch. If I have a Batch and run it using the method Database.executeBatch(), a new record inside AsyncApexJob table is created and I can use ...
3
votes
1answer
134 views

How can I delete/abort all scheduled jobs for a particular apex class?

I need to delete/abort all schedule jobs associated with a particular apex class. There are nearly 1500 scheduled jobs in my org. Any tips on how to approach this?
0
votes
1answer
39 views

Where can I view Apex job details?

There are some scheduled Apex jobs in Setup -> Environments -> Jobs -> Scheduled Jobs that I'd like to reassign to a different user so that I can deactivate the one they are currently assigned to (...
0
votes
1answer
113 views

How to use Apex Schedule Job UI in custom lightning component without customization

We would like to create a lightning component to display the Apex Schedule Job UI(Customized), could anyone please let me know if there is any option to display Apex Schedule Job UI without ...
0
votes
0answers
64 views

Reporting Notification Scheduled Job without any Subscribed Report

I found a Reporting Notification Scheduled job in my Org. While investigating the reports for which it was created, I followed the 'Submitted By'. After logging in as that User, in Reports Tab, using ...
0
votes
1answer
33 views

Apex CronTrigger Throws error while aborting: Job does not exist or is already aborted.

I keep getting this error when I try to abort a scheduled job in my batch job code. Below is my code: Datetime dt = system.now().addMinutes(Integer.valueof(myCustomObject.Time_Interval__c)); ...
0
votes
2answers
240 views

Best Practice to schedule a Batch

I am looking to find a best practice/framework to implement a schedulable batch. I don't know if create an Apex Class that implements Schedulable and Batchable interfaces is the correct way or create ...
2
votes
1answer
300 views

How to get job id or job name from current running scheduled job

Can we get job id or job name from current running job? For example: global class MySchedule implements Schedulable { global void execute(SchedulableContext sc) { Id jobId = sc.getJobId()...
0
votes
1answer
186 views

Too many async jobs enqueued for this apex test context

I have faced following issue while running the test class.I am trying to insert 1000 records in test class ,the object have scheduled process builder.i am facing following error recently. Error: ...
0
votes
1answer
91 views

Issue in scheduling a Managed Package Class

I have a "GeoCoderSchedulable" class in a managed package. I want to schedule the class in my salesforce org by code, not by salesforce Scheduler GUI. I used the below code in Anonymous block to ...
0
votes
1answer
117 views

How to Run Batch Class for Last 3 mondays of every month

I can not find any cron expression that allows me to run batch job for last 3 Mondays of every month. Lets say if current month has 4 weeks then I have to run the batch job for 2nd, 3rd and 4th Week ...
1
vote
2answers
32 views

Looping through all entries using a Primary_key, Validating and Updating the corresponding field Values

Exam is an object. It contains the following fields - exam_name(String), exam_state(picklist), exam_date(date), expiration_date(date) 'exam_name' is an AutoNumber(string) field (starts from 1 and ...
0
votes
1answer
55 views

Not Able to reschedule apex batch class

enter code hereCurrently I have a batch which I'm scheduling after 2-2 minutes but because it has the same job name it doesn't allow to reschedule. Is there any way to reschedule the same batch. ...
0
votes
1answer
36 views

How to deploy an Apex Scheduled Job(configurations)

While I am trying to deploy a Change set, I couldn't find an Apex Scheduled Job(component) that contains a job which was scheduled to run once every week. How to get that scheduled job configuration ...
0
votes
1answer
24 views

Recreating Managed Package Scheduled Jobs

We have scheduled jobs of Managed Package. We are about to inactive the user that owns the scheduled job. For that, we need to recreate the scheduled jobs. The issue is, we cannot see the Manage ...
0
votes
0answers
30 views

Who unscheduled my jobs

I have some scheduled jobs running in production, they stopped and I don't find the cause. I am looking for the reason, but I don't find any trace. Is there any way to know the cause? Maybe someone ...
0
votes
1answer
75 views

What's wrong with my code for SFTP connection?

I have tried the following code, but whenever I try to run it, I get redirected to 404 Not Found error page: var host = "host.name", port = port_number, username = user_name, ...
3
votes
1answer
174 views

How to know record in Queued scheduled action

We had a process builder with scheduled actions. But the logic in it was wrong and records were scheduled with that logic. Today i have updated the logic of process, But some scheduled actions with ...
0
votes
2answers
235 views

Test class for Scheduled Batch class making a callout in the start method

I have two classes - BatchClass and SchedulerClass. Batch class makes an API callout in the start method and return the list of records to insert. This class is scheduled with the help of ...
2
votes
1answer
104 views

Protecting Scheduled Apex in Managed Package

I have a managed package with an install script that generates a scheduled job that runs every hour. Is there anyway to protect my scheduled job from being deleted by a confused admin unless they ...
0
votes
2answers
114 views

APEX Scheduler Queue Confirmation

I wanted to double check on my scheduler to make sure is was compiled correctly. I need it to run every minute, which is not possible, so I have it scheduled for every 15 minutes. Testing is difficult ...
0
votes
1answer
55 views

Is there a way to skip the start and execute methods in an APEX job?

I was searching for a possibility to send a yearly email reminder when the 1st. February in that year comes. The only criteria to fire the email reminder is that so long it is the 1st. February in the ...
1
vote
2answers
389 views

Catching exceptions thrown from scheduled job during test execution

I am curious about how to test a scenario when a scheduled job throws an exception. Imagine this is how the schedulable class looks: global class ExceptionScheduler implements Schedulable { ...
1
vote
1answer
589 views

How Long Does Salesforce Keep Apex Job Logs?

Does Salesforce delete Apex Job history after some interval of time (e.g. 1 week)? Or is it displayed in my org indefinitely?
0
votes
2answers
109 views

How do I update a record on a Scheduled Apex Class?

I'm running into issues with the format of a Scheduled Apex Class. This will be my first time I've done it. The issue is with setting the PhotoUrls and updating the employee. I also don't think my for ...
2
votes
1answer
629 views

How to find the information of the accidentally deleted scheduled job

Our business team has accidentally deleted a scheduled job in Salesforce. And we can't recall what is the detailed information. Is there any way we can find out the related information like which ...
0
votes
1answer
88 views

Schedule Job doesn't work properly

I have a Schedulable class named 'DeletarSemCheckinSchedule' that runs some DML's. i also have another Schedulable class named 'AgendarSchedulesCheckin'. The 'AgendarSchedulesCheckin' should be called ...
0
votes
2answers
319 views

Method does not exist or incorrect signature: void schedule(String, String, PotentialCustomer) from the type System

I get this error when I run the below code: Method does not exist or incorrect signature: void schedule(String, String, PotentialCustomer) from the type System Code: global class ...
5
votes
1answer
447 views

Can't Save Class (batch or future jobs pending or in progress)

I have a problem saving one of my classes into server. The error that I get is: Error: Compile Error: This Apex class has batch or future jobs pending or in progress at line -1 column -1 I have ...
0
votes
1answer
41 views

Need Feedback on a Scheduled Job

I am trying to schedule a job in Salesforce that does not require any user interaction. Basically the quote object would need to have the status (picklist) updated once the date is 30 days past the ...
0
votes
0answers
244 views

How to unschedule/reschedule Batch apex which is scheduled via UI?

I have a batch apex in my Org. which runs every night. I scheduled it via User Interface. Now I want to re-schedule it via UI. How do I do that?
0
votes
0answers
100 views

Apex Scheduler doesn't work properly

I have a apex scheduler to check lead that work every 15 minutes. It only works on first action/scheduled job. I am not sure if i create that based on salesforce base practice but when i try my code (...
2
votes
0answers
35 views

Jobs visible in Scheduled Jobs, but not in Apex Jobs, why not?

I have the following class: public class AlertsJobBatch implements Schedulable { public AlertsJobBatch() { } public void execute(System.SchedulableContext SC) { Alerts....
-1
votes
1answer
230 views

Invalid type ScheduleBatch

Im trying to write a testsclass but getting the error: Invalid type: ScheduleBatch. Line 8 My Class: global class DeleteRecords implements Schedulable{ global void execute(...
0
votes
1answer
115 views

schedulable class has jobs pending or in progress error

I am trying to update a class which is throwing the following error This schedulable class has jobs pending or in progress I have already deleted the scheduler for the class but it is throwing the ...
0
votes
0answers
25 views

How to delete invisible scheduled sandbox jobs?

I refreshed a sandbox recently. Now I'm trying to deploy something in it. Several tests are failing with the following message: "Job X" is already scheduled for execution. The problem is that ...
0
votes
1answer
424 views

How can I find all reports which has a certain “Running User” for a Scheduled Report?

I mistakenly thought that I would be able to go to Monitoring > Scheduled Jobs page and use the 'Submitted by' column to tell me which report schedules would be problematic when we deactivate a user. ...
4
votes
2answers
417 views

Are Scheduled Jobs copied after Sandbox Refresh?

Are Scheduled Jobs copied after Sandbox Refresh? I did a refresh of a full copy sandbox and looked at the scheduled jobs but not all of them are there. Anyone has any ideas of the criteria used to ...
0
votes
1answer
57 views

Is there a way to update/modify the scheduler entry in salesforce

I've created a scheduler programmatically which runs everyday 12AM (Cron expression : 0 0 12 * * ?), but is there a way to change/modify the scheduler entry manually something like running 2 AM (0 0 2 ...
1
vote
0answers
209 views

Not able to edit in Apex class 'This schedulable class has jobs pending or in progress' [duplicate]

Not able to edit in Apex class: This schedulable class has jobs pending or in progress Can we know in someway which scheduled batch job is causing the issue. So that we can abort that scheduled ...
1
vote
2answers
432 views

Not able to see the class scheduled by a schedulable apex

I was looking through the scheduled jobs in my org. I would like to know which apex class is scheduled through these jobs. Please let me know how i can find this information?
0
votes
2answers
1k views

Schedule a apex batch class to run every 5 min

I have an apex batch class that does not implement Scheduleable Interface. I wish to schdule this batch job to run every 5 minutes of an hour all week. Is it possible to do without implementing the ...
1
vote
1answer
566 views

Process Builder Scheduled Action - Do Criteria Still Apply?

I have a field in my Account object which I want all users to fill in. It can't be required because they won't necessarily have the information when creating the Account. I would like to remind the ...