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
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

View solution in original post

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

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 Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,133)