Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

How to remove field in Development Environment

Posted on by 295

I added new field "Not Purchased" in table Item in Dev Environment (On Premise)

tableextension 50113 "TLC ITem Ext" extends Item
{
    fields
    {
        field(50001; "Not Purchased"; Boolean)
        {
            Caption = 'Not Allow Purchased';
            DataClassification = CustomerContent;
        }
    }

    var
        myInt: Integer;
}
Then I recognized that it is not necessary to add this field because there is a field "Purchase Blocked"
When I tried to delete the code, and Run Debugging to Dev Environment, it showed the error: Reason: TableExtension TLC ITem Ext :: The field 'Not Purchased' cannot be located. Removing fields is not allowed.
Is there any way to remove the field on Dev Environment or I need to restore a new DB ?
  • YUN ZHU Profile Picture
    YUN ZHU 73,333 Super User 2024 Season 2 on at
    RE: How to remove field in Development Environment

    Hi, just adding some info.

    If this is a SaaS production environment, you can use the following method to skip this error.

    https://yzhums.com/17671/
    https://yzhums.com/18755/

    Hope this helps as well.

    Thanks.

    ZHU

  • Hoang Ng Profile Picture
    Hoang Ng 295 on at
    RE: How to remove field in Development Environment

    Thanks Eater, Mohana,

    After set schemaUpdateMode: "ForceSync" in the launch.json,  I could debug without error.

  • Verified answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: How to remove field in Development Environment

    Hi Peter Ng,

    You have to set schemaUpdateMode: "ForceSync" in the launch.json like Mohana said

    pastedimage1681125988260v2.png

    Regards

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,127 Super User 2024 Season 2 on at
    RE: How to remove field in Development Environment

    If it is dev environment then use ForceSync to install the new app.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans