Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Error creating FTP connection in Flow

(0) ShareShare
ReportReport
Posted on by 16

Hi all,

 

A few months ago I created a FTP connection for one of my flows and everything was working perfectly. Now the flow using this connection started to present an error. When I tried to create the connection again, I started to get this error: "Unable to connect to the remote server: 'ftp.XXXX.com.br'. Please verify server logs to troubleshoot connection issues". 

 

I've whitelisted all the possible IPs Flow might be using, considering the environment region I'm using.

 

One test that worked only once was to create a new environment with a different region. In this case Flow was able to connect to the FTP server at the first time. Although, when trying to reconnect, it didn't work anymore.

 

Does anyone have been through this issue or have any clue on how to solve it?

 

Thank you.

  • LucasMartins Profile Picture
    LucasMartins 16 on at
    Re: Error creating FTP connection in Flow

    Hi @v-yamao-msft ,

     

    Thank you for your response.

    I'm using the standard FTP connector, not the SFTP. I believe the only useful tip on the link you mentioned is the IP Firewall rules, which I've already whitelisted.

     

    Anyway, thank you!

     

    I'm attaching my connection details with the error presented.

     

    FTP Connection.PNG

     

    Furthermore, at some point Flow presented this error:

    "Please check your account info and/or permissions and try again. Details: Error from token exchange: The connection (europe-001/ftp/20a441b618f640e08b54131387495c30) is not found. Please create new connection and change your application to use the new connection."

  • v-yamao-msft Profile Picture
    v-yamao-msft on at
    Re: Error creating FTP connection in Flow

    Hi @LucasMartins ,

     

    Please check the following doc on Microsoft (MS) Flow SFTP connector tips, tricks, and errors:

    https://blog.neilsabol.site/post/microsoft-ms-flow-sftp-connector-tips-tricks-errors/

     

    Hope it could be helpful for you.

     

    Best regards,

    Mabel          

     

  • LucasMartins Profile Picture
    LucasMartins 16 on at
    Re: Error creating FTP connection in Flow

    Yes, it is inside a firewall. Although, I've whitelisted all the IPs necessary for MS Flow, according to the documentation. Even more, we got to the point of opening the firewall for every IP so we could test if the connection would be successful.

     

    We also performed a test using an external network. In this test we were able to connect to the FTP from outside Flow, but not from inside.

  • Pstork1 Profile Picture
    Pstork1 64,996 on at
    Re: Error creating FTP connection in Flow

    Is your FTP server on-premises inside a firewall?  Remember the Flow will be coming from the cloud, not your local network.

  • LucasMartins Profile Picture
    LucasMartins 16 on at
    Re: Error creating FTP connection in Flow

    [UPDATE]

     

    I tried to set the connection using wrong credentials in order to test if the problem was within my user. At the first time Flow presented a message of "invalid credentials". All the next tentatives returned the "Unable to connect to the remote server" error.

     

    Seems like Flow is not even being able to reach my FTP server.

  • LucasMartins Profile Picture
    LucasMartins 16 on at
    Re: Error creating FTP connection in Flow

    Yes, outside flow and using the same credentials the connection works perfectly.

     

    Regarding the logs, I don't have access.

  • Pstork1 Profile Picture
    Pstork1 64,996 on at
    Re: Error creating FTP connection in Flow

    Do you have access to the FTP server and can you check the logs there? Can you create an FTP connection with the server outside of Flow?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics