bcolpaert / Colso.Xrm.AttributeEditor

XrmToolbox plugin to create, modify and delete entity attributes via an Excel template.
MIT License
8 stars 12 forks source link

Can't update fields throwing error #12

Open dapicella opened 6 years ago

dapicella commented 6 years ago

Hello,

I just updated to 2018.3 and I can't update fields anymore as it is throwing an error when I hit save & publish. All I'm doing is updating the display name. Thanks. :

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.IndexOutOfRangeException: Index was outside the bounds of the array. at Colso.Xrm.AttributeEditor.AppCode.AttributeTypes.PicklistAttribute.b8_1(String[] x) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Colso.Xrm.AttributeEditor.AppCode.AttributeTypes.PicklistAttribute.AddAdditionalMetadata(PicklistAttributeMetadata attribute) at Colso.Xrm.AttributeEditor.AppCode.AttributeTypes.AttributeMetadataBase1.GetAttributeMetadata() at Colso.Xrm.AttributeEditor.AppCode.AttributeTypes.AttributeMetadataBase1.UpdateAttribute(IOrganizationService service) at Colso.Xrm.AttributeEditor.AttributeEditor.<>c__DisplayClass40_0.b2(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

bcolpaert commented 6 years ago

Hi dapicella,

I could not reproduce the issue. Updating the displayname of an optionset is working in my test scenario. Are you changing the options or only the attribute display name? Can you send me the excel, so I can investigate this?