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 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?
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.
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.
André Arnaud de Cal...
292,884
Super User 2025 Season 1
Martin Dráb
231,754
Most Valuable Professional
nmaenpaa
101,156
Moderator