Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Extension not being updated

(0) ShareShare
ReportReport
Posted on by 382

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

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 Super User 2024 Season 2 on at
    RE: Extension not being updated

    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

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: Extension not being updated

    www.waldo.be/.../

    svirlan.com/.../

  • RE: Extension not being updated

    Hey mohana, is there any example of this?

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: Extension not being updated

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans