cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

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

Hi @karamem0,

 

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

 

Thanks,

James

View solution in original post

2 REPLIES 2
Power Apps
Power Apps

Hi @karamem0,

 

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

 

Thanks,

James

View solution in original post

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Kudoed Authors
Users online (12,199)