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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

OData Integration: string does not contain definition for EntityTracker

(0) ShareShare
ReportReport
Posted on by
Hi, 
 
I am trying to implement Odata Integration with the help of the following article:
 
 
But when I try to build the Utility Project, the following error shows up:
 
Can someone please guide as to what changes I should make to make this work?
 
I only changes the following line in the Utility Class:
 
public const string MetadataDocumentUri = https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/$metadata/;
 
Help would be highly appreciated. Regards.
I have the same question (0)
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    Judging from the error message, maybe the first parameter of this method EntityTracker should not be of string type, but you defined MetadataDocumentUri as string type and passed the parameter, so the system will have this error, the parameter type that the system wants to get is Microsoft.OData.Client.DataServiceContext instead of string.
    Best regards,
    Kevin
  • Martin Dráb Profile Picture
    238,782 Most Valuable Professional on at
    Your code shouldn't even compile. You seemed to mean this instead:
    public const string MetadataDocumentUri = "https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/$metadata";
  • Arif Hussain Profile Picture
    214 on at
     
    Did you find any solution to this problem as I am also getting the same issue while creating and building the OData connected services?
  • Suggested answer
    Arif Hussain Profile Picture
    214 on at
    Hi ,

    I was getting the same issue that you shared and the reason is due to creating a console application and then configuring OData Connected Service. I solved it by first creating a class project not console application then configured OData Connected Service. Plus, when I added the service address and press next, the list of entities was displayed and I selected just one of that entities. 

    Note: You can still access all entities in the code. 

    I did these two steps and it worked really fine for me. I recently consumed OData data entities using OData connected service in .Net Console Application and it really worked for me. 

    Hope it will help for you too. If not, please let me know. 
  • Veeraraj Profile Picture
    22 on at
    I have the same issue as well, Could you guys managed to fix this issue. Please suggest.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 514 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 390

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans