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...
Answered

How to remove field in Development Environment

(0) ShareShare
ReportReport
Posted on by 307

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 ?
  • Verified answer
    Mohana Yadav Profile Picture
    61,260 Super User 2026 Season 2 on at

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

  • Verified answer
    Govinda Kumar Profile Picture
    2,310 Moderator on at

    Hi Peter Ng,

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

    pastedimage1681125988260v2.png

    Regards

  • Hoang Ng Profile Picture
    307 on at

    Thanks Eater, Mohana,

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

  • YUN ZHU Profile Picture
    104,131 Super User 2026 Season 2 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 631 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 409 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 222 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans