Object <Business Role> cannot be deleted while objects of type <Business Roles> are still assigned.

Hello,

We are having some issue to delete a Business role.
In fact, we get the following message error :

Error: [810008] Could not save object XXXX.
[810043] Object <XXXX> cannot be deleted while objects of type <Business Roles> are still assigned.

   at VI.DialogEngine.DialogEngine.DeleteDocument(IDocument[] documents, Schedule schedule)
   at VI.MVC.Document.Delete()
   at VI.MVC.SingleDBObjectDocument.OnDelete()
   at VI.DB.Implementation.SingleDbObject.Save()
   ---- Start of Inner Exception ----
   at VI.DB.Implementation.SingleDbObject.Save()
   at VI.DB.Implementation.SingleDbObject._RIDeleteCheck()

We already have checked the table PersonWantsOrg, PersonInOrg and PersonInBaseTree but didn't see any reference to this object.

What other dependencies do we need to look at? 
Do you know a way to overcome this ?
How can I raise the log message in order to have more information ?

Thanking you in advance,

Best Regards,

Grevelinger Mike.

  • Hi,

    You get this error when deleting a Person or a Business Role? If its the latter, is the Business Role published to the IT shop?

    HTH
    Kunal
  • In reply to Kunal.Mittal:

    Hello,

    We are getting this error when deleting a Business Role.
    It doesn't seems to be published to the IT shop.
    When I do "Business role overview", I only see this Business Role attached to an "IT Configuration settings".

    Thanking you in advance,

    Mike.
  • In reply to mike.grevelinger:

    Can you share a screenshot of the overview? If the role is attached to IT operating data then it might be worth a try to remove it from that first then try deleting the role
  • In reply to Kunal.Mittal:

    Hi,

    Here is the "Business role overview".



    It seems that I'm not able to delete it. Can you tell me how to do it please ?

    Best Regards.

  • In reply to mike.grevelinger:

    Hi,

    It seems the role is assigned to some IT operating data. Try removing the role from there first then deleting the role.

    HTH
    Kunal
  • In reply to Kunal.Mittal:

    Hi,

    I don't see where I can remove this IT operating data.
    In fact, it's some UID field (UID_ADSContainer, UID_ServerADSHome, UID_ServerADSProfile,UID_TSHomeServerADS, UID_TSProfileServerADS).
    Every Business roles have this IT configuration setting.
    So, I don't think we can delete this.

    Best Regards,
    Mike.
  • In reply to mike.grevelinger:

    Hard to tell without looking in more detail, but you can try a deep delete from object browser. In object browser, open the business role (Org table) then in the menu on top click on Object -> Delete (including dependent objects). OB will then show a list of objects it will delete and ask for confirmation, maybe that list of objects will give you a clue.

  • In reply to Kunal.Mittal:

    Hi,

    I found the solution thanks to you.
    In fact, when I used the option " Delete (Including dependent objects)", I saw that an other business Roles have as parent the one that I wanted to delete.
    Once I have deleted this reference, I was able to delete the Business Roles.
    It's strange that in the overview we can't see these dependancies.

    Thank you for your help,

    Best regards,

    Grevelinger Mike.