Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Answered

Metadata contains reference that cannot be solved error

Posted on by 260

Hello,

I am trying to fetch all the entities list of mscrm using windows application. But i am getting following error

Metadata contains a reference that cannot be resolved: 'https://.../XRMServices/2011/Organization.svc?wsdl=wsdl0'.

Going deeply found the inner exception message saying

The maximum nametable character count quota (16384) has been exceeded while reading XML data. The nametable is a data structure used to store strings encountered during XML processing - long XML documents with non-repeating element names, attribute names and attribute values may trigger this quota. This quota may be increased by changing the MaxNameTableCharCount property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 1298.

Please provide me any suggestion.

Categories:
  • Suggested answer
    gdas Profile Picture
    gdas 50,083 on at
    RE: Metadata contains reference that cannot be solved error

    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

  • Drashti Mehta Profile Picture
    Drashti Mehta 260 on at
    RE: Metadata contains reference that cannot be solved error

    Thanks Nadeeja,

    This is my code

    OrganizationService service = Connection.Instance.service;

                   RetrieveAllEntitiesRequest metaDataRequest = new RetrieveAllEntitiesRequest();

                   metaDataRequest.EntityFilters = EntityFilters.Entity;

                   metaDataRequest.RetrieveAsIfPublished = true;

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

                   String filename = String.Concat("entityresponse.xml");

    And the error is thrown after line RetrieveAllEntitiesResponse.

    Regards,

    Drashti

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,802 on at
    RE: Metadata contains reference that cannot be solved error
    Hi Drashti, Check this example which fetches a list of all entities. msdn.microsoft.com/.../gg327860.aspx Cheers, Nadeeja
  • Drashti Mehta Profile Picture
    Drashti Mehta 260 on at
    RE: Metadata contains reference that cannot be solved error

    Thanks Nithya,

    The problem is i want list of all the entities not the records of particular entity. So i dont know how to create fetch xml for the same. Also if fetch xml is created the error remains the same.

    Regards,

    Drashti

  • Verified answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Metadata contains reference that cannot be solved error

    Hi Drashti Mehta,

    Please refer the following threads.

    community.dynamics.com/.../218021

    community.dynamics.com/.../216809

  • Drashti Mehta Profile Picture
    Drashti Mehta 260 on at
    RE: Metadata contains reference that cannot be solved error

    Hi Nadeeja,

    I am using crm online sdk ver8.2.0 . I already get list via javascript code but i want to do using c# windows application.

    Regards,

    Drashti

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,802 on at
    RE: Metadata contains reference that cannot be solved error

    Hi Drashti,

    Which CRM SDK are you using? Is it the one that was released for your specific CRM Version?  If not, that could be the reason.

    Cheers,

    Nadeeja

    If the answer solves your problem, please mark as Verified. Thanks.

    My Blog: http://dyn365apps.com/ - Follow me on Twitter: https://twitter.com/dyn365apps

    LinkedIn: https://www.linkedin.com/in/nadeeja

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans