Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Excel is taking so long (+8 secons) to Open from X++

(0) ShareShare
ReportReport
Posted on by 44

Hi Guys,

I have been working with excel files lately from X++,

just to read around 20 fields from the AX  and write the to Excel. no to complicated

but I notice that is not slow by reading/writing data into excel. but just by opening the file (even if the file is new and created from x++)

It is quite annoying that I have to wait almost 10 seconds from the moment a click the menuItem button until the excel is opened.

Or just by a simple job it takes the same time:

pastedimage1614349547564v1.png

  • Suggested answer
    Leo Chen Profile Picture
    Leo Chen on at
    RE: Excel is taking so long (+8 secons) to Open from X++

    Probably you want to take an AX trace to check time spent in which part.  

  • CBNestor Profile Picture
    CBNestor 44 on at
    RE: Excel is taking so long (+8 secons) to Open from X++

    hi Ludwig,

    thanks for replying.

    the problem is not the amount of data itself. The problem is the amount of time it takes since the action is triggered until the Excel application is open (the workbook opens)

    the code that I uploaded is just a job that instanciates the excel app and opens the file. from the moment the job is triggered to the workbook opens takes around 6 to 10 seconds... it is quite annoying if you look at the default "Export to Microsoft Excel" button

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Excel is taking so long (+8 secons) to Open from X++

    Hi,

    How many records to you have in your invent table that you try to read?

    Best regards,

    Ludwig

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans