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)

Movement Journal Creation Error through Batch Job (System.MissingFieldException: Field not found: 'Microsoft.Dynamics.Ax.Xpp.XppObjectBase.__eventMap'.)

(0) ShareShare
ReportReport
Posted on by

Hello Everyone !

I am creating movement journals through code. and it is working fine. 

Now I have put that code in a class that extends from RunBaseBatch to create a batch job so that my journal may be created through batch job. When I call that class through normal static job of AOT it works fine and created proper journals and post them. which proves that code is working fine.

But when I schedule the batch job on the mentioned class it throws error which is given below.

Can any one please tell me what is this error for and suggest me the solution of this problem.

ERROR: 

System.MissingFieldException: Field not found: 'Microsoft.Dynamics.Ax.Xpp.XppObjectBase.__eventMap'.

at Dynamics.Ax.Application.DimensionStorage.loadFields()()

at Dynamics.Ax.Application.DimensionStorage..ctor(Int32 initialSegments, LedgerDimensionType ledgerDimensionType, Boolean )

at Dynamics.Ax.Application.DimensionStorage.construct(Int32 initialSegments, LedgerDimensionType ledgerDimensionType, Boolean , Boolean ) in DimensionStorage.construct.xpp:line 21

at Dynamics.Ax.Application.DimensionDefaultingEngine.Getstorage(LedgerDimensionType _ledgerDimensionType, Boolean ) in DimensionDefaultingEngine.getStorage.xpp:line 30

at Dynamics.Ax.Application.DimensionDefaultingEngine.Getledgerdimension() in DimensionDefaultingEngine.getLedgerDimension.xpp:line 16

at Dynamics.Ax.Application.DimensionDefaultingService.createLedgerDimension(Object[] _parms) in DimensionDefaultingService.createLedgerDimension.xpp:line 54

at DimensionDefaultingService::createLedgerDimension(Object[] )

at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26

at Dynamics.Ax.Application.SysDictClass.invokeStaticMethodIL(String className, String methodName, Object[] params, Boolean ignoreTtsLevel, Boolean ) in SysDictClass.invokeStaticMethodIL.xpp:line 39

at Dynamics.Ax.Application.Global.runClassMethodIL(String className, String methodName, Object[] params, Boolean ignoreTtsLevel, Boolean ) in Global.runClassMethodIL.xpp:line 30

at Dynamics.Ax.Application.DimensionDefaultingService.serverCreateLedgerDimension(Int64 ledgerDimensionId, Int64 dimensionDefault1, Int64 dimensionDefault2, Int64 dimensionDefault3, Boolean , Boolean , Boolean ) in DimensionDefaultingService.serverCreateLedgerDimension.xpp:line 58

at Dynamics.Ax.Application.DimensionDefaultingService.serviceCreateLedgerDimension(Int64 ledgerDimensionId, Int64 dimensionDefault1, Int64 dimensionDefault2, Int64 dimensionDefault3, Boolean , Boolean , Boolean ) in DimensionDefaultingService.serviceCreateLedgerDimension.xpp:line 49

at Dynamics.Ax.Application.DimensionDefaultingService.@serviceCreateLedgerDimension(Int64 ledgerDimensionId, Int64 dimensionDefault1, Int64 _dimensionDefault2, Boolean , Boolean )

at Dynamics.Ax.Application.DimensionDefaultingService.@serviceCreateLedgerDimension(Int64 ledgerDimensionId, Int64 dimensionDefault1, Boolean )

at Dynamics.Ax.Application.InventMovement.Updateledgeradjust(LedgerVoucher ledgerVoucher, InventUpd_Financial updateNow, Decimal costAmount, String projAdjustRefId, Date _projTransDate, Boolean , Boolean ) in InventMovement.updateLedgerAdjust.xpp:line 91

at Dynamics.Ax.Application.InventMovement.Updateledgeradjust(LedgerVoucher ledgerVoucher, InventUpd_Financial updateNow, Decimal costAmount, String projAdjustRefId, Date _projTransDate)

at Dynamics.Ax.Application.InventUpd_Financial.Updatefinancialissue(Decimal costAmountMST, Decimal costAmountSecCur) in InventUpd_Financial.updateFinancialIssue.xpp:line 173

at Dynamics.Ax.Application.InventUpd_Financial.Updatenow() in InventUpd_Financial.updateNow.xpp:line 107

at Dynamics.Ax.Application.InventMov_Journal.Journalposttrans(LedgerVoucher ledgerVoucher, InventUpd_Financial financial, Decimal _costAmount, Boolean , Boolean ) in InventMov_Journal.journalPostTrans.xpp:line 30

at Dynamics.Ax.Application.InventMov_Journal.@Journalposttrans(LedgerVoucher ledgerVoucher, InventUpd_Financial financial, Boolean )

at Dynamics.Ax.Application.InventJournalCheckPost_Movement.Posttransledger(JournalTransData journalTransData, LedgerVoucher ledgerVoucher) in InventJournalCheckPost_Movement.postTransLedger.xpp:line 75

at Dynamics.Ax.Application.JournalCheckPostLedger.Postvoucher(JournalTransList _journalTransList) in JournalCheckPostLedger.postVoucher.xpp:line 33

at Dynamics.Ax.Application.JournalCheckPostLedger.Postjournal(JournalTransList _journalTransList) in JournalCheckPostLedger.postJournal.xpp:line 28

at Dynamics.Ax.Application.InventJournalCheckPost_Movement.Postjournal(JournalTransList _journalTransList) in InventJournalCheckPost_Movement.postJournal.xpp:line 14

at Dynamics.Ax.Application.JournalCheckPost.Runpost() in JournalCheckPost.runPost.xpp:line 7

at Dynamics.Ax.Application.JournalCheckPost.Run() in JournalCheckPost.run.xpp:line 38

at Dynamics.Ax.Application.MTQSizeAdjustmentBatchJob.Run() in MTQSizeAdjustmentBatchJob.run.xpp:line 70

at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54

at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13

at BatchRun::runJobStatic(Object[] )

at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

at BatchIL.taskThreadEntry(Object threadArg)

 

*This post is locked for comments

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

    Didn't you forget to build CIL?

  • Community Member Profile Picture
    on at

    I have build that thrice now. but error still the same

  • Verified answer
    Martin Dráb Profile Picture
    239,082 Most Valuable Professional on at

    Maybe you could try full X++ and full CIL once more and confirm that there wasn't any error? Just to be sure...

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans