Book a Demo

Author Topic: Find Orphans has wrong results (build 1528)  (Read 11442 times)

vladap

  • EA User
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Find Orphans has wrong results (build 1528)
« on: December 18, 2021, 02:04:08 am »
Dear Community,

I am now facing a strange problem. If I go to Find Orphans options I received many results , where Objects actually exists in the Diagram.
If I right click these results , the Diagrams are listed and I can go there and see my Object in the Diagram. But still this Object is marked as Orpahant.

So I wrote my own Find Orphans select

Code: [Select]
SELECT obj.Name,obj.Object_ID, dia.Diagram_ID FROM
t_object obj left join t_diagramobjects dia on obj.Object_ID=dia.Object_ID
where obj.Object_Type != 'Package' and dia.Diagram_ID is NULL
order by dia.Diagram_ID;

and same results. If I go to the t_diagramobjects table , I can´t find these object (thats why we have these results)  But somewhere this information exist, if CTR+U find these diagrams (what is the key here? )

thanks for any tips, We have 1700 Orphans and false Orphans in our model and we would like to clean it somehow

thanks,
Vladimír

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find Orphans has wrong results (build 1528)
« Reply #1 on: December 18, 2021, 02:24:53 am »
Execute a project integrity check and test again.
This might just solve this problem.

Geert

vladap

  • EA User
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Re: Find Orphans has wrong results (build 1528)
« Reply #2 on: December 18, 2021, 02:49:09 am »
thanks, for the Advice, I tried that and Ingegrity check is ok. Still around 17k worng results

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find Orphans has wrong results (build 1528)
« Reply #3 on: December 18, 2021, 03:00:32 am »
The only way an element can be shown on a diagram, is because there is a record of it in t_diagramobjects.

No record means no element on a diagram. There must be something else going on.

Geert

vladap

  • EA User
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Re: Find Orphans has wrong results (build 1528)
« Reply #4 on: December 19, 2021, 02:18:21 am »
Yeah , that was my knowledge so far too :) . But in this case no record in that t_diagramobjects table , but  pressing CTR+U finds it in diagrams and it is really there.
I will think about it during christmas , maybe I will figure it out and bring answer here :)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Find Orphans has wrong results (build 1528)
« Reply #5 on: December 19, 2021, 02:33:43 am »
These might be classified object. I was puzzled by that once too.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Find Orphans has wrong results (build 1528)
« Reply #6 on: December 19, 2021, 03:50:53 am »
These might be classified object. I was puzzled by that once too.

q.

Yep, probably this; well spotted.
The Ctrl-U dialog indicates whether it is used as classifier, or as link.

Geert

vladap

  • EA User
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Re: Find Orphans has wrong results (build 1528)
« Reply #7 on: December 19, 2021, 05:33:20 am »
Guys you are probably right, the objects which are wrongly represented as Orphants for me are (ctrl+U) Usage Type - Classifier .
But I still dont know how to clean all findings except these :) 

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Find Orphans has wrong results (build 1528)
« Reply #8 on: December 20, 2021, 09:18:23 am »
As already established, all that search tells you is that the object doesn't appear on any diagrams.

I wouldn't recommend any wholesale deleting of those results. There are many other ways that they can be referenced. Aside from classifiers which were already mentioned, relationships, tagged values.

A starting point for determining if they have any use would be selecting each and then using the traceability window.

vladap

  • EA User
  • **
  • Posts: 79
  • Karma: +0/-0
    • View Profile
Re: Find Orphans has wrong results (build 1528)
« Reply #9 on: December 20, 2021, 08:51:09 pm »
ahh ok, so far I lived in the idea, that cleaning unused diagram is easy steph with Finding all Orpahns and delete them, no I understand its more complicated, thanks :)