Skip to main content

Notifications

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
  • Suggested answer
    dschulze Profile Picture
    6 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.
  • 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.
  • Verified answer
    Saurav.Dhyani Profile Picture
    14,314 Super User 2025 Season 1 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
  • 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?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,079 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,860 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans