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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

What will happened if we create an object, delete it, then create again with the same name ?

(0) ShareShare
ReportReport
Posted on by 558

Hi,

When we create an object, perhaps a class or a table in D365 FO, then check-in to Source Control, then we decided to delete it, check-in. In AOT it will be removed, but in Source control will have flagged "deleted". 

Then after a while, I've decided to create new class or table with the same name, is this allowed ? what will happened in source control ? Or should I "undelete" from source control while the new (latest) class or table has nothing like the one deleted, it may probably serve different purpose or logic, it is just we want to use "again" the object name.

Thanks,

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    240,020 Most Valuable Professional on at

    It's allowed - simply create the new object and check it in. I'm not aware of any problem with it.

    And you can simply try it to see it for yourself.

  • GirishS Profile Picture
    27,843 Moderator on at

    Hi Ken,

    After deleting the object, check in the model to source control. After sometime you can create with same object name and i think it wont throw error.

    Thanks,

    Girish S.

  • Verified answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi Ken, Yes, it is allowed and I think your concern is that even though visual studio will not throw any error, what will happen when you have two objects (one deleted) under same name in source control. I believe there won't be issue as although both objects have same name it would still be treated as different object. You don't need to undo the delete of first object.

  • Ken Manhattan Profile Picture
    558 on at

    Hi Mohit,

    Yes, that is exactly what my concern is.

    Thank you very much for your share, guys.

  • Martin Dráb Profile Picture
    240,020 Most Valuable Professional on at

    There aren't two objects that need to be distinguished. There was an object (file), it was deleted and it ceased to exist (just the history is kept for it). Then another object (file) was created with the same name. They never existed at the same time.

    Undoing the delete would make sense only if you wanted to restore the original file, which is not what you want.

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

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 412 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 396

#3
Martin Dráb Profile Picture

Martin Dráb 261 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans