Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

[Customer Guide] How to Reduce Consumption of ImportJobBase Table

Posted on by

     ! Important

This article contains steps on how to reduce the capacity consumption of ImportJobBase table, which involve deleting data. Following deletion, these records will not be available anymore. Before proceeding with deleting any data in this table, please make sure to test first in a sandbox environment before proceeding with the final delete operation.

ImportJobBase table holds the import records for the solutions that were installed in an environment.

These logs identify which solutions were installed and when, what is their current progress and the unstructured data associated with each specific import (for internal purposes). It is important to maintain some of the data on this table for historical analysis, as it will be useful telemetry when troubleshooting solution import failures. Given this, it is generally a best practice to keep up to 2 months of import logs, in case any assistance is needed regarding solution import.

Nevertheless, if you do wish to understand what data is currently being kept in this table for a specific environment, or even reduce its consumption, you can follow the guidelines mentioned below.

How to retrieve the data

The solution imports for a given environment have the logical name importjob, which is accessible in CRM as Import Job(s).

The data is retrievable through Advanced Find and through Web API.

Option 1 | Using Advanced Find:

  1. Access Advanced Find
  2. Select the entity Import Jobs and the saved view ImportJobs
  3. Select Results:

pastedimage1615888665764v1.png

Option 2 | Using Web API:

Access the Web API endpoint for ImportJobs and edit the organization URL: https://[organizationurl]/api/data/v9.0/importjobs

pastedimage1615888736782v2.png

Example:

https://[organizationurl]/api/data/v9.0/importjobs?$filter=createdon ge 2020-09-25 and createdon le 2020-10-25

How to reduce the consumption

You can cleanup the data from this table by selecting the records in Advanced Find, which is recommended for small amounts of data, or by using a Bulk Deletion Job, for larger datasets.

Option 1 | Using Advanced Find:

Cleanup the data using Advanced Find, by selecting the rows you wish to delete and click “Delete”.

Example:

pastedimage1615888789823v3.png

Option 2 | Create a Bulk Deletion Job:

     ! Important

When executing a bulk deletion job, please make sure that this operation is performed outside your business hours to avoid any potential performance impact in the environment whilst users are active.

For larger datasets, you can also create a bulk deletion job, or even setup an automation to run a bulk deletion job so you can have the table cleaned up automatically. As mentioned previously, you should retain at least 2 months of solution import logs, so please keep this in consideration when designing the bulk deletion jobs.

Example:

pastedimage1615888833893v4.png

Following the successful deletion of the data, please allow 24h for the capacity report to be fully updated and return the new consumption of the ImportJobBase table.


See also

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: [Customer Guide] How to Reduce Consumption of ImportJobBase Table

    Thanks for sharing.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans