diagnosticdataquery.dll Error in Windows 10 and 11: Windows diagnostic data query helper

A diagnostic viewer or supported reporting tool opens but fails to request data. If the message or log names diagnosticdataquery.dll, capture the full path, Windows build and time of the failure.
Microsoft binary metadata identifies this file as Microsoft Windows Diagnostic data Helper API. Use the filename as a diagnostic clue and check the action that failed before repairing Windows.
Isolate the failure
Check whether Diagnostic Data Viewer is available for the Windows build and whether the workstation’s viewing policy permits access. Compare a known recent event with the area that fails.
Repair the affected component
Repair or update the affected viewer through its supported installation channel. On a managed system, have IT check the data-viewing policy without changing diagnostic collection settings.
For a protected Windows file, use Microsoft’s System File Checker instructions when there is evidence of Windows component damage. Keep DLLs supplied by Windows or the full vendor package.
Verify the repair
The tool can query the expected diagnostic event category using the approved account.
See Microsoft’s guidance for this feature, the exact Windows file record, and the related PC Repair Atlas guide.