cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
karamem0
Level: Powered On

Add-PowerAppsAccount sometimes fails because FormatException

When invoke Add-PowerAppsAccount cmdlet in PowerShell, it causes an error if IdToken contains '-' charactors.

 

+ $claims = Get-JwtTokenClaims -JwtToken $authResult.IdToken
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Smiley Happy [Get-JwtTokenClaims], MethodInvocationException
+ FullyQualifiedErrorId : FormatException,Get-JwtTokenClaims

 

It is necessary to convert '-' to '+' in Get-JwtTokenClaims function.

 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerApps Staff jo
PowerApps Staff

Re: Add-PowerAppsAccount sometimes fails because FormatException

Hi @karamem0,

 

Thanks for the heads-up, we'll investigate this ASAP.

 

Thanks,

James

2 REPLIES 2
PowerApps Staff jo
PowerApps Staff

Re: Add-PowerAppsAccount sometimes fails because FormatException

Hi @karamem0,

 

Thanks for the heads-up, we'll investigate this ASAP.

 

Thanks,

James

supportjp2
Level: Power Up

Re: Add-PowerAppsAccount sometimes fails because FormatException

I am troubled with the same error.
Is there a workaround?