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

Community site session details

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

How to remove field in Development Environment

(0) ShareShare
ReportReport
Posted on by 297

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 ?
I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    60,979 Super User 2025 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.

  • Verified answer
    Govinda Kumar Profile Picture
    2,304 Moderator 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

  • Hoang Ng Profile Picture
    297 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.

  • YUN ZHU Profile Picture
    93,880 Super User 2025 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

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,225

#2
Sumit Singh Profile Picture

Sumit Singh 2,123

#3
YUN ZHU Profile Picture

YUN ZHU 1,813 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans