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, ...
Answered

Sample Batch Job Issue

(0) ShareShare
ReportReport
Posted on by 390

Hey team,

I'm trying to run a simple batch job using an example giving online but it is giving an error saying:

"The specific class is not fully designed for use in the batch Job form.Execution might provide unexpected results "  and 

"Numbers could not be generated because a number sequence reference is missing".

Please tell me where is it going wrong

My code is: 

class AssociatesBatchJob extends RunBaseBatch
        {
            public void run()
            {
                
                info(strFmt("AssociatesBatchJob .run at %1"
                    ,DateTimeUtil ::toStr(
                        DateTimeUtil ::utcNow())
                    ));
            }
            public container pack()
            {
                return conNull();
            }
            public boolean unpack(container packedClass)
            {
                return true;
            }
        }

I have the same question (0)
  • Verified answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi skd,

    You are missing the Main method, below is the sample from OOB code. you can look for samples in D 365FO, There are at least a few hundred examples.

    public static void main(Args args)
        {
            AddressZipCodeImportDialog  addressZipCodeImportDialog;
            addressZipCodeImportDialog = AddressZipCodeImportDialog::construct();
    
            if (addressZipCodeImportDialog.prompt())
            {
                addressZipCodeImportDialog.runOperation();
            }
        }

    I will also use/learn about SysOperations Framework than RunBase Batch. You can learn from examples like http://www.artofcreation.be/2011/08/22/ax2012-sysoperation-part-1-data-contracts-and-service-operations/

  • skd Profile Picture
    390 on at

    Hey Vinit Goyal,

    Thank you.

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

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans