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

Notifications

Announcements

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)
  • 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

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

  • AjayPandey Profile Picture
    133 on at

    Yes This is helpful

  • Suggested answer
    YUN ZHU Profile Picture
    96,281 Super User 2025 Season 2 on at

    Hi, hope the following helps.

       

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    Can you share your code?

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

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

News and Announcements

Season of Giving Solutions is Here!

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,457

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 742 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 669 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans