rappen / FetchXMLBuilder

FetchXML Builder for XrmToolBox and Microsoft Dynamics 365 / CRM
https://fetchxmlbuilder.com/
GNU General Public License v3.0
135 stars 56 forks source link

Error when clicking Select Attributes #777

Closed CJatBH closed 1 year ago

CJatBH commented 2 years ago

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.<>cDisplayClass73_0.b1(RunWorkerCompletedEventArgs completedargs) at XrmToolBox.Extensibility.Worker.<>cDisplayClass4_0.b0(Object s, RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)

image

rappen commented 2 years ago

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")

CJatBH commented 2 years ago

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.<>cDisplayClass73_0.b1(RunWorkerCompletedEventArgs completedargs) at XrmToolBox.Extensibility.Worker.<>cDisplayClass4_0.b0(Object s, RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)

rappen commented 2 years ago

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 :)

CJatBH commented 2 years ago

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).

rappen commented 2 years ago

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

CJatBH commented 2 years ago

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

rappen commented 1 year ago

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

CJatBH commented 1 year ago

This is no longer happening. Thanks so much!