
If you use the Power Platform CLI (PAC CLI) in GCC High or DoD environments, you may run into a sudden crash that looks like this:
Sorry, the app encountered a non-recoverable error and will need to terminate. The exception details have been captured and will be forwarded to the development team, if telemetry has been enabled. Session Id: 6e212345-df11-22a7-b633-42380ed22acd, Exception Type: System.NullReferenceException
It’s especially confusing because the message mentions telemetry like it’s only about reporting diagnostics, but in the scenario I hit, the crash was tied to telemetry being disabled.
This post explains the pattern, how to confirm if you’re affected, and the quick fix.
In my environment:
If PAC CLI telemetry is disabled, some commands can hit a failure path that results in the CLI terminating with a System.NullReferenceException and the “non-recoverable error” message.
So while the message says telemetry would help forward the exception details, in this case telemetry being disabled was part of what caused the crash behavior.
Run:
pac telemetry status
If it reports telemetry is disabled, you’re a prime candidate for this issue (especially if you’re on a PAC CLI version newer than 1.34.1 in GCC High or DoD).
Enable telemetry:
pac telemetry enabled
Then re-run the command that was failing.
In my testing, simply enabling telemetry made the same commands that were terminating start working normally.
The message frames telemetry as “only” a mechanism to forward exception details. In practice, what I experienced is:
So the wording is not wrong, but it doesn’t tell you that telemetry configuration may be directly related to the failure.
If you see the “non-recoverable error” + System.NullReferenceException in GCC High or DoD:
Confirm your PAC CLI version (and note if you upgraded recently)
Check telemetry status
pac telemetry status
If disabled, enable it
pac telemetry enabled
Retry the exact command that failed
If PAC CLI started crashing in GCC High or DoD with a “non-recoverable error” and System.NullReferenceException, check whether telemetry is disabled. Enabling telemetry is a simple change that can get you unstuck, even though the message makes it sound like telemetry only affects error reporting.
Original Post http://www.richardawilson.com/2026/02/fixing-pac-cli-non-recoverable-error-in.html