When I create a custom entity, and refresh the entity list, it tells me that it is "orphan" and it is removed. What are the conditions for this entity to be marked as "orphan"?
Otto,
This is because your target entity table in SqlDictionary has Flags value 0. And actually this is pretty normal, if there's not entity for that table before. To resolve this issue, you only need to synch the database in Visual Studio.
This feature is included in latest releases , probably 8.0 or 8.1 where they check for entities/composite entities in Definition group, templates etc . If those entities are present in Definition group/data project and entity list but not present in SQLDictionary then those are marked as orphan and deleted from entity list. Check method removeOrphanEntities of class DMFDataPopulation more all the cases.
Wasn't the entity deleted from AOT?
The message in the environment:
1) Entity List was successfully refreshed
2) Orphan entities removed from DMFEntity table: "Entity Name" (custom entity name)
I'll update this reply with the exact version of D365FO as soon as possible
Hi Otto,
Can you share the full error message? What exact version of Dynamics 365 for Finance and Operations are you using?
Probably you used some values for the Data entity properties PublicCollectionName, PublicEntityName or the label which are not unique.
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.
Congratulations to a top community star!
In our never-ending quest to help the Dynamics 365 Community members get answers faster …
Welcome to the next edition of the Community Platform Update. This is a status …
Stay up to date on forum activity by subscribing.