SFTP step in flow action - copy file to instance

Florian Franke
Tera Contributor

Hello,

I'm trying to implement a flow action which contains a SFTP step. I want to get a file from a SFTP server and copy it to my servicenow instance (create an attachment for a CI record).

What's working: Creating new files on the SFTP server via a flow action.

What's not working: I can't delete or copy files from the SFTP via the flow action.

What I tested: SFTP connection from the MID server is working fine via powershell and I can do all operations (create, get, delete files).

I can't find an example how to get a file from the SFTP in the documentation: https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/flow-designer/reference/copy-files-instace.html

But there are so less parameters I basically tested all possibilties in the sftp step:

find_real_file.png

I'm getting timeouts when I try to copy the file:

find_real_file.png

Out of curiosity getting all file names is working:

find_real_file.png

I'm running out of idea what's going wrong. Maybe someone can point me in the right direction or give an exmple how to configure correctly the SFTP step.

Thanks in advance!

6 REPLIES 6

Florian Franke
Tera Contributor

I played with all connection settings and now I'm getting this:

find_real_file.png

Regarding this error I just found this: Flowdesigner SFTP Step - Copy Files to the Instance not working

I will test it and report back.

Hi Florian!

Did you ever get this working?  I'm having a problem connecting to the SFTP server via that action.  It keeps erroring with "Failed to authenticate with user: XXXXXX" even though I can connect just fine with that username/pwd via a standard SFTP client and Powershell.

 

I thought it was working before the Vancouver upgrade, but may not have been.  Just checking my bases here.

In case you still have this issue:  I had an SFTP action that stopped working after our recent Vancouver upgrade, with the same error.  I recreated the credentials changing from Basic Auth to SSH and that corrected the problem.

Abdul Aamer
Tera Contributor

@Florian Franke could you please help me know what credentials did you used to connect to the sftp server here, is the ssh credentials or the windows credentials.
As i am using the windows credentials and getting the error as "TCP connection failure"
Best Regards

Abdul Aamer