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 CRM (Archived)

metadata contains a reference that cannot be resolved

(0) ShareShare
ReportReport
Posted on by

Hello,

I am getting error 
Metadata contains a reference that cannot be resolved: 'sftplah.api.crm8.dynamics.com/.../Organization.svc'.

when i run the following code

Dictionary<string, string> attributesData = new Dictionary<string, string>();
RetrieveAllEntitiesRequest metaDataRequest = new RetrieveAllEntitiesRequest();
RetrieveAllEntitiesResponse metaDataResponse = new RetrieveAllEntitiesResponse();
metaDataRequest.EntityFilters = EntityFilters.Entity;

metaDataRequest.RetrieveAsIfPublished = true;

// Execute the request.

metaDataResponse = (RetrieveAllEntitiesResponse)organizationService.Execute(metaDataRequest);

var entities = metaDataResponse.EntityMetadata;
return entities;

*This post is locked for comments

I have the same question (0)
  • ashok teja Profile Picture
    290 on at

    Hello Bhavya, 

    I'm assuming you're trying to do this operation on dynamics 365 instance, can you please check your referenced dll version number for Microsoft.Xrm.Sdk and make sure to use 8.2 version. 

    If it is helpful, Please mark as verified.

    Thanks 

    Ashok J

     

  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at

    Hi Bhavya Try to use the latest version of the DLL. Can you please check the event viewer or tracing for further details?

    What happens when you set RetrieveAsIfPublished to false?

    Did you try by retrieving specific entity?

    Best Wishes, Raz

  • Bhavya Kesaria Profile Picture
    on at

    Thanks Its Working :)

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi ,

    This error is coming due to network proxy. Sometimes you checked use a proxy server for your LAN in internet explorer browser settings . So you need check whether you are using proxy server by following way.

    1) Go to internet explorer settings

    2) Select Internet Options

    3)Go to connection Tab

    4)Click on LAN settings

    5) in LAN settings just unchecked the proxy server.

    Hope  this will help. Please mark as answer if your issue get resolve.

    Thanks

    Goutam

  • Saddamk206 Profile Picture
    777 on at

    Update Microsoft.Xrm.Sdk.dll

    OR

    Use this code above connection string

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans