Upgrade from 2013 to 2018 - Upload of objects and cannot DROP index on Synchronize Schema

Edward_Bloomfield
Member Posts: 155
Hi,
I am doing my first NAV upgrade to 2018. The current version is 2013.
With previous upgrades I have done, the steps have been typically as follows:
1.) Open the database in the new development environment/delete the old application objects except the tables.
2.) Import the Upgrade toolkit fob file.
3.) Run stage one of the toolkit fob file to move the data to the temporary tables.
4.) Upload the fob file containing the new application objects. Sync/recompile as required.
5.) Run the second stage of the upgrade toolkit.
6.) Delete the toolkit objects
Reading the 2018 upgrade notes, these state
"Import the application objects FOB file first, and then import the upgrade toolkit FOB file."
Is this correct? Will this not affect standard fields in 2013 that are updated in 2018 if the 2018 table structure is changed before the upgrade tools are run?
I followed through the instructions on my test copy and then recompiled the objects as requested in the next section (Task 11: Compile all objects that are not already compiled) and got the following errors:
Table - 21 - Cust. Ledger Entry - The following SQL error was unexpected: Cannot DROP the index 'First Company Name$Cust_ Ledger Entry.$7' because it is not a statistics collection.
Table - 5802 - Value Entry - The following SQL error was unexpected: Cannot DROP the index 'First Company Name$Value Entry.$12' because it is not a statistics collection.
Many thanks in advance
I am doing my first NAV upgrade to 2018. The current version is 2013.
With previous upgrades I have done, the steps have been typically as follows:
1.) Open the database in the new development environment/delete the old application objects except the tables.
2.) Import the Upgrade toolkit fob file.
3.) Run stage one of the toolkit fob file to move the data to the temporary tables.
4.) Upload the fob file containing the new application objects. Sync/recompile as required.
5.) Run the second stage of the upgrade toolkit.
6.) Delete the toolkit objects
Reading the 2018 upgrade notes, these state
"Import the application objects FOB file first, and then import the upgrade toolkit FOB file."
Is this correct? Will this not affect standard fields in 2013 that are updated in 2018 if the 2018 table structure is changed before the upgrade tools are run?
I followed through the instructions on my test copy and then recompiled the objects as requested in the next section (Task 11: Compile all objects that are not already compiled) and got the following errors:
Table - 21 - Cust. Ledger Entry - The following SQL error was unexpected: Cannot DROP the index 'First Company Name$Cust_ Ledger Entry.$7' because it is not a statistics collection.
Table - 5802 - Value Entry - The following SQL error was unexpected: Cannot DROP the index 'First Company Name$Value Entry.$12' because it is not a statistics collection.
Many thanks in advance
Edward Bloomfield
Lead Consultant
Theta
Lead Consultant
Theta
0
Answers
-
Update: I have attempted to drop the secondary keys on the affected NAV tables but I then got the same error message about not being able to DROP the index.Edward Bloomfield
Lead Consultant
Theta0 -
I have the same problem with Table 5802 and solved it by uncheck its last secondary key. Once I recompiled the object, the issue disappeared. Then, I rechecked the secondary key and recompiled again. Everything worked perfect.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