Skip to main content
Microsoft Dynamics NAV forum

OData Connected Service "Microsoft.OData.Edm.Csdl.EdmParseException"

editSubscribe (0) ShareShare
Posted on by UG Leader


I'm having issues using OData Connected Service in a web api application. The extension is actually a failed build which can be fixed by replacing "EdmxReader" with "CsdlReader" in the following line in the generated code.
  return global::Microsoft.OData.Edm.Csdl.EdmxReader.Parse(reader);
However when then trying to retrieve data from the connected service an exception is thrown:

Exception:"Encountered the following errors when parsing the EDMX document: \r\nUnexpectedXmlAttribute : The attribute
'ConcurrencyMode' was not expected in the given context. : (842, 49)\r\nUnexpectedXmlAttribute : The attribute
'ConcurrencyMode' was not expected in the given context. : (1389, 49)"
ExceptionType: System.Exception {Microsoft.OData.Edm.Csdl.EdmParseException}

I was thinking of reverse engineering the official github code and then manually add the connected service from local code however would I have to package it into a vsix project to then import? I'm not familiar with Visual Studio extension development.

Thank you in advance!

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 282,978 Super User

Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans