rappen / BulkDataUpdater

Updates or touches single attributes on a set of records.
https://www.nuget.org/packages/Cinteros.XrmToolBox.BulkDataUpdater/
GNU General Public License v3.0
5 stars 5 forks source link

Error adding columns when no attributes in query #231

Closed ovinophile closed 2 months ago

ovinophile commented 2 months ago

Using v1.2024.6.1

When "which columns to show" setting is set to "in the query" (the default) and the Fetch XML query has no attribute tags (returning all columns), an ArgumentNullException is thrown when clicking the Add button. To workaround I had to add an attribute (or use a view), then click Add in order to get to the settings and select "everything" for "which columns to show".

rappen commented 2 months ago

This is duplicated with #227. Doing a query without any attributes is not recommended; see MS Learn.

I have changed the code to accept no- or all-attributes without ugly error; see commit. This will be included in the next release.

ovinophile commented 2 months ago

Sorry, didn't check the closed issues. Thank you!