Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

The entity with a name = 'XXXXX' was not found in the MetadataCache.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Forum,

I'm getting that error when trying to use a Many to Many Entity Relationship, the entity relationship exists in the Organization and I can see it using the Metadata Browser but in the actual portal code it gives me the error. 

I also tried creating the "EntityInfo.xml" file by using code shown here: https://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.messages.retrieveallentitiesrequest.aspx

The EntityInfo.xml doesn't contain the N:N relationship I created. Either if I use the True or False flag in the  RetrieveAsIfPublished.

I'm trying to use the N:N relationship in a Query Retrieve and I have other N:N relationships that work perfectly fine.

Any information/help would be greatly appreciated.

Thanks,

G

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The entity with a name = 'XXXXX' was not found in the MetadataCache.

    Done it same result

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: The entity with a name = 'XXXXX' was not found in the MetadataCache.

    Hello,

    Try to delete that relationship and create it again.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: The entity with a name = 'XXXXX' was not found in the MetadataCache.

    Yes it is.

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: The entity with a name = 'XXXXX' was not found in the MetadataCache.

    Just to confirm the obvious - is the relationship searchable?

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…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans