Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception upon showing Both Names in result view #963

Closed
VeroslavOlic opened this issue Aug 24, 2023 · 6 comments
Closed

Unhandled exception upon showing Both Names in result view #963

VeroslavOlic opened this issue Aug 24, 2023 · 6 comments

Comments

@VeroslavOlic
Copy link

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

@VeroslavOlic VeroslavOlic changed the title Enhandled exception upon showing Both Names in result view Unhandled exception upon showing Both Names in result view Aug 24, 2023
@rappen
Copy link
Owner

rappen commented Aug 24, 2023

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:

  • Rappen.XTB.FXB_[Common].xml with general setting.
  • Rappen.XTB.FXB_<name of the connection>.xml is my demo I'm connected to Jonas Space.

@VeroslavOlic
Copy link
Author

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
Copy link
Owner

rappen commented Aug 24, 2023

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

@VeroslavOlic
Copy link
Author

Thank you rappen!

rappen added a commit to rappen/Rappen.XTB.Helper that referenced this issue Aug 25, 2023
rappen added a commit that referenced this issue Aug 25, 2023
@rappen
Copy link
Owner

rappen commented Aug 25, 2023

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants