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 :
Microsoft Dynamics NAV (Archived)

A call to Microsoft.Dynamics.Nav.OpenXml.spreadsheet.WorkbookReader.Open failed -import error

(0) ShareShare
ReportReport
Posted on by

Dear All,

I am using NAV 2015. I have created a report to import a report to import an excel file. while trying to import it shows an error

A call to Microsoft.Dynamics.Nav.OpenXml.spreadsheet.WorkbookReader.Open failed with this message.C:\Users\UserName\filename.xlsx

When i run the debugger and check the process it stops in the code XlWrkBkReader := XlWrkBkReader.Open(FileName); in table Excel buffer.

What may be the reason behind this can anyone specify. the excel version in the client and server is also same.

Problem happens client machine only , server machine working properly.

Thanks,

P.Saravanan

*This post is locked for comments

I have the same question (0)
  • Binesh Profile Picture
    7,885 on at

    Check weather Excel application is installed in Client PC.
    Also check if any pop up appears while importing regarding excel then Allow.

  • Verified answer
    keoma Profile Picture
    32,729 on at

    check if XlWrkBkReader variable is set to runonclient=yes. if it's set to no, then the file has to be on the server, not on the client. in that case, before running that command copy the file from client to server with upload or cu file mgmt.

    also check if the current user has file read access and the file is not locked.

    also try with a different excel doc to check, if the first one is not corrupted.

  • Suggested answer
    Jatin Patel Profile Picture
    2,641 on at

    Hi Saravanan,

    Please refer below link.

    blogs.msdn.microsoft.com/.../nav-pattern-of-the-week-silent-file-upload-and-download

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    Where is the file actually located? Does the user have enough rights to access that file? Can it open the file directly from that location?

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans