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)

Close Excel file while uploading Data

(0) ShareShare
ReportReport
Posted on by 2

hi,

When i upload excel file in ax through uploader it will upload the data from excel but never close the excel file if validation has failed. This makes the system more slower. Any suggestion how we can close the excel sheet while uploading data through x++

Regards,

Zohan

*This post is locked for comments

I have the same question (0)
  • Hariharans87 Profile Picture
    3 on at
    RE: Close Excel file while uploading Data

    Call the SysExcelApplication quit method to close the Excel application.

    If it doesn't work share your code.

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at
    RE: Close Excel file while uploading Data

    Are you talking about custom code ? If validation throws exception you need to add try finally block and close excel file in the finally block.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans