web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

A ditnet variable has not been instantiated.Attempting to call Microsoft.Dynamics.Nav.OpenXml.Spreedsheet.workbookwriter. AddworkbookWriter in Table Excel Buffer:WriteSheet

(1) ShareShare
ReportReport
Posted on by 7

pastedimage1683184401712v1.png

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,161 Moderator on at

    Can you share your code?

    You are missing to create the .net variable correctly in our code.

  • Suggested answer
    YUN ZHU Profile Picture
    98,304 Super User 2026 Season 1 on at

    Hi, hope the following helps.

       

    Thanks.

    ZHU

  • AjayPandey Profile Picture
    133 on at

    Yes This is helpful

  • AjayPandey Profile Picture
    133 on at

    But new issue is generate  when I debug this code mention below is the error.

    Can you please help me to solve this issue I engaged in this issue so many days so  please help me.

    Microsoft Dynamics NAV

    ---------------------------

    Break On Error Message:

    A call to Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookWriter.Create failed with this message: Access to the path 'C:

    ProgramData

    Microsoft

    Microsoft Dynamics NAV

    90

    Server

    MicrosoftDynamicsNavServer$DynamicsNAV90

    users

    default

    DESKTOP-UNIKUL1

    RAKSHITH UNIKUL

    TEMP

    __TEMP__958aff79760f43fda6c8ec7a3b1d3cee.tmp.xlsx' is denied.

    ---------------------------

    OK

    ---------------------------

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,986 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,071 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 975 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans