Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Dynamics 365 Database Capacity Issues

(1) ShareShare
ReportReport
Posted on by 293

Hi

We are using Dynamics 365 Sales and Service modules. Our database store is overgrowing, and when looking at the details, the issue is in activity_pointer. 

We have made all the recommendations to reduce the store, but they don't help much in our issue. We know that the size in activity_pointer is related to emails and notes (when these records were deleted in our UAT environment, the size is reduced by 9GB) I have looked at the details and there are 69,486 emails. Is that too much? 

Is there anything else we can do? is there any column that may be taking a lot of space and that could be deleted? 

Please know we don't have any issues with our Filestore. 

Any help would be much appreciated. 

Kind regards

Teresa

  • Suggested answer
    Dynamics 365 Database Capacity Issues
    Hi Teresa

    As you would have found out emails take up most of the DB storage and DB storage is extremely expensive @ $40/GB/mo. Since we are working on MS Dynamics for more than 12 years, we decided to find a solution which will reduce this storage without losing the functionality. And since we need businesses to grow, we cannot ask the clients to delete all the emails.  
     
    We have created a solution add-on called DDA (Dataverse Data Archiver) which will help you reduce this costs. We have implemented this add-on for many clients from last 2 years and our clients have been able to save lots of dollars on D365 storage. You can find more details and download the brochure from our website - https://nebulaaitsolutions.com/solutions/dataverse-data-archiver

    Our solution helps to safely move the emails out of D365 while still being able to access emails and their attachments from their record screens in D365.
  • Tessacq Profile Picture
    Tessacq 293 on at
    RE: Dynamics 365 Database Capacity Issues

    Hi Paul

    Thank you for your help. The mscrm-addon attachment extractor is working perfectly. I am using the email component service. Our database was originally 13 GB and we have been able to reduce 5 GB of database storage.

    Kind regards

    Teresa

  • Paul_Bo Profile Picture
    Paul_Bo 70 on at
    RE: Dynamics 365 Database Capacity Issues

    Hi Teresa,

    I think there are two approaches here, one is take a look at the create rules from the inbound emails and see if you can exclude your companies domain name.  To do this, go to the queue where the inbound email address is set to create new cases.  At the bottom of the page there should be a section called record creation and update rules.  See if you can do an exclusion there.

    The other suggestion would be to create a power automate that runs on "Contact Added" where you are checking to see if the contact email contains your companies domain name.

    (endswith(emailaddress1, '@domain.com'))

    Any resulting contacts can then be either deleted or deactivated.

    Let me know how you make out.

    Thanks,

    Paul

  • PerezAguiar Profile Picture
    PerezAguiar on at
    RE: Dynamics 365 Database Capacity Issues

    Hey Teresa.  

    The main question is: do you want to perform searches on that table (task, for example)? if you do, just add the minimum set of fields (Subject for example). YOu should avoid text fields that are large (Like "Description" or as Paul stated previously: Email body).

    If you enable/disable dataverse search, the current index for DataverseSearch is released. but once you enable it back, they will populate again. For sandbox/Testing environmnts this might be a nice approach to reduce their consumption

    There are other possibilities as well

    a) you can try purchasing additional database storage.

    b) you can open a reques to Microsoft Support to verify why the storage consumption on this table.

  • Tessacq Profile Picture
    Tessacq 293 on at
    RE: Dynamics 365 Database Capacity Issues

    Hi Paul

    Thank you for your answer, that is a new perspective from everything I have read, it is of great help. I saw that plugin's name before but thought it was just to extract attachments and we have enough file storage, didn't realise it manipulate the actual email table itself. It makes sense, I am going to look into this. 

    We do have issues with users being created as contacts. I can't find any solution to that. The issue happens when an employee replies to a support case, the system creates him as a contact automatically. Do you have any suggestions for this? 

    Kind regards

    Teresa

    [quote user="Paul_Bo"]

    Hi Teresa,

    Based on what you describe, the emails are most likely getting stored in an HTML format and this is what is taking up most of your space.  You can create your own plugin to strip out everything but the text of the email or there are some products that can help with this.  One of the ones I've looked at recently was MSCRM-AddOns Attachment Extractor.  It has a specific function for handling emails.

    The other item you can look at is making sure that you don't have contact email addresses that are the same as your current user email addresses.  This will cause duplicate information to be stored in the Activity Pointer table.

    Good luck, and let us know how you make out.

    Paul

    [/quote]
  • Tessacq Profile Picture
    Tessacq 293 on at
    RE: Dynamics 365 Database Capacity Issues

    Hi @Daniel Perez Aguiar

    Thanks for your suggestion. Reading the article, I am a bit confused about dataverse search and the indexes.

    - Do the quick find views of entities not included in the dataverse search affect? In example the Task entity is not included, should I still look at its quick find view?  

     pastedimage1642652863442v4.png

    - For the Task entity, it says that 10 columns are added to the index but when I look to the view only subject is added. I am guessing Microsoft includes some automatically.  Should I remove subject because it is a text? 

    - Do I need to disable and enable dataversearch to remove unused index? 

    Thanks in advance for your help. 

    that On the dataverse search it says 

    [quote user="PerezAguiar"]

    Hey teresa.

    on docs.microsoft.com/.../capacity-storage you have a nice information regarding Indexes.  YOu should also follow those points there:

    Because custom Quick Find lookups are created by an admin in the org, these can be user-controlled. Admins can reduce some of the storage used by these custom indexes by doing the following:

    Removing unneeded columns and/or tables

    Eliminating multiline text columns from inclusion

    [/quote]
  • Verified answer
    Paul_Bo Profile Picture
    Paul_Bo 70 on at
    RE: Dynamics 365 Database Capacity Issues

    Hi Teresa,

    Based on what you describe, the emails are most likely getting stored in an HTML format and this is what is taking up most of your space.  You can create your own plugin to strip out everything but the text of the email or there are some products that can help with this.  One of the ones I've looked at recently was MSCRM-AddOns Attachment Extractor.  It has a specific function for handling emails.

    The other item you can look at is making sure that you don't have contact email addresses that are the same as your current user email addresses.  This will cause duplicate information to be stored in the Activity Pointer table.

    Good luck, and let us know how you make out.

    Paul

  • Tessacq Profile Picture
    Tessacq 293 on at
    RE: Dynamics 365 Database Capacity Issues

    Hi Vipin

    Our problem is with the database usage, I believe these steps are to reduce file usage and log usage mainly, please correct me if I am wrong. I have already deleted the entities Microsoft suggest.

    docs.microsoft.com/.../free-storage-space

    Thanks

    Teresa

  • Vipin J Profile Picture
    Vipin J 1,583 on at
    RE: Dynamics 365 Database Capacity Issues

    Sharepoint would be another option here - https://vjcity.blogspot.com/2020/02/how-to-do-integration-between.html

  • Vipin J Profile Picture
    Vipin J 1,583 on at
    RE: Dynamics 365 Database Capacity Issues

    For Cleaning storage space in Dynamic CRM refer here : https://vjcity.blogspot.com/2019/06/cleaning-storage-space-in-dynamic-crm.html

    You can move attachments to Azure Blob Refer here - https://vjcity.blogspot.com/2019/11/moving-attachments-of-dynamic-365-crm.html

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans