SystemJobsDoctor 1.0.0
dotnet add package SystemJobsDoctor --version 1.0.0
NuGet\Install-Package SystemJobsDoctor -Version 1.0.0
<PackageReference Include="SystemJobsDoctor" Version="1.0.0" />
<PackageVersion Include="SystemJobsDoctor" Version="1.0.0" />
<PackageReference Include="SystemJobsDoctor" />
paket add SystemJobsDoctor --version 1.0.0
#r "nuget: SystemJobsDoctor, 1.0.0"
#:package SystemJobsDoctor@1.0.0
#addin nuget:?package=SystemJobsDoctor&version=1.0.0
#tool nuget:?package=SystemJobsDoctor&version=1.0.0
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
- 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).
- 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.
- 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.
- 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.
- 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.
- 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).
- 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
ExecuteMultiplebatches with a confirmation and a per-job error report:- Resume suspended and failed jobs:
statecodeReady /statuscodeWaiting 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.
- Resume suspended and failed jobs:
- Bulk deletion job:
BulkDeleteRequestonasyncoperationwith a relativeolderthan-x-dayscondition oncompletedon, 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.
Learn more about Target Frameworks and .NET Standard.
-
- XrmToolBox (>= 1.2020.12.43)
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.