web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to run a batch class?

(0) ShareShare
ReportReport
Posted on by 843
Hi,
I have a class created that takes 30-40min run. The class will be run by the user, by selecting menuitem. I have a problem to run this class as a batch. When trying to run, the following error appears.
 
//
I can't find what the cause of this error is.
 
Thanks.
 
I have the same question (0)
  • Layan Jwei Profile Picture
    8,116 Super User 2025 Season 2 on at
    Hi Shooowtek,

    you didn't explain what you did exactly and you didn't show us ur code.
    Did you click batch processing as true, then clicked ok to run it?

    Also please debug and show us what line exactly it fails on

    Thanks,
    Layan Jweihan
  • Suggested answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi @ Shooowtek,
     
    If you want the steps to run your class as batch, you can check the following link:
     
    but it seems you have an issue, when you run your code (class), Can you share your code? So, we can help you.
     
     
    Regards,
    Waed Ayyad  
  • Shooowtek Profile Picture
    843 on at
    Hello,
     
    I fixed the problem and am now creating a batch job. But unfortunately I don't know how to start the execution, because the job is added to the queue, but all the time it has the status "Waiting".
    Does anyone perhaps know why this is happening?
  • Verified answer
    Shooowtek Profile Picture
    843 on at
    Problem solved. Batch Management Service was disabled
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    Thanks for your reply and sharing, if your problem is solved, you can mark this question as verified, which will help more people on the forum.
    Best Regards,
    Hana
     
  • Suggested answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
     
    Can you verify the answer that help you in order for others in the future to get answers for their questions?
     
     
     
    Regards,
    Waed Ayyad

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans