cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
shahar
Level: Powered On

BUG API with parenthesis: Unable to match incoming request to an operation

I am creating a custom connector to a REST end point that contains parenthesis.  The method called, a SharePoint Online user profile request is as follows:

https://<site name>/_api/SP.UserProfiles.PeopleManager/GetPropetiesFor(@v)?@v=''i:0#.f|membership|<upn>'

I'm able to successfully get the data in the test tab for custom connector, but in the application it fails with a 404 and the message 'Unable to match incoming request to an operation'.  

When I inspect the request I see that the parenthesis around (@v) were converted to %28@v%29. I If I convert it back to (@v) (using Fiddler Compose) I see the data returned correctly.  Also, other operations, e.g. /GetMyProperties, are working fine.

I realize that the URI is equivalent, but when PowerApps changes the method signature the SharePoint API is no longer able to recognize it.  Is there any way to prevent PowerApps from doing that?  Looks like a bug.   SharePoint and other REST specs (SAP) use this construct quite a lot!  So, this can potentially impact quite a few development efforts

2 REPLIES 2
Community Support Team
Community Support Team

Re: API with parenthesis: Unable to match incoming request to an operation

This should be related to the URL encoding.

There is an idea submitted on this part:

Decode URL in PowerApps

Currently I have no workaorund to deal with such a situation.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
shahar
Level: Powered On

Re: API with parenthesis: Unable to match incoming request to an operation

The reference is not really related to the issue. This is a bug in the way that PowerApps references the API URI.  You are not supposed to encode the URL path.  

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 92 members 3,645 guests
Please welcome our newest community members: