Fixed: "No token cache item found of UNIVERSAL kind" When Signing In with pac auth create
pac auth create printed authenticated successfully, then crashed with Sorry, the app encountered a non-recoverable error. Its log named the cause, No token cache item found of UNIVERSAL kind, and the profile was never saved. Running the same command again signed me in and created it.
What I Was Doing
I was installing a solution in a new environment from the command line (Part 21). The Power Platform CLI (pac) profile I already had pointed at an environment that no longer exists, and pac env list with it stopped with a message of the same kind: No token cache item found of UNIVERSAL kind for https://globaldisco.crm.dynamics.com//.default. So I created a new profile for the new environment, signing in with a device code (How to Sign In to the Power Platform CLI with pac auth create):
pac auth create --name OvertimeDemo --deviceCode --environment "Overtime Timesheet Demo"
This was pac 2.16.1 on macOS. I entered the code at https://login.microsoft.com/device, chose the account and approved the sign-in. The browser said You have signed in to the Power Platform CLI - pac application on your device.
What I Expected
The rest of a normal sign-in: the CLI connects to the environment, prints Authentication profile created, and lists the new profile.
What I Got
Authenticated successfully, and then a crash:

To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code N2S3D25R7 to authenticate.
'admin@example.com' authenticated successfully.
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: 00000000-0000-0000-0000-000000000000, Exception Type: System.InvalidOperationException
The diagnostic logs can be found at: /Users/you/.dotnet/tools/.store/microsoft.powerapps.cli.tool/2.16.1/microsoft.powerapps.cli.tool/2.16.1/tools/net10.0/any/logs/pac-log.txt
What I Checked
1. The log
The last line gives the path of pac-log.txt. Its entries for this command show the sign-in working, a profile being created in memory, and the failure a second later:
2026-11-30 18:12:17.7042 | INF | bolt.authentication.store.AuthTokenStore :: AuthenticationFlow=bolt.authentication.store.DeviceCodeAuthFlow: Token successfully acquired via AuthenticationFlow.bolt.authentication.store.DeviceCodeAuthFlow.
2026-11-30 18:12:17.7048 | INF | bolt.authentication.store.AuthTokenStore :: CreateAuthProfile: Successfully acquired a token with scopes: https://service.powerapps.com//.default, https://service.powerapps.com//user_impersonation
2026-11-30 18:12:17.7081 | INF | bolt.module.auth.AuthModule :: AuthProfile created
2026-11-30 18:12:18.7242 | ERR | bolt.cli.CommandLine.VerbExecutor :: Verb 'auth create' failed (activityId 00000000-0000-0000-0000-000000000000)|EXCEPTION: System.InvalidOperationException: Internal: No token cache item found of UNIVERSAL kind for https://api.advisor.powerapps.com//.default : admin@example.com.
at bolt.authentication.store.AuthTokenStore.AcquireUserTokenSilentAsync(IAuthKindDescription authKindDesc, AuthProfile authProfile, String[] scopes) in C:\__w\1\s\src\cli\bolt.authentication\store\AuthTokenStore.cs:line 244
at bolt.authentication.store.AuthTokenStore.AcquireTokenSilentAsync(AuthProfile authProfile, AuthResource authResource) in C:\__w\1\s\src\cli\bolt.authentication\store\AuthTokenStore.cs:line 170
at bolt.authentication.store.AuthTokenStoreBase.PreAuthenticateResource(AuthProfile authProfile, AuthResource authResource, AuthenticationFlow authFlow) in C:\__w\1\s\src\cli\bolt.authentication\store\AuthTokenStoreBase.cs:line 234
at bolt.authentication.store.AuthTokenStoreBase.TryPreAuthenticateResource(AuthProfile authProfile, AuthResource authResource, AuthenticationFlow authFlow) in C:\__w\1\s\src\cli\bolt.authentication\store\AuthTokenStoreBase.cs:line 200
at bolt.module.auth.verbs.AuthCreateVerb.PreAuthAdditionalServices(AuthProfile authProfile, EnvironmentLookupSpec envLookupSpec, AuthenticationFlow authFlow) in C:\__w\1\s\src\cli\bolt.module.auth\verbs\AuthCreateVerb.cs:line 588
Read from the bottom up, pac auth create was getting tokens for more services after the sign-in (PreAuthAdditionalServices). It asked its token cache for one without signing in again (AcquireUserTokenSilentAsync), found none for https://api.advisor.powerapps.com//.default, and stopped.
2. Which service that is
Microsoft's Power Apps checker web API gives https://api.advisor.powerapps.com/ as the resource of the checker service, the service behind solution checker. I hadn't run any checker command: pac auth create asked for this token while creating the profile, and the successful run below did the same.
3. Whether a profile was saved
pac auth list showed only the profile I already had. The failed run left nothing behind to clean up.
4. Microsoft's documentation
The pac auth reference doesn't mention this error; its only troubleshooting note is about signing in from WSL2. I found nothing else in Microsoft Learn about No token cache item found.
Why It Happens
The log shows where it fails, not why. The device-code sign-in gets a token for the Power Platform service, and the command then fetches tokens for other services from what that sign-in left in the CLI's token cache. On this run, the one for the checker service wasn't there, and the CLI treats that as a non-recoverable error, before it saves the profile. Microsoft doesn't document a cause, and nothing in the command or the account was wrong: the same command, ten minutes later, got that token without a problem.
The Fix
Sign in again with the same command:
- Check with
pac auth listthat the failed attempt left no profile. Mine hadn't. - Run the same
pac auth createcommand again. - Enter the new code at
https://login.microsoft.com/deviceand approve the sign-in. Each code works once, so don't reuse the first one.
After the Fix
The second sign-in went all the way through:

To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code S3FU7HW9N to authenticate.
'admin@example.com' authenticated successfully.
Validating connection...
Connected to... Overtime Timesheet Demo
Default organization: Overtime Timesheet Demo
Authentication profile created
* UNIVERSAL OvertimeDemo : admin@example.com Public https://org00000000.crm11.dynamics.com/
This time the log has the token that was missing, and then the one pac env list had failed on with the old profile:
2026-11-30 18:23:47.9689 | INF | bolt.module.auth.AuthModule :: AuthProfile created
2026-11-30 18:23:49.6624 | INF | bolt.authentication.store.AuthTokenStore :: Successfully acquired a token using profile of type User for scope 'https://api.advisor.powerapps.com//.default'
2026-11-30 18:23:50.7867 | INF | bolt.authentication.store.AuthTokenStore :: Successfully acquired a token using profile of type User for scope 'https://globaldisco.crm.dynamics.com//.default'
Every command after that used the new profile without a problem: pac env who, pac solution list, pac connection list and pac solution import.
Common Mistakes
| Mistake | What happens | Do this instead |
|---|---|---|
| Carrying on with the next command | There's no new profile, so the command uses the old one or none | Check pac auth list first |
Clearing every profile with pac auth clear | Profiles that work for other environments go too | The failed run saved nothing; just sign in again |
| Entering the first code again | Each device code works once | Use the code the new run prints |
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Non-recoverable error right after authenticated successfully | A token the command needs wasn't in the token cache | Read pac-log.txt, then run pac auth create again |
pac env list says No token cache item found … globaldisco.crm.dynamics.com | The active profile has no token for that service in the cache | Create a new profile with pac auth create |
The new profile isn't in pac auth list | The command crashed before saving it | Sign in again |
FAQ
Did the crash leave a broken profile?
No. pac auth list didn't show one, and the log has no line about saving it. The successful run logged Adding profile of Kind UNIVERSAL at the end.
Why does signing in need the solution checker?
The log shows pac auth create getting a token for the checker service while creating the profile, on both runs. Microsoft's reference doesn't say why. One command that needs that service is pac solution check, which, in the reference's words, uploads a solution "to run against the Power Apps Checker service."
Where do I find the log?
At the path the crash message prints. On this Mac, where the CLI is installed as a .NET tool, it was in the tool's own folder: ~/.dotnet/tools/.store/microsoft.powerapps.cli.tool/2.16.1/microsoft.powerapps.cli.tool/2.16.1/tools/net10.0/any/logs/pac-log.txt.
Conclusion
No token cache item found of UNIVERSAL kind stopped pac auth create after a successful browser sign-in, while the command was fetching a token for the checker service, and before it saved the profile. Microsoft doesn't document it. Check pac auth list, run the same command again, and approve the new code.
Additional Resources
- pac auth:
create,listand the other profile commands. - Use the Power Apps checker web API: the service at
api.advisor.powerapps.com.
