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
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,874 Super User 2025 Season 1 on at
    Start-NAVAppDataUpgrade Error
    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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans