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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

OData Client Code Generator

(1) ShareShare
ReportReport
Posted on by 96

I have created a OdataUtility Project in which i have installed OData V4 client code generator. Then added ODataClient.tt file and then i need to build the project to generate proxy classes for data entities but after  building this project getting this following error in ODataClient.cs file generated by OData V4 client code generator:
CS1061 'string' does not contain a definition for 'EntityTracker' and no accessible extension method 'EntityTracker' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)
Error CS1503 Argument 1: cannot convert from 'string' to 'Microsoft.OData.Client.DataServiceContext' ODataUtility 

As there are lots of code whenever i'm trying to do any modification visual studio stop working and gets closed.

pastedimage1653574123068v1.png

I have the same question (0)
  • PremaKumar Profile Picture
    5 on at

    Hi Megha,

    We are also facing the same issue,Request your help on this to provide the solution that worked for you,So that it saves us a lot of time.

    Thanks in advance :-)

  • Steve Briggs Profile Picture
    20 on at

    I'm having the same issue :( You have any luck figuring this out yet?

  • alex_li Profile Picture
    60 on at

    Try to change value type from string to Resources in ODataUtility.cs

  • Pupadhyay Profile Picture
    85 on at

    Hi ,

    Is this issue get resolved ? I am also getting same issue.

    pastedimage1680253744322v1.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans