Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How to run a batch class?
Finance forum
Answered

How to run a batch class?

Posted on by 647
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.
 
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 3,904 on at
    How to run a batch class?
     
    Can you verify the answer that help you in order for others in the future to get answers for their questions?
     
     
     
    Regards,
    Waed Ayyad
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    How to run a batch class?
    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
     
  • Verified answer
    Shooowtek Profile Picture
    Shooowtek 647 on at
    How to run a batch class?
    Problem solved. Batch Management Service was disabled
  • Shooowtek Profile Picture
    Shooowtek 647 on at
    How to run a batch class?
    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?
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 3,904 on at
    How to run a batch class?
    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  
  • Layan Jwei Profile Picture
    Layan Jwei 4,815 Super User on at
    How to run a batch class?
    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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans