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 :
Microsoft Dynamics AX (Archived)

Adding batch in Ax2012

(0) ShareShare
ReportReport
Posted on by

I create  a class extended from RunBaseBatch to be used as  batch tack. I go to  System Administration > Inquiries > Batch Jobs to create new  batch then click view tasks to add tasks when I entered  the name of the created class to class name field in the grid I get the following error  “The batch task you entered is not valid. Enter a different batch task”.

 

 

I try  creating the batch by go to class directly select open then use batch tab to create batch and set recurrence. The batch is created, added to batch queue and performed successfully. When I check tasks related to this batch, I find the name of the class in the field class name.

 

 

Why I face such case ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    To be able to create a batch in this way, your class must override canGoBatchJournal() and let it return true.

    It's not related to your question, but it's worth noting that you shouldn't implement batches by the RunBase framework since AX 2012. Use the SysOperation framework instead (which makes many things easier, e.g. you don't have to implement serialization by yourself anymore).

  • maram fraij Profile Picture
    on at

    The method canGoBatchJournal is already overrite and return true since I use the class “Tutorial_RunbaseBatch” to create my new customized one.

  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Well, there are other conditions and I can't say (without ever seeing your code) which exactly is violated.

    First restart the client to clear client cache. If it doesn't help, simply debug the code (in Batch.className()) to find out which condition is failing.

  • maram fraij Profile Picture
    on at

    By restarting  the client,  the problem is resolved.

    Thank you very much.

  • maram fraij Profile Picture
    on at

    When creating a batch via System Administration > Inquiries > Batch , its status is by default “withhold”, the status should be changes to “waiting” in order to be started, right?

    Another question, the batches in AX are similar to windows  services; they are running in the background, is it correct ?

  • David Knight Profile Picture
    on at

    When using the SysOperation Framework, how do you get a custom controller class to appear in the class form from the batch task form?

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans