Skip to main content

Notifications

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.
  • Veeraraj Profile Picture
    Veeraraj 22 on at
    OData Integration: string does not contain definition for EntityTracker
    I have the same issue as well, Could you guys managed to fix this issue. Please suggest.
  • Suggested answer
    Arif Hussain Profile Picture
    Arif Hussain 159 on at
    OData Integration: string does not contain definition for EntityTracker
    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. 
  • Arif Hussain Profile Picture
    Arif Hussain 159 on at
    OData Integration: string does not contain definition for EntityTracker
     
    Did you find any solution to this problem as I am also getting the same issue while creating and building the OData connected services?
  • Martin Dráb Profile Picture
    Martin Dráb 230,868 Most Valuable Professional on at
    OData Integration: string does not contain definition for EntityTracker
    Your code shouldn't even compile. You seemed to mean this instead:
    public const string MetadataDocumentUri = "https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/$metadata";
  • Suggested answer
    Kevin Xia Profile Picture
    Kevin Xia Microsoft Employee on at
    OData Integration
    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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans