rappen / FetchXMLBuilder

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

Unhandled exception upon showing Both Names in result view #963

Closed VeroslavOlic closed 12 months ago

VeroslavOlic commented 12 months ago

Hi,

I've just updated FetchXML to version 1.2023.8.2 and opened there a previously prepared view. When I tick the option Appearance - Both Names in the result view, it immediatelly shows an exception (bellow). When I leave Both Names unticked (and keep only Freindly Names on), then it works normally, without exception.

The exception text (attached, with screenshots) tells that the property DisplayIndex of DataGridViewColumn control must be smaller than the number of columns. Real value was 85.

Would you advise please?

Best rergards Veroslav

FetchXML unhandled exception.docx

rappen commented 12 months ago

I thought I had fixed that type of issues... 😣 I can't reproduce the issue now.

Can you give me more info? How to get the query/view - open a view from Dataverse? Or just remember that by default since last time?

Is FXB closed after the error message? Is the whole XrmToolBox closed? Or just continue after closing the error message?

Does this error appear always, with other queries as well?

Can you share your settings for FXB? This is how to find them: https://app.screencast.com/392yzQzpZjr8K There are two setting files:

VeroslavOlic commented 12 months ago

Hi,

There is always something unnoticed - Murphy's law ;-)

The query I open from CRM, where I prepared it (menu Open - Open View...).

FXB is not closed automatically after displaying the error message, but I get a choice: either to Continue or to End. If I choose to End, FXB is closed after few dialogs, as well as XrmToolBox. If I choose Continue the error message disappears and I regain control of FXB.

Good point rappen: the error doesn't appear with other views! So someting bad in this view only...

The settings attached.

With best regards Veroslav

Downloads.zip

rappen commented 12 months ago

I can now reproduce the issue! Now I just have to find why it happens... Stay tuned...

VeroslavOlic commented 12 months ago

Thank you rappen!

rappen commented 12 months ago

You may test this fix now 🤓 Get this version here: https://1drv.ms/f/s!AjplCnpZdSjqn9VTdHUZXvfQUeopZQ?e=RlhaN6 Here is how to (just start on point 2): https://fetchxmlbuilder.com/manual-installation/ Please update to the official release when it is published!

VeroslavOlic commented 12 months ago

Yes, that works 👍 I'm not getting the error anymore, even when I do switching "Both Names" on and off. Many thanks for your fast and great support rappen!