FetchXMLBuilder icon indicating copy to clipboard operation
FetchXMLBuilder copied to clipboard

Error when clicking Select Attributes

Open CJatBH opened this issue 3 years ago • 6 comments

After clicking on "Select Attributes" I receive an error "Nullable object must have a value". I am on CRM 2015 and am using the latest release of FXB.

System.InvalidOperationException: Nullable object must have a value. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at Rappen.XTB.FetchXmlBuilder.Forms.SelectAttributesDialog.GenerateAllItems(List1 attributes, List1 selectedAttributes) at Rappen.XTB.FetchXmlBuilder.Forms.SelectAttributesDialog..ctor(List1 attributes, List1 selectedAttributes) at Rappen.XTB.FetchXmlBuilder.DockControls.TreeBuilderControl.SelectAttributes() at Rappen.XTB.FetchXmlBuilder.FetchXmlBuilder.<>c__DisplayClass73_0.<LoadEntityDetails>b__1(RunWorkerCompletedEventArgs completedargs) at XrmToolBox.Extensibility.Worker.<>c__DisplayClass4_0.<WorkAsync>b__0(Object s, RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)

image

CJatBH avatar Sep 02 '22 16:09 CJatBH

Thanks for the report! I'll investigate what metadata problem we have for CRM 2015. Can you say which exact version of the Dynamics? I guess 7.0.x.x something...?

Note - it does not look like latest version in your screenshot, it should look like this:

image

See the modern error message popup, and see the rebranded namespaces (start with "Rappen" instead of old "Cinteros")

rappen avatar Sep 03 '22 09:09 rappen

I just made sure I have the latest version of XrmToolBox (1.2022.2.54) and the latest version of FXB (1.2022.8). Below is the updated error message, but the popup style has not changed.

************** Exception Text ************** System.InvalidOperationException: Nullable object must have a value. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at Rappen.XTB.FetchXmlBuilder.Forms.SelectAttributesDialog.GenerateAllItems(List1 attributes, List1 selectedAttributes) at Rappen.XTB.FetchXmlBuilder.Forms.SelectAttributesDialog..ctor(List1 attributes, List1 selectedAttributes) at Rappen.XTB.FetchXmlBuilder.DockControls.TreeBuilderControl.SelectAttributes() at Rappen.XTB.FetchXmlBuilder.FetchXmlBuilder.<>c__DisplayClass73_0.<LoadEntityDetails>b__1(RunWorkerCompletedEventArgs completedargs) at XrmToolBox.Extensibility.Worker.<>c__DisplayClass4_0.<WorkAsync>b__0(Object s, RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)

CJatBH avatar Sep 06 '22 15:09 CJatBH

That's, I will continue investigating. May you say which version of Dynamics 365 DB you have?

(PS, latest version of XTB is 1.2022.5.56 from this spring - I always suggest to update to latest :)

rappen avatar Sep 06 '22 18:09 rappen

I just updated to the latest XTB version 1.2022.5.56 and still face the issue. I am not sure why it didn't update earlier.

I am on Microsoft Dynamics® CRM 2015 (7.0.3.152) (DB 7.0.3.152).

CJatBH avatar Sep 06 '22 18:09 CJatBH

Thanks!

It's hard to test in CRM 2015 unfortunately for me...

Can you test the different options of these checkboxes in this green highlighted?

image

Can you get the attributes if you just add one attribute, like this?

image

rappen avatar Sep 08 '22 12:09 rappen

I have both options unchecked otherwise I can't get any entities. With both boxes unchecked I can add fields one at a time.

CJatBH avatar Sep 08 '22 12:09 CJatBH

Long time... I'm just wondering if you still have this issue?

rappen avatar Feb 06 '23 15:02 rappen

This is no longer happening. Thanks so much!

CJatBH avatar Feb 06 '23 15:02 CJatBH