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 :
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 552

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
    236,640 Most Valuable Professional on at
    RE: What will happened if we create an object, delete it, then create again with the same name ?

    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,825 Moderator on at
    RE: What will happened if we create an object, delete it, then create again with the same name ?

    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,563 Moderator on at
    RE: What will happened if we create an object, delete it, then create again with the same name ?

    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
    552 on at
    RE: What will happened if we create an object, delete it, then create again with the same name ?

    Hi Mohit,

    Yes, that is exactly what my concern is.

    Thank you very much for your share, guys.

  • Martin Dráb Profile Picture
    236,640 Most Valuable Professional on at
    RE: What will happened if we create an object, delete it, then create again with the same name ?

    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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 796

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 530 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans