OData / ODataConnectedService

A Visual Studio extension for generating client code for OData Services
Other
81 stars 44 forks source link

Unable to parse SAP OData v4 csdl #184

Open Tiberriver256 opened 3 years ago

Tiberriver256 commented 3 years ago

Describe the bug

First error was "The attribute 'BaseTerm' was not expected in the given context."

I removed that section from the csdl and then started getting errors about the type Edm.PropertyPath

Version of the Project affected

ODataConnectedService v0.11.1 VisualStudio Version v16.4 Microsoft.Odata.Client v7.6.x

To Reproduce

See the attached edmx. This is part of a standard include for all SAP OData v4 services so, unfortunately, even though our service is very simple (two entity sets) we can't use this tool until the reference includes SAP throws in by default are all working and parseable.

SAPODataV4Vocabularies.xml

Tiberriver256 commented 3 years ago

Just an update.

I was able to get past the error about the 'BaseTerm' without modifying the csdl by selecting the option to ignore unknown attributes.

Also for better testing / repro here's the original root metadata.xml and all the reference models it includes:

metadata.zip