Skip to main content

Notifications

Business Central forum
Suggested answer

Error on Upgrading Customized C/AL Application to Microsoft Base Application version 22

Posted on by 4

Hi.

I am trying to run upgrade process from BC 14CU52 into BC 22.7 version. I am getting error on when I tried to run Start-NAVAppDataUpgrade for the Base Application. I attached the all errors from event viewer. We don't have blank profile also. This is the function. Please let me know if you need more detail.

 

procedure DisableBlankProfile()

var

  AllProfile: Record /All Profile/;

begin

  if AllProfile.Get(AllProfile.Scope::Tenant, '63ca2fa4-4f03-4f2b-a480-172fef340d3f', 'BLANK') then

   if AllProfile.Enabled then begin

     AllProfile.Enabled := false;

     AllProfile.Modify();

  end;

end;

////////////

  • Suggested answer
    HV-22051424-0 Profile Picture
    HV-22051424-0 4 on at
    Error on Upgrading Customized C/AL Application to Microsoft Base Application version 22
    But the function is not looking like something to cause an error. Early stage there is upgrade tag control and I run the SetUpgradeTag function for that tag before the upgrade but I am still getting this error message. If you check BC22 codes, you will understand what I mean.
     
  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 12,769 User Group Leader on at
    Error on Upgrading Customized C/AL Application to Microsoft Base Application version 22
    HI,
     
    in the process while creating table field only apps you have to update the profile to correct references.
     
    Hope you have done so.
     
    I have a 3-part video series of doing this with customization in C/AL. Have a look -
     
     
    Regards,
    Saurav Dhyani
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 62,529 Super User on at
    Error on Upgrading Customized C/AL Application to Microsoft Base Application version 22
    Never encountered this problem. However, if it is a Profile problem, you can try importing the standard Profile into the pre-upgrade environment and then test it again.
     
    Hopefully other experts can give you better advice.
     
    Thanks.
    ZHU

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284,217 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,202 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans