RE: duplicate names are visible in the related tab
Hello Ravi,
The described issue could be happening because relationships are tightly coupled (one being hardcoded from UCI end).
You could be seeing 2 relationships for the same:
1) That is a hardcoded UCI auto-created relationship, without metadata.
2) Another relationship that has the required metadata.
You might need to hide/remove the hardcoded relationship, to fix duplicate entries issue.
Similar issues have been seen on OOB vanilla instances also and we have raising a repair item to fix the same. (Additionally, similar issue had been fixed in past for Product entity).
The issue can be reproduced with any Vanilla Instance for Order-Invoice entities:
Repro Steps (*):
-------------
Login to CRM > Hvve CRM > Orders > Go to any record > Project Information form: On related tab there are 2 invoices
Actual Results:
--------------
Duplicate entity invoice in related tab
Expected Results:
---------------
Only one invoice
Reason:
-------------
Here we can see 2 relationships created between orders and invoices - one with metadata and other without it.
Relationship without metadata is UCI created and is hardcoded one, which is unnecessary and needs to be removed or hide.
Workaround/Fix:
------------------
UCI's hard coded relationship need to be removed.
Issue is registered as a code defect and will be fixed within future upgrade releases.
Example:


Let me know if further input is needed for this matter.
Thank you,
Dragos