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...
Unanswered

Publishing code modified base app runs into error "Object reference not set to an instance of an object"

(0) ShareShare
ReportReport
Posted on by 5

We are developing a rather large (~18.000 AL objects with many dotNet Addins) code modified base app. The compilation from Visual Studio code with Ctrl+Shift+B runs successfully. We have created a local Database including NAV-Server with only the system tables. We are able to compile and publish a code modified base app which only includes the Microsoft AL files on that local NAV-Server successfully. When trying to publish our code modified base app with

Publish-NAVApp -ServerInstance NAV -Path "C:\VisualStudioCodeProjects\ALTest\Axians Infoma_newsystem_1.0.0.0.app" -SkipVerification -Verbose

the command runs for approximately 20 minutes and runs into the following error:
Publish-NAVApp : Object reference not set to an instance of an object.
During the running of the command the process Microsoft.Dynamics.Nav.Server utilizes all available free RAM (approx. 24GB).

In the event log there are the following two errors:

  1. MicrosoftDynamicsNavServer$NAV
    Server instance: NAV Category: Extensions ClientSessionId: 37620e61-72d4-4701-b421-6e88978a3f3d ClientActivityId: 394ad171-1a5f-4852-9e7b-345d74c3b69d ServerSessionUniqueId: 2101b895-c3ca-4242-bc8a-d625c2be531d ServerActivityId: eb66b1bb-1d6c-4140-9ed1-e9850ca9daaf EventTime: 07/10/2020 12:46:34 Message Object reference not set to an instance of an object. ProcessId: 19496 Tag: 00001YW ThreadId: 17 CounterInformation:

  2. Microsoft.Dynamics.Nav.Management.dll
    Type: System.InvalidOperationException Message: Object reference not set to an instance of an object. HResult: -2146233079

2020_2D00_07_2D00_10-15_5F00_20_5F00_01_2D00_Ausw_E400_hlen-Administrator_5F00_-Business-Central-Administration-Shell.png

2020_2D00_07_2D00_10-15_5F00_20_5F00_49_2D00_Ereignisanzeige.png

2020_2D00_07_2D00_10-15_5F00_21_5F00_00_2D00_Ereignisanzeige.png

I have the same question (0)
  • Gearoid Profile Picture
    Microsoft Employee on at

    Hi,

    I would recommend a Technical upgrade of the environment to the latest cumulative update. If the problem persists after than then open a support ticket with Microsoft via your Solution Provider or Business Central Partner. 

    Hope that helps!

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,140 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,362 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,216

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans