Generic error 0x80040216 when querying for anything related to the LookupMapping entity. The root cause is ultimately a Microsoft issue, I cannot get this to work with their REST API either (same error code). Hopefully you will have more luck engaging Microsoft than I ever have.
System.ServiceModel.FaultException<Microsoft.Xrm.Sdk.OrganizationServiceFault>:
An unexpected error occurred.
FetchXML Builder
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.XRM.Helpers.Extensions.ServiceExtensions.RetrieveMultiple(IOrganizationService service, QueryBase query, BackgroundWorker worker, DoWorkEventArgs eventargs, String message, Boolean showMessageOnFirstPage, Boolean allpages, KeyValuePair`2[] parameters)
- Rappen.XTB.FetchXmlBuilder.FetchXmlBuilder.RetrieveMultipleSync(String fetch, BackgroundWorker worker, DoWorkEventArgs eventargs)
- Rappen.XTB.FetchXmlBuilder.FetchXmlBuilder.<>c__DisplayClass143_0.<RetrieveMultiple>b__0(BackgroundWorker worker, DoWorkEventArgs eventargs)
- System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
- System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
<fetch>
<entity name=lookupmapping />
</fetch>
[Write any error info to resolve easier]
Generic error 0x80040216 when querying for anything related to the LookupMapping entity. The root cause is ultimately a Microsoft issue, I cannot get this to work with their REST API either (same error code). Hopefully you will have more luck engaging Microsoft than I ever have.