Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

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

Posted on by Microsoft Employee

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

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: A call to Microsoft.Dynamics.Nav.OpenXml.spreadsheet.WorkbookReader.Open failed -import error

    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?

  • Suggested answer
    Jatin Patel Profile Picture
    Jatin Patel 2,641 on at
    RE: A call to Microsoft.Dynamics.Nav.OpenXml.spreadsheet.WorkbookReader.Open failed -import error

    Hi Saravanan,

    Please refer below link.

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

  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: A call to Microsoft.Dynamics.Nav.OpenXml.spreadsheet.WorkbookReader.Open failed -import error

    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.

  • Binesh Profile Picture
    Binesh 7,885 on at
    RE: A call to Microsoft.Dynamics.Nav.OpenXml.spreadsheet.WorkbookReader.Open failed -import error

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans