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

AuthorizationFailed: the authentication credentials are not valid

So I'm at mile 499 of a 500 mile trip with a Photo to Flow to SharePoint Online PowerApp with HTTP Flow as per this: https://www.youtube.com/watch?v=mp-8B1fLrqs

 

Getting the following error in PowerApps:

 

PAtoFLOWtoSPO.PostPhotoSPO failed:
{
"error": {
   "code":"AuthorizationFailed",
   "message":"The authentication credentials are not valid."
   }
}

 

 

I get this error when I hover over the "Submit" button's OnSelect function:

     

ForAll(PhotoList, PAtoFLOWtoSPO.PostPhotoSPO(FileName,Photo)) 


The Flow/Connector call & parameters are underlined with the squiggly red line. 😞 
App Checker says there are no errors.

 

In Flow, it doesn't show that it was even hit. Nothing in the run history. Makes me think it's an issue in PowerApps?? Or between PowerApps & Flow??

 

All is successful when testing from Postman and from within the PowerApps custom connector setup. In PowerApps, under Data/Connections, the PhotoToSPO connection details show a status of "Connected", but under "Apps using this connection" and "Flows using this connection" nothing is listed. ??!!

 

I've verified, multiple times, the swagger file path, api-version, sp, sv & sig etc. values. Been thru instructions from cleverworkarounds.com a few times, too.

 

Authentication, as shown in the video, is not set to anything. Is this now required? If so, how do I set it up?

 

Help??

 

1 ACCEPTED SOLUTION

Accepted Solutions
jsvest1971
Frequent Visitor

Not sure what happened here, but things are now working. Here's my guess as to what happened: 

 

I discovered that the destination folder in SharePoint that I was trying to use was our foreman's personal OneDrive for Business folder.  I have access to it since I can browse it and could push a photo to that location from Postman.  However, for some reason I kept getting the error when pushing from PowerApps using the custom connector.  I then changed the Flow destination to a "bonafide" SharePoint folder (which is probably OneDrive in the background too) and things started working.

 

Any insight as to whether this assumption is true would be helpful for the future.

View solution in original post

2 REPLIES 2
jsvest1971
Frequent Visitor

Not sure what happened here, but things are now working. Here's my guess as to what happened: 

 

I discovered that the destination folder in SharePoint that I was trying to use was our foreman's personal OneDrive for Business folder.  I have access to it since I can browse it and could push a photo to that location from Postman.  However, for some reason I kept getting the error when pushing from PowerApps using the custom connector.  I then changed the Flow destination to a "bonafide" SharePoint folder (which is probably OneDrive in the background too) and things started working.

 

Any insight as to whether this assumption is true would be helpful for the future.

View solution in original post

I know I'm late in this response. I wanted to post this in case it helps someone else dealing with this problem. 

 

I had the error message you had as well: 

The authentication credentials are not valid.

 

I was receiving this error when I tried to use an Action in my Custom Connector. It had been working, then suddenly stopped working. I'm not sure which change to the Custom Connector caused the issue - I removed a couple of Actions that I no longer needed and changed the security as well. 

 

When I exported the Custom Connector's JSON and reviewed it, I could still see references to the Actions I had deleted. Additionally, I didn't see the Authentication details I had expected to. 

 

I ended up recreating the Custom Connector and it resolved the issue. 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,581)