Skip to main content

Notifications

Announcements

No record found.

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 14,600 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 63,992 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

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,835 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,526 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans