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 / SFTP Get File Content ...
Power Automate
Unanswered

SFTP Get File Content Timeout

(0) ShareShare
ReportReport
Posted on by 8

 

We're encountering 504 Gateway timeout for in the SFTP "Get file content" step for files below 50MB.

 

The documentation says the limit is 50mb. Kindly advise.

 

{
 "error": {
 "code": 504,
 "source": "asia-001.azure-apim.net",
 "clientRequestId": "f5eba0ed-3831-45cd-ac7c-919e0d245d3e",
 "message": "BadGateway",
 "innerError": {
 "status": 504,
 "message": "Request to the SFTP server 'xxxxx(obfuscated)' has timed out.\r\nclientRequestId: f5eba0ed-3831-45cd-ac7c-919e0d245d3e",
 "source": "sftp-sea.azconn-sea.p.azurewebsites.net"
 }
 }
}

 

 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @jarellm 

     

    Can you please post a screenshot of the flow configuration. Although your file is less than 50MB, it still could be a huge one and the action might be taking a lot of time to retrieve the content. You can increase the timeout by changing the settings in the action as shown in the screenshot below:hah.PNG

    This is my sharepoint get file content action. You can access the settings n your SFTP action by clicking the ... on the top right corner of the action and click settings. Enter P1D so that the time out increases to 1 day. Run the flow and see if you continue to get the same error. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • jarellm Profile Picture
    8 on at

    Thanks for the suggestion @yashag2255 

     

    I did try this for a file well over 50mb but it still failed so maybe the timeout will work this time for a smaller file.

     

    Will give it a try.

  • jarellm Profile Picture
    8 on at

    @yashag2255 Unfortunately that stil did not work.

     

     

    image.pngimage.png

  • v-bacao-msft Profile Picture
    on at

    Hi @jarellm ,

     

    Have you tested other actions of SFTP connector?

    MS Flow does have a limit on the size of the file content. If it exceeds 50M, the execution result may not meet expectations.

    From the point of view of error message reporting, it seems that this is also related to the connection you created, and Request display timeout.

    You could try to create a new connection based on the link below and use a file below 50M for testing.

    microsoft-ms-flow-sftp-connector-tips-tricks-errors

     

    Best Regards,

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard