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 618
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
    3,252 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
    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
    618 on at
    How to run a batch class?
    Problem solved. Batch Management Service was disabled
  • Shooowtek Profile Picture
    618 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
    3,252 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
    4,102 Moderator 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

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

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

#1
Jahanvi Profile Picture

Jahanvi 34

#2
PJ JohnPaul Profile Picture

PJ JohnPaul 5

#3
SudhanshuMSID Profile Picture

SudhanshuMSID 1

Overall leaderboard

Product updates

Dynamics 365 release plans