SFTP step in flow action - copy file to instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2022 04:36 AM
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:
I'm getting timeouts when I try to copy the file:
Out of curiosity getting all file names is working:
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!
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2022 07:20 AM
I played with all connection settings and now I'm getting this:
Regarding this error I just found this: Flowdesigner SFTP Step - Copy Files to the Instance not working
I will test it and report back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2023 08:14 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2024 11:45 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2024 03:07 PM
@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