Hi Guys,
CRM On Premise 8.2.X here.
We noticed recently that our attachment table is getting rather large (120gb), on a closer inspection, in excess of half of this is attachments that have become orphaned due to the original email being deleted - but the attachments aren't deleted.
I found some information online suggesting that back in CRM 2011 an extra task was added to the deletionservice to fix this, but i dont know whether thats still in place in 8.2.X, or where i'd go to investigate why it might be failing.
The SDK seems not to be an option, as it seems to pre-filter retrieve and delete requests to NON ORPHANED records.
Example:
_service.Retrieve("activitymimeattachment", Guid.Parse("DE273EDA-F450-E911-80FE-005056893571"), new ColumnSet(true));
This will fail when fed any orphaned ID, but succeed when fed any attachment still linked to an email or email template.
What can i do to workaround this, If there is indeed a cleanup task that might be failing - where do i go to find that so i can get it going, if not - what is the way to get rid of orphaned attachments? Am i missing a simple solution?
Thanks! Charles