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 11,260 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,133 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

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,663 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,741 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans