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, ...
Suggested Answer

Batch processing not working (RunBaseBatch)

(0) ShareShare
ReportReport
Posted on by 8

Hi,

I created a class which inherits from RunBaseBatch.

I have a form  which is using my Class.

I implemented all methods from Tutorial_RunBaseBatch and also compared my code to some standard classes and I don't see what is wrong.

When I check button Batch processing seems like it doesn't get affected at all, the process gets run immediately instead of adding job to the batch queue. Any thoughts? Thanks in advance

pastedimage1677058916913v1.png

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

    I wonder why you use RunBaseBatch instead of the newer framework: SysOperation. It's easier to implement (e.g. you don't need to implement serialization by yourself and you can get a dialog generated by the system) and you also have more execution modes to choose from.

    If you want to use RuBaseBatch anyway, you can use the debugger to find out where things go wrong. RunBaseBatch.runOperationNow() may be a good starting point. You may also give us your code for a review.

  • techAx Profile Picture
    8 on at

    Hi Martin,

    In the meantime I did this

    Overriden method canClose in my form that I am using as a dialog

     public boolean canClose()

       {

           boolean canClose = super();

           if (canClose && element.closedOk())

           {

               canClose = myClass.checkCloseDialog();

           }

           return canClose;

       }

    And now seems that it works

  • GirishS Profile Picture
    27,827 Moderator on at

    After setting the batch process to yes - Did you got any notification - You will get a notification like "Job is added to the batch queue".

    It will be added to Batch jobs on the inquiry form under system administrator. module.

    Thanks,

    Girish S.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, I assume you are doing this for practice purpose. As Martin mentioned you should explore SysOperation Framework.

    Check this out

    For runbase batch

    dynamics365musings.com/.../

    For SysOperation Framework

    dynamics365musings.com/.../

  • techAx Profile Picture
    8 on at

    I am getting that notification now after I did what I described oin my last comment

  • techAx Profile Picture
    8 on at

    I guess because I am used to RunBaseBatach but I will investigate SysOperation

  • Martin Dráb Profile Picture
    237,793 Most Valuable Professional on at

    You said nothing about about any form before, therefore we couldn't take that into account. Now you seem to be saying there is no problem in the class you asked about; you had a bug in the form. In either case, it's great that the problem's been resolved.

    By the way, please always use Insert > Code (in the rich formatting view) to paste source code to this forum. It'll prevent the extra space between lines, among other benefits. For example:

    public boolean canClose()
    {
    	boolean canClose = super();
    
    	if (canClose && element.closedOk())
    	{
    		canClose = myClass.checkCloseDialog();
    	}
    
    	return canClose;
    }

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 663 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 348 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans