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

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 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
    104,110 Super User 2026 Season 2 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 645 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 432 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 248 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans