Unable to upgrade from BC140 C/AL to BC150 AL because of destructive changes error

Robert_de_Roos
Member Posts: 2
I have successfully converted our C/AL solutions to AL , merged the code with the BC150 base application source files and build a new base application app.
I'm trying to upgrade our BC140 database to BC150 combining the following two online documents from Microsoft:
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/upgrade-unmodified-application
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/upgrade-technical-upgrade-v14-v15
I have technical upgraded to BC140 CU5 (14.0.35916) and after that doing the steps below.
# Load BC140 Cmdlets
Get-NAVAppInfo -ServerInstance BC140 -SymbolsOnly | % { Unpublish-NAVApp -ServerInstance BC140 -Name $_.Name -Version $_.Version }
Stop-NAVServerInstance -ServerInstance BC140
#Restart PowerShell and load BC150 Cmdlets
Invoke-NAVApplicationDatabaseConversion -DatabaseServer .\BCDEMO -DatabaseName BC150
Start-NAVServerInstance -ServerInstance BC150
Publish-NAVApp -ServerInstance BC150 -Path '.\.alpackages\System.app' -PackageType SymbolsOnly
Publish-NAVApp -ServerInstance BC150 -Path '.\.alpackages\Microsoft_System Application.app' -SkipVerification
Publish-NAVApp -ServerInstance BC150 -Path '.\Microsoft_Base Application_15.0.36145.0.app' -SkipVerification
Sync-NAVTenant -ServerInstance BC150 -Mode Sync
Everything goes well without any warnings or errors until the last step.
I get to following error:
Sync-NAVTenant : The schema synchronization may result in deleted data. The following destructive changes were detected:
Table: 3, Payment Terms: Deleted
Table: 4, Currency: Deleted
Table: 5, Finance Charge Terms: Deleted
Table: 6, Customer Price Group: Deleted
Table: 7, Standard Text: Deleted
Table: 8, Language: Deleted
Table: 9, Country/Region: Deleted
Table: 10, Shipment Method: Deleted
Table: 11, Country/Region Translation: Deleted
Table: 13, Salesperson/Purchaser: Deleted
etc...
...aUpgradeMgt.SetTableSyncSetup(DATABASE::"PFProd. BOM Template Line",[Upgrade Table Id],TableSynchSetup.Mode::[Mode]);
DataUpgradeMgt.SetTableSyncSetup(DATABASE::"PFSalesperson Range",[Upgrade Table Id],TableSynchSetup.Mode::[Mode]);
DataUpgradeMgt.SetTableSyncSetup(DATABASE::"PFFreight Charge",[Upgrade Table Id],TableSynchSetup.Mode::[Mode]);
etc.
App information:
PS C:\WINDOWS\system32> Get-NAVAppInfo bc150pf
Id : 63ca2fa4-4f03-4f2b-a480-172fef340d3f
Name : System Application
Version : 15.0.36145.0
Publisher : Microsoft
ExtensionType : ModernDev
Scope : Global
Id : 437dbf0e-84ff-417a-965d-ed2bb9650972
Name : Base Application
Version : 15.0.36145.0
Publisher : Microsoft
ExtensionType : ModernDev
Scope : Global
PS C:\WINDOWS\system32> Get-NAVAppInfo bc150pf -SymbolsOnly
Id : 8874ed3a-0643-4247-9ced-7a7002f7135d
Name : System
Version : 15.0.36117.0
Publisher : Microsoft
ExtensionType : ModernDev
Scope : Global
Brief :
Description :
Compatibility Id : 0.0.0.0
Developer Tenant ID :
Privacy Statement :
EULA :
Help :
Url :
Logo :
Screen Shots :
Prerequisites :
Dependencies :
Package Id : 0362f08d-46f5-4c8d-ba19-75818cbac18e
I'm trying to upgrade our BC140 database to BC150 combining the following two online documents from Microsoft:
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/upgrade-unmodified-application
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/upgrade-technical-upgrade-v14-v15
I have technical upgraded to BC140 CU5 (14.0.35916) and after that doing the steps below.
# Load BC140 Cmdlets
Get-NAVAppInfo -ServerInstance BC140 -SymbolsOnly | % { Unpublish-NAVApp -ServerInstance BC140 -Name $_.Name -Version $_.Version }
Stop-NAVServerInstance -ServerInstance BC140
#Restart PowerShell and load BC150 Cmdlets
Invoke-NAVApplicationDatabaseConversion -DatabaseServer .\BCDEMO -DatabaseName BC150
Start-NAVServerInstance -ServerInstance BC150
Publish-NAVApp -ServerInstance BC150 -Path '.\.alpackages\System.app' -PackageType SymbolsOnly
Publish-NAVApp -ServerInstance BC150 -Path '.\.alpackages\Microsoft_System Application.app' -SkipVerification
Publish-NAVApp -ServerInstance BC150 -Path '.\Microsoft_Base Application_15.0.36145.0.app' -SkipVerification
Sync-NAVTenant -ServerInstance BC150 -Mode Sync
Everything goes well without any warnings or errors until the last step.
I get to following error:
Sync-NAVTenant : The schema synchronization may result in deleted data. The following destructive changes were detected:
Table: 3, Payment Terms: Deleted
Table: 4, Currency: Deleted
Table: 5, Finance Charge Terms: Deleted
Table: 6, Customer Price Group: Deleted
Table: 7, Standard Text: Deleted
Table: 8, Language: Deleted
Table: 9, Country/Region: Deleted
Table: 10, Shipment Method: Deleted
Table: 11, Country/Region Translation: Deleted
Table: 13, Salesperson/Purchaser: Deleted
etc...
...aUpgradeMgt.SetTableSyncSetup(DATABASE::"PFProd. BOM Template Line",[Upgrade Table Id],TableSynchSetup.Mode::[Mode]);
DataUpgradeMgt.SetTableSyncSetup(DATABASE::"PFSalesperson Range",[Upgrade Table Id],TableSynchSetup.Mode::[Mode]);
DataUpgradeMgt.SetTableSyncSetup(DATABASE::"PFFreight Charge",[Upgrade Table Id],TableSynchSetup.Mode::[Mode]);
etc.
App information:
PS C:\WINDOWS\system32> Get-NAVAppInfo bc150pf
Id : 63ca2fa4-4f03-4f2b-a480-172fef340d3f
Name : System Application
Version : 15.0.36145.0
Publisher : Microsoft
ExtensionType : ModernDev
Scope : Global
Id : 437dbf0e-84ff-417a-965d-ed2bb9650972
Name : Base Application
Version : 15.0.36145.0
Publisher : Microsoft
ExtensionType : ModernDev
Scope : Global
PS C:\WINDOWS\system32> Get-NAVAppInfo bc150pf -SymbolsOnly
Id : 8874ed3a-0643-4247-9ced-7a7002f7135d
Name : System
Version : 15.0.36117.0
Publisher : Microsoft
ExtensionType : ModernDev
Scope : Global
Brief :
Description :
Compatibility Id : 0.0.0.0
Developer Tenant ID :
Privacy Statement :
EULA :
Help :
Url :
Logo :
Screen Shots :
Prerequisites :
Dependencies :
Package Id : 0362f08d-46f5-4c8d-ba19-75818cbac18e
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions