web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "Unauthorized" error f...
Power Automate
Unanswered

"Unauthorized" error for SFTP connector

(0) ShareShare
ReportReport
Posted on by

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

 

 

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at

    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

  • Community Power Platform Member Profile Picture
    on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard