SystemJobsDoctor 1.0.0

dotnet add package SystemJobsDoctor --version 1.0.0
                    
NuGet\Install-Package SystemJobsDoctor -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SystemJobsDoctor" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SystemJobsDoctor" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SystemJobsDoctor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SystemJobsDoctor --version 1.0.0
                    
#r "nuget: SystemJobsDoctor, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SystemJobsDoctor@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SystemJobsDoctor&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SystemJobsDoctor&version=1.0.0
                    
Install as a Cake Tool

System Jobs Doctor (XrmToolBox plugin)

Find out why an asynchronous workflow or plug-in did not run, fix the stuck or failed system jobs (asyncoperation) of a Dynamics 365 / Dataverse organization, and clean up the system jobs table: exact counts, errors grouped by cause, plug-in trace logs, bulk actions and a bulk deletion job, all in one screen.

Usage

  1. Open System Jobs Doctor and set the Scope:
    • Period: a preset (last 24 hours … all time) fills the Start date and End date. Picking a date switches to Custom, and an unticked date means no bound. The period applies to the Created on, Started on or Completed on date.
    • Type (system event / async plug-ins, workflow, bulk delete, import, rollup, other), Table (picked in the list or typed), Name contains, Max jobs loaded, Statuses (Problems = waiting for resources, suspended, failed).
  2. Click Analyze (header or scope). Nothing is loaded before; the connection is requested if needed. A long loading can be stopped with Stop or Esc.
  3. Dashboard: server counts per status, jobs over time, breakdowns by status, type, table and process. Click a tile or a bar to list its jobs.
  4. Errors: one line per normalized cause. Select a group to read the full message, then Show jobs, Resume, Cancel or Delete for the whole group. The Top 10 failing processes card opens the problem jobs of a process.
  5. Jobs: filter by table, search, sort; Ctrl / Shift to select several jobs, Ctrl+A for all, right click for the actions. Resume, Cancel, Postpone, Delete act on the selection; Summarize this job, Plug-in trace logs, Open record, Open system job and Open process act on the current job.
  6. Storage cleanup: Refresh (row snapshot), Count by status (whole table), choose the rule (statuses, completed more than N days ago, type), Estimate, Query (FetchXML preview), then Create bulk deletion job (once, every day, week or month).
  7. Summary (failed jobs summary) and Export Excel in the header; Options for the analysis limit, the batch size and the parallel count queries; Help; English / French.

What the tool does

  • Counts: aggregate FetchXML grouped by status. Beyond the 50,000-row aggregate limit, the created on range is cut into slices of about 40,000 jobs planned from the table row snapshot. A slice that is still too dense is cut in four, and the slices are counted in parallel (4 queries by default).
  • Error groups: the meaningful line of each error (the Message: line of a plug-in trace when present) with GUIDs, dates, times, numbers, URLs, e-mails and quoted values replaced by placeholders. Schema names ('new_code') and error codes (0x80040265) are kept.
  • Actions, sent in ExecuteMultiple batches with a confirmation and a per-job error report:
    • Resume suspended and failed jobs: statecode Ready / statuscode Waiting for resources. The state of resumed failed jobs is read again; a failed workflow the platform did not restart can be run again on its record (ExecuteWorkflowRequest, new system job).
    • Cancel jobs that are not completed.
    • Postpone waiting and suspended jobs (postponeuntil).
    • Delete completed jobs.
  • Bulk deletion job: BulkDeleteRequest on asyncoperation with a relative olderthan-x-days condition on completedon, so a recurring job keeps working.
  • Summaries: plain text, ready for a ticket, an e-mail or Teams.
    • For one job: what ran on which record, the cause, a hint (deleted record, missing privilege, SQL contention, time limit, service protection limits, external service, duplicate, infinite loop, schema change, disabled user, deactivated process), the other jobs with the same error, the full message, links and next steps.
    • For the failed jobs: counts, causes, processes, tables and next steps.
  • Excel report (.xlsx written without any third-party library): summary, top 10 failing processes, error groups, jobs, processes, tables, types.

Things to know

  • Resume only applies to suspended and failed jobs; fix the cause first or they fail again. Delete only applies to completed jobs (succeeded, failed, canceled). Deleted jobs cannot be restored.
  • The analysis loads at most Max jobs (latest first, 20,000 by default); the server counts are not limited. A slice of more than 50,000 jobs created within 30 seconds cannot be split, so the counts are then shown as lower bounds (≥).
  • Plug-in trace logs only exist when Enable logging to plug-in trace log is set to Exception or All. Dataverse keeps them for 24 hours by default.
  • The storage estimate uses an average size per job. Enter the AsyncOperationBase size of the Power Platform admin center (Capacity ▸ Database) to compute the real average.
  • Required privileges: read / write / delete on System Job, Bulk Delete for the cleanup job, read on Plug-in Trace Log.

Project layout

Folder Content
SystemJobsDoctor/ Plugin project (SystemJobsDoctor.csproj, .NET Framework 4.8, SDK-style), plugin class and screen.
SystemJobsDoctor/Services Queries with paging, parallel sliced counts, error normalization and hints, analysis, bulk actions, cleanup and bulk delete, trace logs, summaries, Excel export.
SystemJobsDoctor/Models Jobs, statuses, filters, analysis results, action plans, cleanup rule.
SystemJobsDoctor/Forms Dialogs: action confirmation, postpone, trace logs, summaries, options, text viewer.
SystemJobsDoctor/UI Theme, Fluent header, line icons, animated logo, loading overlay, cards, tiles, bar lists, timeline, tabs.
SystemJobsDoctor/Localization English / French strings.
docs/images Logo and screenshots.

Build

Open SystemJobsDoctor.sln in Visual Studio and build, or:

msbuild SystemJobsDoctor.sln /restore /p:Configuration=Release
dotnet build SystemJobsDoctor.sln -c Release

A Debug build also copies the DLL to %APPDATA%\MscrmTools\XrmToolBox\Plugins (disable with -p:DeployToXrmToolBox=false).

Install in XrmToolBox

Install it from the Tool Library, or copy SystemJobsDoctor\bin\Release\net48\SystemJobsDoctor.dll to %APPDATA%\MscrmTools\XrmToolBox\Plugins, restart XrmToolBox and open System Jobs Doctor. A connection to the organization is needed.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 260 10/18/2026

1.0.0 - First release

- Scope: period with start and end dates on the created, started or completed date, job type, regarding table (picked in the list or typed), process name, statuses.
- Dashboard: exact server counts per status (time slices planned from the table size and counted in parallel beyond the 50,000-row aggregate limit), jobs over time, breakdowns by status, type, table and process; click a tile or a bar to list the jobs.
- Errors grouped by normalized cause (GUIDs, dates, numbers, URLs and names removed), top 10 failing processes with their failure rate, actions on a whole group.
- Job list: virtual grid for tens of thousands of jobs, search, sort, table filter; details with regarding record, process, owner, dates, retries, error code, correlation id and full message; links to the record, the system job and the process.
- Plug-in trace logs of a job (same correlation id or request id).
- Bulk actions in ExecuteMultiple batches: resume suspended and failed jobs (state checked afterwards, failed workflows run again on their record when needed), cancel, postpone, delete completed jobs; confirmation and error report.
- Summaries: summary of one job or of the failed jobs, with hints for common errors, to copy or save as text.
- Storage cleanup: row snapshot and size estimate, count of the whole table by status, cleanup rule estimate, bulk deletion job (once, daily, weekly or monthly) and the list of existing ones.
- Excel report: summary, top 10 failing processes, error groups, jobs, processes, tables and types.
- Modern loading overlay with progress, elapsed time and Stop button; English and French interface.