webMethods

 View Only

 Using webMethods MFT - trying to pull files from an SFTP server but running into issues

Jump to  Best Answer
Wayne Leishman's profile image
Wayne Leishman posted Wed April 30, 2025 10:47 AM
I'm running into an issue with my scheduled action in wM MFT. I have not been able to figure it out.
I have a virtual folder connection to my SFTP server:

I can connect to it using FileZilla and manage the files. My home directory is /home/wayne. Below that directory I created a sub-directory called inboundfiles. This is where I want wM MFT to pull files from using a scheduled action.

In my scheduled action, I have a Find step as the first task step to read the virtual folder (that is connected to my remote virtual folder). I also selected "Specific file name" and defined a value of inboundfiles/*
I figured I need this to find in that folder.
After enabling and schedule the Action Logs, the action task steps run successfully, however, no files are found. I have tried many variations of the value I used in the specific file name field but I still see 0 files found
HOWEVER, if I change my Find to look for Any file name, then it finds all the directories of the SFTP server root.
Here's my Find any file.
Here's what my Action log shows:
Here's the SFTP server directory list from the root:
Obviously I'm doing something incorrectly or missing a setting.
If anyone has any ideas please let me know.
Wayne Leishman's profile image
Wayne Leishman  Best Answer

This has been figured out. 

On my Find step in my Action I had to append "/home/wayne/inboundfiles" to the virtual  folder name.

So my Find now the virtual folder contains this value:

/HW_demo_inbound_scheduled_pull/incomingFromRemote/home/wayne/inboundfiles

Now when my Action runs the Find, it actually finds files within that directory.

Graham Anderson's profile image
Graham Anderson

Hi Wayne,

I haven't yet used a virtual folder like you have there, but I'm hoping it's a simple solution of combining the virtual and remote paths in the find step. Have you tried this? eg:

Cheers!
Graham