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

"Unauthorized" error for SFTP connector

Hello,

I am utilizing the Save Gmail attachments to an SFTP server Flow template to trasnfer reports to an SFTP folder. I have two separate flows I am using to identify emails from two different data sources. They are both configured the same way and have the same gmail and SFTP connections. One of the flows has been working perfectly. The other one worked once or twice and then keeps giving me an "Unauthorized" error. How can I fix this?

 

Thanks,

Jordan

 

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: "Unauthorized" error for SFTP connector

Hi @ JG2018,

 

Could you please share a screenshot of the configuration of your flow?

 

Could you please share more details about the error that you mentioned?

Does the error code of 401 or 403 appears?

 

In many cases, flows fail because of an authentication error. If you have this type of error, the error message contains Unauthorized or an error code of 401 or 403 appears. You can usually fix an authentication error by updating the connection: 

  1. At the top of the web portal, click or tap the gear icon to open the Settings menu, and then click or tap Connections.
  2. Scroll to the connection for which you saw the Unauthorized error message.
  3. Next to the connection, click or tap the Verify password link in the message about the connection not being authenticated.
  4. Verify your credentials by following the instructions that appear, return to your flow-run failure, and then click or tap Resubmit.

    The flow should now run as expected.

Please refer to link below to learn more about how to troubleshoting a flow:

https://docs.microsoft.com/en-us/flow/fix-flow-failures#authentication-failures

 

Please let me know if your issue could be solved 

 

Regards,
Alice Zhang

JG2018
Level: Powered On

Re: "Unauthorized" error for SFTP connector

Hi Alice, 

Thanks for your reply. I am not getting any 401 or 403 error code. All it says is "Unauthorized" as in the screenshot below. 

Flow Unauthorized Error.jpg

I have a different flow that is nearly identical to this one except for the Gmail "To" and "From" fields and it is working just fine. Here is the configuration of the flow:

 

SFTP Flow.jpg

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,630)