Sync-NAVTenant : When the TableSynchSetup.Mode::Move mode is used in an upgrade codeunit for synchronizing a table, the structure of the upgrad e table must match the original table. The fields and the primary key of the upgrade table must match those in the original table. The following errors must be fixed: The definition of the upgrade table 'UPG-Extended Text Line' must match the definition of the old table 'Extended Text Line'. Upgrade table 'UPG-Extended Text Line' cannot have fields which have a different design in the original table 'Extended Text Line': 'Text'. At line:1 char:1
[TableSyncSetup] TableSyncSetup(VAR TableSynchSetup : Record "Table Synch. Setup") DataUpgradeMgt.SetTableSyncSetup(DATABASE::"Extended Text Line",70500,TableSynchSetup.Mode::Move);
Answers
Open your Upgrade table again in the dev environment, and save it with sync mode force.
Then check your call to SetTableSyncSetup if the two table ID fields are correct.
Then try again.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
then I modified UPG Custom Report Layout primary key to code and force compiled. I got the below error in syncNAVTenant.
Is there any solution for this?
Sync-NAVTenant : Changes to the tenant database could not be applied. Affected tables will not be available.
The first error was:
When the TableSynchSetup.Mode::Move mode is used in an upgrade codeunit for synchronizing a table, the structure of the upgrade table must match the
original table. The fields and the primary key of the upgrade table must match those in the original table.
The following errors must be fixed:
The definition of the upgrade table 'UPG Custom Report Layout' must match the definition of the old table 'Custom Report Layout'.
Data in the fields 'ID' in the original table 'Custom Report Layout' cannot be saved in the upgrade table 'UPG Custom Report Layout'. Please make sure
that listed fields are present in the upgrade table and they match equivalent fields in the original table in terms of their design.
Original table 'Custom Report Layout' cannot have fields which do not exist in the upgrade table 'UPG Custom Report Layout': 'ID'.
The upgrade table UPG Custom Report Layout cannot have fields that do not exist in the original table, Custom Report Layout. The following fields are
not allowed: Code.