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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

deleted a table but Build still shows error of that table

(1) ShareShare
ReportReport
Posted on by 552
Hi guys,
 
In my Visual Studio, I've deleted table, along with its data entity, staging, security key, basically all the related object.
 
I've delete it by put these object in my Project then delete. Check in AOT, there is no such object anymore.
 
But may I know why, when Build, I'm still seeing the same error like the table is not yet deleted ?
 
If I check in my folder K:\AosService\PackagesLocalDirectory\<modelname>\XppMetadata\<model>AxTable, it is still there. So how to acually delete those ?
 
Do I need to check in ? However, actually I don't want to check in and make this also deleted in Source Control. 
 
The story behind these is some changes happened which I don't know how it that Source control, some structure changes (which is not me who change it). I thought when Get latest from Source control, I will get the correct one, instead, I get errors. So that's when I decided I want to delete all these first in my local, so I can continue my work. 
 
Can I do that ? or I really need to check in my deletion although I'm intended to delete in my local only, so the next Build no errors.
 
 
Any clue what that I missed ?
Thanks
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,803 Most Valuable Professional on at
    You removed source code, but you still have application binaries generated from the source code. You need to build the model (not just the project) to create binaries from your current code (where the table doesn't exist anymore).
     
    Checking into the source control has nothing to do with it. The IDE work with the source code and binaries that you have locally; whether the same version of source code is stored on some source control server isn't relevant in this case.
  • Ken Manhattan Profile Picture
    552 on at
    Hi Martin,
     
    Yes, the Build that I'm mentioned right after put the object in my Project then delete, is the Build of the model with synchronize table such as this ->
     
    Agreed on this "Checking into the source control has nothing to do with it. The IDE work with the source code and binaries that you have locally" as this is also my understanding.
     
    I'm currently Build again, same as before, just tick my model and the setting as the picture. It is still in progress, lets c how it goes,
     
    Coz currently I have no clue what is wrong, Does finding the object (XML) still in PackageLocalDirectory suggested some mistake in my settings ? Workspace ? I can't screenshot now since it is still Building, so maybe need to wait.
     
    Thanks
     
     
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,390 Super User 2025 Season 2 on at
    Hi,
     
    Yes you must delete the table from the physical location to avoid errors.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Martin Dráb Profile Picture
    237,803 Most Valuable Professional on at
    If you still have the XML file under PackageLocalDirectory, then the object wasn't really deleted. You'll need to delete it before rebuilding the model.
  • Ken Manhattan Profile Picture
    552 on at
    Delete manually from File explorer ?
     
    I can, but may I know why it is behave like that ? 
     
    When delete the objects in my Project ( inside VS > Solution explorer), am pretty sure click Yes when there is pop up asking me "do you want to delete it permanently". And did refresh model look into the AOT again, searching for the object and it's none (as expected).
     
    Sorry, just little irritated because at first I thought this is simple thing, and I thought I understand how it works :((
     
  • Verified answer
    Martin Dráb Profile Picture
    237,803 Most Valuable Professional on at
    Where is the file you're talking about? Aren't you looking into a wrong folder, such as XppMetadata?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans