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 when trying to set value for multi-select table #213

Closed lsnprt closed 6 months ago

lsnprt commented 6 months ago

I'm trying to bulk update rows of a multi-select column (based on a global choice) so they each get the same option selected. The multi-select column is newly created and I am trying to select one single option.

Expected: all of the rows get the specific option (in this case, value 1) selected

I get the following error instead


System.ServiceModel.FaultException<Microsoft.Xrm.Sdk.OrganizationServiceFault>:
Incorrect attribute value type Microsoft.Xrm.Sdk.OptionSetValue
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)
- Cinteros.XTB.BulkDataUpdater.BulkDataUpdater.<>c__DisplayClass57_0.<UpdateRecords>b__1(BackgroundWorker bgworker, DoWorkEventArgs workargs)
- System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
- System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)