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

Technical Upgrade BC17.1 to 17.2 Error with Invoke-NAVApplicationDatabaseConversion

(0) ShareShare
ReportReport
Posted on by 215

Hello,

I'm following the instructions of the MS doc for the minor technical upgrade from 17.1 to 17.2 here : Install a version 17 update - Business Central | Microsoft Docs

I have a database in BC17.1 (a copy of the demo database, with its server and web instances), and I would like to convert it to BC17.2. I have done the first lines of cmlet : 

Import-Module "C:\Program Files\Microsoft Dynamics 365 Business Central\170\Service\NavAdminTool.ps1" -Force # Note : important de charger le module de la bonne version... Verifier le chemin.
My Var
$Instance = 'I_PRIMUS_BC_DEV_171to172'
$DataBase = 'PRIMUS_BC_DEV_171to172'
$Serveur = 'LAPTOP-9NIBFRHS'
$Licence = 'C:\Licence\PRIMUS-SOFT BC 170 5240442.flf'

$NavAdminSource = 'C:\Program Files\Microsoft Dynamics 365 Business Central\170\Service\NavAdminTool.ps1'
$NavAdminDestination = 'C:\Program Files\Microsoft Dynamics 365 Business Central\170\Service\NavAdminTool.ps1'

$SourceSystem = 'C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\170\'
$SourceExtension = 'C:\Install\Dynamics.365.BC.19735.FR.DVD\Applications'

$AncienneVersion = "17.1.18256.18474"
$NouvelleVersion = "17.2.19367.19735"
Get-NAVAppInfo -ServerInstance $Instance
Get-NAVAppInfo -ServerInstance $Instance | % { Uninstall-NAVApp -ServerInstance $Instance -Name $_.Name -Version $_.Version -Force}

Get-NAVAppInfo -ServerInstance $Instance | % { Unpublish-NAVApp -ServerInstance $Instance -Name $_.Name -Version $_.Version}
Stop-NAVServerInstance -ServerInstance $Instance
Untill there, everythin is fine. Like it is said in the instructions, I uninstall BC17.1 and install instead BC17.2 with the setup.exe I download on microsoft website : Download Update 17.2 for Microsoft Dynamics 365 Business Central 2020 Release Wave 2 from Official Microsoft Download Center
But after that, when i try to convert the BC17.1 database with this cmlet : 
Invoke-NAVApplicationDatabaseConversion -DatabaseServer $Serveur -DatabaseName $DataBase
I have this error message : 
AVERTISSEMENT : UnhandledErrorMessage
Invoke-NAVApplicationDatabaseConversion : La méthode 'LogTrace' du type 'Microsoft.Dynamics.Nav.Runtime.Diagnostics.BusinessCentralPartnerTelemetryTracingEvents' de l'assembly
'Microsoft.Dynamics.Nav.Ncl, Version=17.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' n'a pas d'implémentation.
Au caractère Ligne:19 : 1
+ Invoke-NAVApplicationDatabaseConversion -DatabaseName 'PRIMUS_BC_DEV_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-NAVApplicationDatabaseConversion], TypeLoadException
+ FullyQualifiedErrorId : System.TypeLoadException,Microsoft.Dynamics.Nav.Management.Cmdlets.InvokeNAVApplicationDatabaseConversion
What does that mean ?
(I'm on PowerShell ISE as administrator)
I have the same question (0)
  • Magicrevette Profile Picture
    215 on at

    When I try this cmlet on BC17 Administration Shell, I got this error message :

    Invoke-NAVApplicationDatabaseConversion : There are records in the Installed Application table. You must uninstall all

    extensions before upgrading the database.

    Au caractère Ligne:1 : 1

    + Invoke-NAVApplicationDatabaseConversion -DatabaseServer $Serveur -Dat ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       + CategoryInfo          : NotSpecified: (0:Int32) [Invoke-NAVApplicationDatabaseConversion], NavSqlException

       + FullyQualifiedErrorId : LAPTOP-9NIBFRHS,Microsoft.Dynamics.Nav.Management.Cmdlets.InvokeNAVApplicationDatabaseCo

      nversion

  • Suggested answer
    raelhefn Profile Picture
    on at

    Hello,

    Please uninstall all versions and started from scratch. It should work.

  • Magicrevette Profile Picture
    215 on at

    What do you mean by "uninstall ALL version" ?

    I've already uninstalled BC17.1 numerous times with the 17.2's setup.exe and tried this cmlet again. The result is still the same.

  • Suggested answer
    raelhefn Profile Picture
    on at

    It seems installation issue, some components  maybe installed in this environment prevent it from upgrade to the higher version. so why i asked you to uninstall all components and try to reinstall it again.  

    Is this upgrade from 17.1 to 17.2 for a DE localization?

    Could you please check error message recorded into event viewer?

  • Suggested answer
    Erol Profile Picture
    192 on at

    After this step "I uninstall BC17.1 and install instead BC17.2" You need to close Powershell and open it again, to import NEW 17.2 powershell module commands:

    Import-Module "C:\Program Files\Microsoft Dynamics 365 Business Central\170\Service\NavAdminTool.ps1"

    Hope that solves the issue.

  • Magicrevette Profile Picture
    215 on at

    It's it ! I needed to close and reopen PowerShell, to import the new module, and the cmlet "Invoke-NAVApplicationDatabaseConversion -DatabaseServer $Serveur -DatabaseName $DataBase" worked after that.

    Following cmlet worked fine too :

    Set-NAVServerConfiguration -ServerInstance $Instance -KeyName DatabaseName -KeyValue $DataBase

    Restart-NAVServerInstance -ServerInstance $Instance

    Import-NAVServerLicense -LicenseFile $Licence -ServerInstance $Instance

    Restart-NAVServerInstance -ServerInstance $Instance

    Publish-NAVApp -ServerInstance $Instance -Path ( $SourceSystem + "AL Development Environment\System.app" ) -PackageType SymbolsOnly

    Sync-NAVTenant -ServerInstance $Instance -Mode Sync

    But another cmlet doesn't work after that...

    Install-NAVApp -ServerInstance $Instance -Name "System Application" -Version $NewVersion

    I got this error message :

    Install-NAVApp : "No published extension matches specified parameters values."

    Au caractère Ligne:4 : 1

    + Install-NAVApp -ServerInstance $Instance -Name "System Application" - ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       + CategoryInfo          : InvalidOperation : (:) [Install-NAVApp], InvalidOperationException

       + FullyQualifiedErrorId : MicrosoftDynamicsNavServer$I_PRIMUS_BC_DEV_171to172/default,Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.InstallNavApp

    Why can't I install the System Application App ?

    It' a French localization by the way.

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,229

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans