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.

 


Accepted Solutions
PowerApps Staff Rank jo
PowerApps Staff

Re: Add-PowerAppsAccount sometimes fails because FormatException

Hi @karamem0,

 

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

 

Thanks,

James


All Replies
PowerApps Staff Rank jo
PowerApps Staff

Re: Add-PowerAppsAccount sometimes fails because FormatException

Hi @karamem0,

 

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

 

Thanks,

James