Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How to delete an objec...
Finance forum
Answered

How to delete an object in AOT

Posted on by

Hi,

I in learning process of AX development. Recently created new project, and changed the MODEL to Demo Data Suite.

After 2nd thought I want to delete a new object which I just created, but every time I want to delete, error :

tmp1.GIF

How to delete it then ?

Thanks,

  • Hardaway Profile Picture
    Hardaway on at
    RE: How to delete an object in AOT

    Hi Andre,

    How did you manage to change the model to Demo Data Suite? By create new project, then change the model in Property to Demo Data Suite. At first the chosen model seems to look "unharm" to be a test model. Then add new item. This is the item which I want to delete after, but turn out error.

    Yes, my plan is actually to "not check in" those testing objects. That's why actually I'm using different Model which used in my organization / company. I'm not even connected to my Source control for this learning process.

    Anyhow, better create my own model then.

    Thank you all for the advices.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,554 Super User 2024 Season 2 on at
    RE: How to delete an object in AOT

    Hi Hardaway,

    Like Nikolaos mentioned, you should only work in your own new models as you can't overlayer the standard application elements. How did you manage to change the model to Demo Data Suite?

    If you want to try out things, you can also consider relaxing the overlayer restriction: docs.microsoft.com/.../refactoring-over-layering

    The purpose for this relax option is for the code upgrade form AX 2012 or a POC when there are items not extensible yet. In the last case, you have to create extensibility requests eventually to be able to deploy a solution in a real customer environment.

    Did you check in your object in DevOps? In that case, you have to ensure it will also be removed from DevOps as the workaround described by Nikolaos is not recognized in your source control to also delete the object.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: How to delete an object in AOT

    You can delete it via the file system in C:\AOSService\PackagesLocalDirectory\[packagename]\[modelname]\[objecttype]\[objectname]

    Make sure your Visual Studio is closed, and all D365 related services are stopped (w3wp.exe, batch service, SSIS service, MR service).

    You should do development only in packages / models that you have created.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,554 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans