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

Notifications

Announcements

Community site session details

Community site session details

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

Extension not being updated

(0) ShareShare
ReportReport
Posted on by 436

Hello everyone,

I have created some custom tables and pages in Business Central Sandbox to achieve a particular functionality. After I have ran the code, the extension is now installed in business central. The problem I am facing is that, when I'm now changing any table's primary it is giving me an error that "we cannot update the extension because of 'Table 50100 Purchase Requisition Header :: Changing fields for the key 'PK' is not allowed". I tried forcesync but it is not working in my case and I cannot delete the extension because I contains a lot of data. Kindly help. Thankyou

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,083 Super User 2025 Season 2 on at

    you have to create new table with updated key and write upgrade codeunit to move the data from first table to new table

    learn.microsoft.com/.../upgrade-codeunits

  • Muhammad Anas Naeemi Profile Picture
    436 on at

    Hey mohana, is there any example of this?

  • Suggested answer
    Mohana Yadav Profile Picture
    61,083 Super User 2025 Season 2 on at

    www.waldo.be/.../

    svirlan.com/.../

  • Suggested answer
    YUN ZHU Profile Picture
    97,089 Super User 2025 Season 2 on at

    Hi, just adding some info, hope this helps as well.

    In-depth testing for Force Sync mode in Production Environment (Renaming tables, Renaming fields, Changing field type…)

    https://yzhums.com/18755/

    Developers can write faster upgrade code (New DataTransfer data type)

    https://yzhums.com/29604/

    Thanks.

    ZHU

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,202

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,210

#3
YUN ZHU Profile Picture

YUN ZHU 1,115 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans