web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Odata client V4 compilation error

(0) ShareShare
ReportReport
Posted on by

Hi,

I am getting below error after generating Odata client proxy v4 on compilation, any suggestion whats need to be done ?

I have created an DataEntity wanted to access in C# as one of the step is to generated Odata client proxy I have install and generated but after VS restarted as the process but when I complied the VS project getting below error  

Error    CS0234    The type or namespace name 'EdmxReader' does not exist in the namespace 'Microsoft.OData.Edm.Csdl' (are you missing an assembly reference?)

*This post is locked for comments

I have the same question (0)
  • Lauras U Profile Picture
    959 on at

    Had similar problem. Solved by downgrading *Odata* NuGet packages from 7.4.0. to 6.19, updating simple.odata.client to 4.29. Then regenerated Odata.cs file by saving Odata.tt

  • Community Member Profile Picture
    on at

    Same problem here. Trying to downgrade.

  • Community Member Profile Picture
    on at

    Error CS0117 'CsdlReader' does not contain a definition for 'Parse'

  • Piyush Adhikari Profile Picture
    2,546 on at

    Sir

    Can you share me the link which you are following for consuming Odata services? i need to do the same.

  • Community Member Profile Picture
    on at

    Solution is next:

    1. Make sure you are on Framework 4.6.1

    2. Add Nuget Extensions  & Tools for Connected services

    3. Connect the service to D365FO which will use T4

    4. Compilation or reference errors occur;

    5. Add Microsoft.Data.OData version 5.8.3 and add Microsoft.Client 7.4.4 through Nuget.

    6. Also verify Microsoft.Edm and Microsoft.Odata referenced to your project

    7. Now rename EmdlReader to CsdlReader in the generated project.

    8. Now you can compile.

    Can happen that on point 7 your VS crashes, better is to use NotePad outside VS.

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans