FetchXMLBuilder icon indicating copy to clipboard operation
FetchXMLBuilder copied to clipboard

Can't get the newest of Metadata

Open simonlkch opened this issue 2 years ago • 1 comments

After create a new field on the CRM, i can't get the newest metadata, than this error happen

i have delete the cache on %appdata%\AppData\Roaming\MscrmTools\XrmToolBox\Metadata

restart the newest version of fetchxml builder and xrmtoolbox.

the new field still can't find


System.ServiceModel.FaultException<Microsoft.Xrm.Sdk.OrganizationServiceFault>:
'msevtmgt_Event' entity doesn't contain attribute with Name = 'pre_address' and NameMapping = 'Logical'. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=53423748, MinActiveRowVersion=53423748, MetadataInstanceId=44269882, LastUpdated=2022-09-26 03:59:54.650, OrgId=9059f229-f610-4007-bb68-1c96dc434088
mscorlib

Server stack trace: 
- System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
- System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
- System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
- System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
- Microsoft.Xrm.Tooling.Connector.CrmServiceClient.RetrieveMultiple(QueryBase query)
- Rappen.XTB.FetchXmlBuilder.FetchXmlBuilder.RetrieveMultiple(QueryBase query)
- Rappen.XTB.FetchXmlBuilder.FetchXmlBuilder.<>c__DisplayClass121_0.<RetrieveMultiple>b__0(BackgroundWorker worker, DoWorkEventArgs eventargs)
- System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
- System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

<fetch version=1.0 output-format=xml-platform mapping=logical distinct=false>
  <entity name=msevtmgt_event>
    <attribute name=pre_address />
    <order attribute=msevtmgt_eventstartdate descending=false />
    <filter type=and>
        <condition attribute=statecode operator=eq value=0 />
        <condition attribute=msevtmgt_publishstatus operator=eq value=100000001 />
    </filter>
    <link-entity name=msdyncrm_file from=msdyncrm_fileid to=msevtmgt_eventimage link-type=outer>
      <attribute name=msdyncrm_blobcdnuri />
    </link-entity>
  </entity>
</fetch>

  • XrmToolBox Version: 1.2022.9.57
  • FetchXML Builder Version: 1.2022.8.1
  • DB Version: 9.2.22091.192
  • Deployment: Online

simonlkch avatar Sep 28 '22 06:09 simonlkch

Here is a work around to skip this error.

  1. Create a new connection
  2. use this connection to connect CRM via FetchXMLBuilder
  3. then the metadata receive successfully.

simonlkch avatar Oct 12 '22 09:10 simonlkch

Thanks for this info. I will try to investigate this issue.

rappen avatar Oct 17 '22 15:10 rappen

Hey @simonlkch - do you still have this issue? I have a hard time to get that issue... :-/

rappen avatar Feb 06 '23 15:02 rappen

We now have a beta! See issue #897 and https://github.com/MscrmTools/XrmToolBox/issues/1256

rappen avatar Aug 03 '23 18:08 rappen