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

Unhandled Exception - Adding a Field Value to Update #227

Closed jamespolak2 closed 2 months ago

jamespolak2 commented 2 months ago

I am getting an unhandled exception when adding a field to update using the latest version of this tool. This happens regardless of what fetch xml query I use.

Steps to recreate:

  1. Open the FetchXML Builder and create a query
  2. Return the query to the Bulk Data Updater
  3. The loading screen shows that it is loading the entity metadata (see 'Loading Screen Screenshot')

Loading Screen

  1. Once it has finished loading, click add (see 'Steps to Recreate' screenshot)

Steps to Recreate

  1. Error then appears (see 'Error' screenshot and the attached error details)

Error

Error Details.txt

This seems to be happening regardless of whether the FetchXML Builder is being used to build and return the query, or if the query is added directly into the Bulk Data Updater

rappen commented 2 months ago

First: sorry about it takes tiiiime to load the cached metadata. But it's worth to wait for it.

I believe the error occurs since your query does not include any attributes (or use all-attributes) - the code wouldn't expect that that can happen. I have a new commit regarding just this issue, will not error in this case in the next release. https://github.com/rappen/BulkDataUpdater/commit/fe3d4f70833a0b367121c4a3bd7810629b72792b

Can you check it if it still occurs these errors when you have a proper attributes in the FetchXML query?

jamespolak2 commented 2 months ago

Yes, it works with the attributes 👍 Thanks!