cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
karamem0
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
jo
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
jo
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Users online (73,249)