Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

A DotNet variable has not been instantiated. Attempting to call Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookReader.HasWorksheet in Table Excel Buffer: SetActiveReaderSheet

(0) ShareShare
ReportReport
Posted on by 15

Getting this error while trying to import GST Rates from excel by using Import From Excel Action on Business Central (Cloud) version. I'm able to use the same action OnPrem successfully. How should I go about solving this issue?

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: A DotNet variable has not been instantiated. Attempting to call Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookReader.HasWorksheet in Table Excel Buffer: SetActiveReaderSheet

    Hello,

    This cannot be done in SaaS release. You may want to explore other alternatives. Please ask your partner or CSP or developer for assistance.

    Thank you.

  • Dipika Profile Picture
    Dipika 15 on at
    RE: A DotNet variable has not been instantiated. Attempting to call Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookReader.HasWorksheet in Table Excel Buffer: SetActiveReaderSheet

    I'm using Business Central IN version. And trying to import GST rates via Import from excel action on GST rates page.

    Thanks

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 78,032 Super User 2025 Season 1 on at
    RE: A DotNet variable has not been instantiated. Attempting to call Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookReader.HasWorksheet in Table Excel Buffer: SetActiveReaderSheet

    Hi, The development methods of On-Pre and SaaS are different.

    If you are on Cloud, I hope the following example can give you some hints.

    How to use Excel Buffer to Import data

    https://yzhums.com/4223/

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: A DotNet variable has not been instantiated. Attempting to call Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookReader.HasWorksheet in Table Excel Buffer: SetActiveReaderSheet

    Can you share your code?

    If you are using .net variables in your on-prem code then you need to change that because you can not use .net variables in the cloud.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,317 Moderator on at
    RE: A DotNet variable has not been instantiated. Attempting to call Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookReader.HasWorksheet in Table Excel Buffer: SetActiveReaderSheet

    Hi,

    I am not sure from where you are using "Import from Excel" action. Also if you are using customization you need to check that one.

    Thanks.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans