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

Microsoft Dynamics Nav Runtime NavVariant Variable not initialized

(0) ShareShare
ReportReport
Posted on by 247

Hi, 

I have a problem with the approvals of Sales Invoice.
When I submit an approval request and someone attempts to approve, the following error occurs and is not approved.
Microsoft.Dynamics.Nav.Runtime.NavVariant variable not initialized

If approved the Sales Invoice Status still pending approval instead of Released.

What could be the problem to getting the error ? and how to fix this error ?

pastedimage1596523520701v1.png
I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    Microsoft Employee on at

    If you run debugger behind the scene you will probably see where the issue lies. Most probably this is an old error due to outdated platform AND application (in the workflow area). 

    Could you please write down your build no. and application version?

  • weiching Profile Picture
    247 on at

    Hi Duilio Tacconi, 

    May I know how to run the debugger ? is it vrun via Visual Studio Code ?

    Version: W1 16.3 (Platform 16.0.14073.15127 + Application 16.3.14085.14287)

    I found the error due to the sender and approver are the same user. 

    Thank you.

  • Suggested answer
    THE Italian Profile Picture
    Microsoft Employee on at

    Yes. you have to run it through VS Code in a sandbox. 

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-debugging

  • JohnWong Profile Picture
    17 on at

    Hi Duilio Tacconi,

    We just can debug the custom extension, right?

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,059 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 994 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 664 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans