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

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:

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:

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

iyjdf6986c5z.png
rqqvktx7fvns.png
r4anbxnjnnwn.png

Does anybody have any idea how to solve this?



Sign In or Register to comment.