web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Error while migrating from Business central 21.1 to Business central 24

(1) ShareShare
ReportReport
Posted on by 2
I have migrated my database from BC18.5 to 21 and now I want to migrate to BC24 but I am getting error in the sync step. 
I have published my System Application, Business Foundation, Base Application and Application app. Then I am trying to Sync using 'Sync -NavApp'.
I am getting the following error while running the command /Sync-NAVApp -ServerInstance CBBTEST24 -Tenant default -Name /Base Application/ -Version 24.0.16410.18056/
 
Error:- Could not upgrade the extension 'Base Application' by 'Microsoft' from version '21.1.48363.48638' to 
'24.0.16410.18056' for tenant 'default' and company '' due to the following error: 'You tried to invoke the Report object with the ID 50011 from the object Upgrade - BaseApp. An object with 
that ID does not exist in the current application compiled with emit version 24034 
 
Why is it referring to a custom report at id 50011? and how do I proceed further. Any help would be appreciated
I have the same question (0)
  • CU16051739-0 Profile Picture
    2 on at
    Error while migrating from Business central 21.1 to Business central 24
    I'm also getting the same error while upgrading from BC21.4 to BC24. Can someone help on this?
  • Verified answer
    Saurav.Dhyani Profile Picture
    14,362 Super User 2025 Season 2 on at
    Error while migrating from Business central 21.1 to Business central 24
    Hi,
     
    Can you please check the error message using PowerShell.
     
    This should tell you function name where error message is. You can check Function in Upgrade codeunit of Base App to see where that call is.
     
    Additionally, it might be an issue with CU0 of BC 24, try doing upgrade to BC 24 CU1.
     
    Regards,
    Saurav Dhyani
  • FJ-23051130-0 Profile Picture
    4 on at
    Error while migrating from Business central 21.1 to Business central 24
    Hi,
     
    I have a simular problem.
     
    Could not upgrade the extension 'Base Application' by 'Microsoft' from version '15.6.42646.0' to '24.0.16410.18056' for tenant 'default' and company '' due to the following error: 'You tried to invoke the Report object with the ID 50001 from the object Upgrade - BaseA
    pp. An object with that ID does not exist in the current application compiled with emit version 24034.
     
     
    I have now Unpublished all custom apps except Continias.
     
    There were a Invoice Report in one of my apps with id 50001, but as mentioned, this app is now unpublished. And I still get the same error.
    Now I don't know what to try.
  • Suggested answer
    dschulze Profile Picture
    25 on at
    Error while migrating from Business central 21.1 to Business central 24
    We also had this problem when updating a BC 21 to BC 24 version.
    Using the event log (see answer above), we were able to see that the error originated from the UpgradeReportLayouts() function of codeunit 104000 "Upgrade - BaseApp". Going further down, we can see that the function MigrateCustomReportLayouts() is called from codeunit "Feature - Report Selection", in which the table 9650 "Custom Report Layout" is accessed.
    We have therefore concluded that there is a problem with these custom report layouts. As these custom report layouts were not relevant for our customer, or could simply be recreated, we decided to switch to the local SQL server and delete individual (not all!) custom report layouts in table 9650 "Custom Report Layout" using an SQL script.
    The base app can then be updated with the previously failed command.
    We would be very happy if Microsoft (or Continia) could take another look at this issue in order to receive custom layouts in future updates.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,828

#2
Sumit Singh Profile Picture

Sumit Singh 2,617

#3
YUN ZHU Profile Picture

YUN ZHU 1,861 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans