Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamics CRM metadata broken due to missing EntitySet owners #51

Closed
davidmoten opened this issue Sep 21, 2020 · 3 comments
Closed

Dynamics CRM metadata broken due to missing EntitySet owners #51

davidmoten opened this issue Sep 21, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@davidmoten
Copy link
Owner

davidmoten commented Sep 21, 2020

As mentioned in #51 this is not a problem with odata-client but rather a problem with Dynamics published metadata in that generating code fails due to the missing EntitySet owners. This link suggests that the owners EntitySet path is for internal (to Microsoft) use. In that case it seems like the appropriate action is to add an empty EntitySet owners to the metadata.

@davidmoten davidmoten added the enhancement New feature or request label Sep 21, 2020
@davidmoten
Copy link
Owner Author

I suspect this problem with the metadata will stick around so I might add an option in the odata-client-maven-plugin to handle missing EntitySets by auto-creating empty EntitySets if there is one referenced. Something like <autoCreateEntitySets>true</autoCreateEntitySets>...

@davidmoten
Copy link
Owner Author

Might be better to optionally drop NavigationPropertyBindings which have a target (EntitySet) that does not exist. For the plugin: <failOnMissingEntitySet>false</failOnMissingEntitySet>.

@davidmoten
Copy link
Owner Author

option to ignore this problem with bad NavigationPropertyBinding Target added to odata-client-maven-plugin in master, closing for now on the assumption that owners is for internal use in Microsoft. Discussion continuing at https://stackoverflow.com/questions/63984862/why-is-the-entityset-owners-not-present-in-dynamics-crm-metadata/63991650?noredirect=1#comment113189327_63991650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant