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
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)