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, ...
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
    237,990 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,827 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

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans