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 updating lookup field with calculation token #138

Closed stonekw closed 2 years ago

stonekw commented 3 years ago

I am attempting to bulk update a record lookup attribute to a calculation using tokens. I basically need to replace the lookup value with another lookup value which I get by joining to another entity. The value is not static, as it will differ depending on the data retrieved from the linked entity. The token I am using is {plus_subregion2.plus_subregionid}. The field I am trying to set is on the opportunity entity - plus_subregion. The error I receive is image

It appears I need the token to output an EntityReference instead of a string. Is this possible?

I assume I am encountering a similar issue as @sbetzin https://github.com/rappen/BulkDataUpdater/issues/116, but in that case it runs without error. In my case, I receive the cast exception.