deepakkumar1984 / XrmToolBoxPlugins

Tools for Dynamics CRM
MIT License
33 stars 36 forks source link

Recycle bin error on "show deleted records" search #52

Closed Schlofa closed 1 year ago

Schlofa commented 3 years ago

Hi!

I get an error always when choosing entity, user und date and click zu "show deleted records".

image

Details saying:

System.InvalidCastException: The object with type "Microsoft.Crm.Sdk.Messages.AuditDetail" could not be change to type "Microsoft.Crm.Sdk.Messages.AttributeAuditDetail". at BDK.XrmToolBox.RecycleBin.PluginControl.b__11_0(BackgroundWorker w, DoWorkEventArgs ev) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Whatever that means, I need some help please.

BR, Schlofa


lhorvath75 commented 3 years ago

Hi,

I modified PluginControl.cs code. (attach) Please review this code.

Regards 2021-11-23_10-33-54 ,

Schlofa commented 3 years ago

Hi !

Your code seems legit.

I'm just a user and can only tell you my issue, that the records won't be shown because of that error.

BR, Schlofa

PeroPonneso commented 2 years ago

Same error, can't load entities

image

Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra
sono riportate in fondo al messaggio.

************** Testo dell'eccezione **************
System.InvalidCastException: Impossibile eseguire il cast di oggetti di tipo 'Microsoft.Crm.Sdk.Messages.AuditDetail' sul tipo 'Microsoft.Crm.Sdk.Messages.AttributeAuditDetail'.
   in BDK.XrmToolBox.RecycleBin.PluginControl.<btnShowRecords_Click>b__11_0(BackgroundWorker w, DoWorkEventArgs ev)
   in System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   in System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Mattw112 commented 2 years ago

I'm getting this too. Is the suggestion to recompile this with the changes shown above or is there a new version that can be updated to already.

PeroPonneso commented 2 years ago

Hi,

I modified PluginControl.cs code. (attach) Please review this code.

Regards 2021-11-23_10-33-54 ,

Tried the solution and it solves the error. When restoring the fields it does say it restored the records but i don't find them into the CRM.

deepakkumar1984 commented 2 years ago

Thanks can you please raise a PR.

On Wed, Jan 19, 2022 at 7:23 PM PeroPonneso @.***> wrote:

Hi,

I modified PluginControl.cs code. (attach) Please review this code.

Regards [image: 2021-11-23_10-33-54] https://user-images.githubusercontent.com/94899675/143003368-d9ba52ec-88d8-48c7-a1a6-3f4e313476b3.png ,

Tried the solution and it solves the error. When restoring the fields it does say it restored the records but i don't find them into the CRM.

— Reply to this email directly, view it on GitHub https://github.com/deepakkumar1984/XrmToolBoxPlugins/issues/52#issuecomment-1016215009, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQJAKLXEZAKIJF35A4V6KTUWZ3XTANCNFSM5IG2QYHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Regards, Deepak

PeroPonneso commented 2 years ago

Thanks can you please raise a PR. On Wed, Jan 19, 2022 at 7:23 PM PeroPonneso @.> wrote: Hi, I modified PluginControl.cs code. (attach) Please review this code. Regards [image: 2021-11-23_10-33-54] https://user-images.githubusercontent.com/94899675/143003368-d9ba52ec-88d8-48c7-a1a6-3f4e313476b3.png , Tried the solution and it solves the error. When restoring the fields it does say it restored the records but i don't find them into the CRM. — Reply to this email directly, view it on GitHub <#52 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQJAKLXEZAKIJF35A4V6KTUWZ3XTANCNFSM5IG2QYHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.> -- Regards, Deepak

Yes, i'll add the changes. Can you give it a shot at understanding why it is not restoring the records afterwards?

deepakkumar1984 commented 2 years ago

Ok sure

On Wed, Jan 19, 2022 at 7:46 PM PeroPonneso @.***> wrote:

Thanks can you please raise a PR. … <#m-2643058910340104680> On Wed, Jan 19, 2022 at 7:23 PM PeroPonneso @.> wrote: Hi, I modified PluginControl.cs code. (attach) Please review this code. Regards [image: 2021-11-23_10-33-54] https://user-images.githubusercontent.com/94899675/143003368-d9ba52ec-88d8-48c7-a1a6-3f4e313476b3.png https://user-images.githubusercontent.com/94899675/143003368-d9ba52ec-88d8-48c7-a1a6-3f4e313476b3.png , Tried the solution and it solves the error. When restoring the fields it does say it restored the records but i don't find them into the CRM. — Reply to this email directly, view it on GitHub <#52 (comment) https://github.com/deepakkumar1984/XrmToolBoxPlugins/issues/52#issuecomment-1016215009>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQJAKLXEZAKIJF35A4V6KTUWZ3XTANCNFSM5IG2QYHA https://github.com/notifications/unsubscribe-auth/ABQJAKLXEZAKIJF35A4V6KTUWZ3XTANCNFSM5IG2QYHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.> -- Regards, Deepak

Yes, i'll add the changes. Can you give it a shot at understanding why it is not restoring the records afterwards?

— Reply to this email directly, view it on GitHub https://github.com/deepakkumar1984/XrmToolBoxPlugins/issues/52#issuecomment-1016233981, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQJAKKD4LA7VWMZANBHIGDUWZ6N7ANCNFSM5IG2QYHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

-- Regards, Deepak

deepakkumar1984 commented 1 year ago

Released a new update, can you please try in that