XrmToolBoxPlugins icon indicating copy to clipboard operation
XrmToolBoxPlugins copied to clipboard

Recycle Bin Exception Error on Certain Custom Entities But Not All Custom Entities

Open jsofer opened this issue 3 years ago • 1 comments

The Recycle Bin plugin worked great for most of the entities I tried it on, but when I try it on a few specific custom entities, I get the following exception:

************** Exception Text ************** System.InvalidCastException: Unable to cast object of type 'Microsoft.Crm.Sdk.Messages.AuditDetail' to type 'Microsoft.Crm.Sdk.Messages.AttributeAuditDetail'. at BDK.XrmToolBox.RecycleBin.PluginControl.<btnShowRecords_Click>b__11_0(BackgroundWorker w, DoWorkEventArgs ev) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

I get it after choosing the entity, specifying a date range, and then clicking Show Deleted. The recycle bin was working fine on these entities a few weeks ago so I'm not sure what has changed. Could be some field in the entity or data elements?

Any ideas?

Thanks, Jonathan

jsofer avatar Feb 24 '21 22:02 jsofer

Looks like it just need a dependency bump. See #49

camerontucker avatar Aug 03 '21 19:08 camerontucker