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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

RunBaseBatch: dialog parameters not stored in batch

(0) ShareShare
ReportReport
Posted on by 6,611

Hello:

I created a new class which extends the RunBaseBatch interface. Everything is working when I run the main() from within my class as part of testing. However, as soon as I set it up for batch processing the parameters I set for my class do not get stored / picked up when the batch job runs. The infolog I write out and the file I create confirm this. The batch job parameter does allow me to enter the parameter values but they're not stored or are they read and processed when the job runs. This is a first for me with RunBaseBatch so any help would be appreciated. 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at

    You shouldn't create new classes extending RunBaseBatch in AX 2012. Instead, use the SysOperation framework. One of advantages of SysOperation framework is that you don't have to implement serialization and deserialization of parameters, which you likely forgot to do.

    To learn the right way, read Data Contracts and Service Operations, for instance.

    If you still insist on using the old batch framework, you'll have to implement the Pack-Unpack Design Pattern to allow parameters to be saved to database and read from there when the batch gets executed.

  • bankk Profile Picture
    6,611 on at

    You're absolutely right, I did not implement the parameters. The link you provided helped substantially. Until I bone up on the use of the SysOperation framework, I will continue to use RunBaseBatch for this implementation.

    Thank you very much Martin!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans