Set-AdminPowerAppApisToBypassConsent gives error

%3CLINGO-SUB%20id%3D%22lingo-sub-339149%22%20slang%3D%22en-US%22%3ESet-AdminPowerAppApisToBypassConsent%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-339149%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20having%20trouble%20with%20setting%20the%20following%20command%20%22Set-AdminPowerAppApisToBypassConsent%22%3CBR%20%2F%3EReceiving%20the%20same%20error%20on%20multiple%20tenants.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3EAdd-PowerAppsAccount%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3ESet-AdminPowerAppApisToBypassConsent%20%E2%80%93AppName%20%22ab9f33ed-9f97-4851-94a8-8f8ae52409a0%22%20-ApiVersion%202017-05-01%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EError%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EInvoke-WebRequest%20%3A%20%7B%22error%22%3A%7B%22code%22%3A%22InvalidRequestContent%22%2C%22message%22%3A%22The%20request%20content%20was%20invalid%20and%20could%20not%20be%20deserialized%3A%20'Unable%20to%20translate%20bytes%20%5BE9%5D%20at%20index%2097%20from%20specified%20code%20page%20to%20Unicode.'.%22%7D%7D%3C%2FP%3E%3CP%3EAnyone%20else%20facing%20this%20problem%2C%20or%20any%20thoughts%20on%20a%20solution%20for%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3ERemy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-339149%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-361090%22%20slang%3D%22en-US%22%3ERe%3A%20Set-AdminPowerAppApisToBypassConsent%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361090%22%20slang%3D%22en-US%22%3E%3CP%3EFound%20the%20cause%20of%20this%20error.%20Since%20my%20name%20is%20written%20with%20%C3%A9%26nbsp%3B%20(R%C3%A9my)%2C%20that%20partular%20error%20showed%20up.%3C%2FP%3E%3CP%3EPerforming%20the%20same%20steps%20with%20another%20account%20did%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi All,

 

I'm having trouble with setting the following command "Set-AdminPowerAppApisToBypassConsent"
Receiving the same error on multiple tenants. 


Add-PowerAppsAccount
Set-AdminPowerAppApisToBypassConsent –AppName "ab9f33ed-9f97-4851-94a8-8f8ae52409a0" -ApiVersion 2017-05-01

 

Error:

Invoke-WebRequest : {"error":{"code":"InvalidRequestContent","message":"The request content was invalid and could not be deserialized: 'Unable to translate bytes [E9] at index 97 from specified code page to Unicode.'."}}

Anyone else facing this problem, or any thoughts on a solution for this?

 

Thanks!

Remy

1 Reply
Highlighted

Found the cause of this error. Since my name is written with é  (Rémy), that partular error showed up.

Performing the same steps with another account did work.