ODataConnectedService icon indicating copy to clipboard operation
ODataConnectedService copied to clipboard

Unable to parse SAP OData v4 csdl

Open Tiberriver256 opened this issue 5 years ago • 1 comments

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 avatar Dec 12 '20 23:12 Tiberriver256

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

Tiberriver256 avatar Dec 13 '20 18:12 Tiberriver256