diagnosticshub.datawarehouse.dll Error in Windows 10 and 11: Visual Studio diagnostic report storage

Visual Studio captures a diagnostic session but cannot load its results and the failing module is diagnosticshub.datawarehouse.dll.
The Windows file inventory identifies diagnosticshub.datawarehouse.dll as Microsoft (R) Diagnostics Hub DataWarehouse. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Confirm whether a new small local trace can be saved and reopened. Record the Visual Studio version, disk space and report location, and distinguish a missing trace from a damaged one.
Repair the affected feature
Update Visual Studio through Visual Studio Installer. Save copies of important trace files, then use the supported repair route if new sessions also fail.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Collect and reopen a short trace for the same project and verify that expected CPU or memory tables appear.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.