SFTP Step: Copy files to this instance not working

acf
Tera Contributor

Hi! 

 

I am trying to create a new SFTP step for copy files from the SFTP server to ServiceNow instance. I have this data but it's not working:

acf_0-1734699763555.png

Where the credential alias is a credential type, with a SSH Private Key credential created (and if I test the credential appears: "Credential Validated")

 

Then I have in the server two csv files inside "/data/share/E-CAT/" path

acf_1-1734699911210.png

But when I tried to test the step this error appears: 

acf_2-1734700014757.png

 

And if I delete the path: 

acf_3-1734700076274.png

The action status is success but the path value is empty and there isn't any record.

 

Could you please help me?

Thank you

 

1 REPLY 1

Runjay Patel
Giga Sage

Hi @acf ,

 

Possible cause.

  1. The file you are trying to copy may not exist at the specified path on the SFTP server.
  2. The MID Server used for the SFTP transfer may not have the correct capabilities or configurations for file transfers.
  3. Incorrect credentials (username, password, or SSH key) are used to connect to the SFTP server.
  4. The specified path in the SFTP step may be incorrect or the file name is dynamically generated and doesn’t match the actual file name.
  5. The target table in ServiceNow where the file should be copied might have restrictions or misconfigurations, or the attachment is not being created.
  6. Large file sizes or unsupported file types might cause the transfer to fail silently.

 

You Check

  1. ECC Queue
  2. Check the MID Server logs for issues related to the file transfer.
  3. Review System Logs > All for errors related to the file transfer process.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------