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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Running batch error

(0) ShareShare
ReportReport
Posted on by 275

Hi Everybody

I have a problem when i am running my class as a batch.

When i run it, but not as a "batch processing" there are no problems. But as soon as i try running it as a batch i get this problem:

572725.1.png

I have tried doing a full and incremental cil but without luck. Do anybody know the problem?

*This post is locked for comments

I have the same question (0)
  • Ashein Profile Picture
    275 on at
    RE: Running batch error

    It worked after changing from client to Server on RunOn, and afterwards doing a full incremental CIL.

  • Ashein Profile Picture
    275 on at
    RE: Running batch error

    Maybe i should do a full incremental cil after changing

  • Martin Dráb Profile Picture
    236,025 Most Valuable Professional on at
    RE: Running batch error

    It is that - the error clearly says "Invalid attempt to call {Class name you didn't show us}.new running in CIL on client".

    Maybe you change all places. Maybe you didn't update CIL. Maybe it failed somewhere else after changing (because there is a reason what it's bound to client). But you can't claim that trying to use a client class in batch is all right.

  • Ashein Profile Picture
    275 on at
    RE: Running batch error

    No, it not that. I have tried to change runOn: to Called from and Server. I still get the same error message on the batch

  • Verified answer
    Martin Dráb Profile Picture
    236,025 Most Valuable Professional on at
    RE: Running batch error

    It seems that you class is defined to run on client, so it can't be used in CIL on batch server.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans