web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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
    95,548 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans