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

Start-NAVAppDataUpgrade Error

(1) ShareShare
ReportReport
Posted on by 67
Start-NAVAppDataUpgrade -ServerInstance BC220 -Name /Base Application/ -Version 22.1.240992.0 
Get-Date
Wednesday, April 10, 2024 1:15:46 AM
Start-NAVAppDataUpgrade : Could not upgrade the extension 'Base Application' 
by 'Microsoft' from version '22.1.240373.0' to '22.1.240992.0' for tenant 
'default' and company 'RLS Inc' due to the following error: 'A connection to 
SQL Server is no longer usable.
This could be caused by one of the following reasons:
* The server has been shut down manually or because of an error.
* The SQL Server connection settings are not correct.
* A network failure has occurred.
* A hardware failure has occurred on the server or on your computer.' and AL 
stack trace: 
/Update VAT Date Field/(CodeUnit 104051).UpdateBlankGLEntries line 21 - Base 
Application by Microsoft
/Update VAT Date Field/(CodeUnit 104051).OnUpgradePerCompany line 13 - Base 
Application by Microsoft
/Upgrade Triggers/(CodeUnit 2000000008).OnUpgradePerCompany(Event) line 2
At line:2 char:1
+ Start-NAVAppDataUpgrade -ServerInstance BC220 -Name /Base Application ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-NAVAppDataUpgrade], 
    InvalidOperationException
    + FullyQualifiedErrorId : MicrosoftDynamicsNavServer$BC220/default,Microso 
   ft.Dynamics.Nav.Apps.Management.Cmdlets.StartNavAppDataUpgrade
 
 
Below error captured in the events:
 
Statement: DECLARE @RCount INT;UPDATE /17/ SET /17/./VAT Reporting Date/=/17/./Posting Date/ FROM /SQLDATABASE/.dbo./CURRENTCOMPANY$G_L Entry$437dbf0e-84ff-417a-965d-ed2bb9650972/ /17/  WHERE (/17/./VAT Reporting Date/=@2)SET @RCount = IIF(@@ROWCOUNT < @RCount, @RCount, @@ROWCOUNT);SELECT @RCount;

    AppObjectType: CodeUnit

  AppObjectId: 104051

  AL CallStack: /Update VAT Date Field/(CodeUnit 104051).UpdateBlankGLEntries line 21 - Base Application by Microsoft

/Update VAT Date Field/(CodeUnit 104051).OnUpgradePerCompany line 13 - Base Ap
I have the same question (1)
  • Suggested answer
    YUN ZHU Profile Picture
    99,697 Super User 2026 Season 1 on at
    Hi, from the error message below, it is a problem that SQL cannot be accessed. Is your SQL Server service running? Check the services on your server machine.
    'A connection to 
    SQL Server is no longer usable.
    This could be caused by one of the following reasons:
    * The server has been shut down manually or because of an error.
    * The SQL Server connection settings are not correct.
    * A network failure has occurred.
    * A hardware failure has occurred on the server or on your computer.'
     
     
    Hope this helps.
    Thanks.
    ZHU

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 March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,948 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,048 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 727 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans