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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Invalid attempt to call SysExcelApplication.construct in batch

(0) ShareShare
ReportReport
Posted on by 106

I am trying to export data in Excel using a Batch Job and this error is displayed. "Stack trace: Invalid attempt to call SysExcelApplication.construct running in CIL on the client." 

What can I do?

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

    SysExcelApplication class can't be used in a batch, because it must run on a client and there is no client when code gets executed on a batch server.

  • GirishS Profile Picture
    27,843 Moderator on at

    If you want to export data to excel, You can make use of the "DMFEntityExporter" class. Refer to standard class "BankPositivePayExport" >> generatePositionPayFile(Method name).

    I don't know whether its available in ax 2012 or not. But you can check that.

    Thanks,

    Girish S.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 681

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 448 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 218 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans