Hi,
i've been working on this for several days now, but can't seem to find any solution. I am doing a test upgrade from NAV2009 to NAV2015, but on the Data Upgrade, I always get the error 'Choose a valid field in the Contact table'.
The error shows up when I execute a Get-NAVDataUpgrade -ServerInstance -Detailed | Out-GridView command in the powershell, giving the FailedPendingResume state in the StartUpgrade function.
There are a few customized fields in the Contact table, but noone where the DataType should be a problem.
Thanks in advance
0
Answers
I would suggest that you try to start the data upgrade from the DEV-Environment while having the Debugger in "Debug Next" mode. This could help you to identify the source of that error because the debugger should stop at the error.
I hope that helps!
Best regards,
Jut
Unfortunately, the debugger doesn't break when running the upgrade from the development area.
When I looked in the Event Log, I saw it was a similar useless message:
Function 'StartUpgrade' in the upgrade codeunit '104055' in the context of the company 'REDACTED' has failed because of the following error: 'Choose a valid field in the To-do table.'
But Codeunit 104055 doesn't reference To-Do table at all. I was stumped for a bit, but then I noticed I could see a longer stack trace, and deeply buried was this:
That clued me in. I ended up needing to delete most of the records in the Outlook Synch tables (Particularly 5303 Outlook Synch. Filter) and just migrate them manually later. When those tables are emptied out, the codeunits can go just fine.
I will say, when I ran the Upgrade tools for a database with multiple companies, however, I ran into a bug AFTER that about:
This was only happening during the Object Deletion Marking process. I ended up just commenting that out, since I knew which objects to delete regardless of the Version tag. Hope this helps!
(Let me know if this solves your problem with a reply, I'm curious what sort of issues people hit when upgrading.)
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
Thank you a million times! That did help solve the issue (I received the same error after, just had to sync the tables again)!
You just exported and imported those rows in the Outlook Synch tables?
Thanks!!
Likely, there is supposed to be a "correct" way, but you'll have to review the Upgrade Toolkit code for the Outlook tables and see if there's anything special to do.
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
Work around for this is the Parallel and Serial Execution Modes for Upgrade Codeunit Functions
https://msdn.microsoft.com/en-us/librar ... 8(v=nav.80).aspx
Best of luck!