rappen / BulkDataUpdater

Updates or touches single attributes on a set of records.
https://www.nuget.org/packages/Cinteros.XrmToolBox.BulkDataUpdater/
GNU General Public License v3.0
5 stars 5 forks source link

Error at bulk update #237

Open Serjanya opened 1 month ago

Serjanya commented 1 month ago

Hello, trying to update 100 custom entities. Got this error image

It works only at this configuration: image


System.ServiceModel.FaultException:
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/xrm/2011/Contracts/Services:request. The InnerException message was 'Error in line 1 position 13259. Element 'http://schemas.microsoft.com/xrm/2011/Contracts/Services:request' contains data from a type that maps to the name 'http://schemas.microsoft.com/xrm/2011/Contracts:UpdateMultipleRequest'. The deserializer has no knowledge of any type that maps to this name. Consider changing the implementation of the ResolveName method on your DataContractResolver to return a non-null value for name 'UpdateMultipleRequest' and namespace 'http://schemas.microsoft.com/xrm/2011/Contracts'.'.  Please see InnerException for more details.
Bulk Data Updater

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]: 
- Cinteros.XTB.BulkDataUpdater.BulkDataUpdater.ExecuteRequest(OrganizationRequest request, JobExecuteOptions executeoptions)
- Cinteros.XTB.BulkDataUpdater.BulkDataUpdater.UpdateRecordsWork(BackgroundWorker bgworker, DoWorkEventArgs workargs, IEnumerable`1 includedrecords, JobExecuteOptions executeoptions, Boolean isn)
- Cinteros.XTB.BulkDataUpdater.BulkDataUpdater.<>c__DisplayClass53_0.<UpdateRecords>b__4(BackgroundWorker bgworker, DoWorkEventArgs workargs)
- System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
- System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

rappen commented 5 days ago

Thanks @Serjanya, sorry about late response. Seems hard to reproduce the error... 😕 but I have made a few minor adjustments in the code, hope it works in the future 🙏

Please get back to me to see if it's still a problem, or if it works in the next release!