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: (:) [Get-JwtTokenClaims], MethodInvocationException
+ FullyQualifiedErrorId : FormatException,Get-JwtTokenClaims

 

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps Staff jo
Power Apps Staff

Re: Add-PowerAppsAccount sometimes fails because FormatException

Hi @karamem0,

 

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

 

Thanks,

James

View solution in original post

2 REPLIES 2
Highlighted
Power Apps Staff jo
Power Apps Staff

Re: Add-PowerAppsAccount sometimes fails because FormatException

Hi @karamem0,

 

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

 

Thanks,

James

View solution in original post

supportjp2
Level: Powered On

Re: Add-PowerAppsAccount sometimes fails because FormatException

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

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Users online (5,149)