Is there any attribute that i can specify in build.xml to deploy scheduled classes through ant?


If you have a Scheduled Job which has code referenced you are deploying, it will fail with that error.

You need to remove the scheduled jobs (DELETE) from the Scheduled Jobs. To confim / remove the scheduled jobs: Setup -> Monitoring -> Scheduled Jobs

Also you need to remove the Batch Jobs if any are queued or in progress. Setup -> Monitoring -> Batch Jobs .Direct from salesfroce forums. Hope this solves your issue.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.