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

Announcements

No record found.

News and Announcements icon
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,200 Super User 2026 Season 1 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,200 Super User 2026 Season 1 on at

    www.waldo.be/.../

    svirlan.com/.../

  • Suggested answer
    YUN ZHU Profile Picture
    98,637 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

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 1,840 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,080 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 846 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans