cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Simple Flow FTP example.

BryanK
14-Alexandrite

Simple Flow FTP example.

Hi all,

I'm trying to test a simple workflow task in flow, using the FTP utility.

My idea was to get connect to my ftp server, upload a text file from one directory, create a directory, and then download that file there.

The documentation doesn't have any examples and all that I'm able to do successfully is create a directory.
Does anybody have an example of how to do this or can anyone point me in the right direction?

 

The upload file action gives the following error.

BryanK_0-1599022534265.pngBryanK_1-1599022558855.png

I have tried all the different paths that I can think of.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
emscur
12-Amethyst
(To:BryanK)

Hi Bryan,

The file needs to be written first before it can be uploaded to the FTP server. Find an example below:

  1. Drag a File > Write File connector to the screen
    • This connector can have any input to generate the string that will be written to the file
  2. Drag a FTP > Upload File connector to the screen 
    • Set the Local File Path to the output File Path of the Write File connector
    • Set the Remote File Path to the path you want the file written in the FTP server
      • Keep in mind the file will be written to the specified FTP root directory in the remote server
  3. Hit Save
  4. Execute the workflow

 

Find the simple workflow structure example below:

 

UploadFileWF.PNG

 

 

 

 

 

 

 

 

 

 

Find the Upload File connector details below:

 

UploadFileSpecs.PNG

 

The Upload File FTP connector is ideal for uploading files written during workflow execution. This explains why you were receiving Invalid path provided errors.

I hope you find this information helpful.

 

Thanks,

Emmanuel

 

View solution in original post

4 REPLIES 4
gnandyala
13-Aquamarine
(To:BryanK)

Hi Bryan,

 

Did you try using copy service from file transfer subsystem and check if paths are correct.

 

Thank you,

Gautham

BryanK
14-Alexandrite
(To:gnandyala)

Hi,

Yes i did try that.

I have also tried various other methods to but up to this point nothing has worked. 

I have placed this into the failed experiment box for now and will return to it once I have at least something working.

Thanks for the reply.

 

emscur
12-Amethyst
(To:BryanK)

Hi Bryan,

The file needs to be written first before it can be uploaded to the FTP server. Find an example below:

  1. Drag a File > Write File connector to the screen
    • This connector can have any input to generate the string that will be written to the file
  2. Drag a FTP > Upload File connector to the screen 
    • Set the Local File Path to the output File Path of the Write File connector
    • Set the Remote File Path to the path you want the file written in the FTP server
      • Keep in mind the file will be written to the specified FTP root directory in the remote server
  3. Hit Save
  4. Execute the workflow

 

Find the simple workflow structure example below:

 

UploadFileWF.PNG

 

 

 

 

 

 

 

 

 

 

Find the Upload File connector details below:

 

UploadFileSpecs.PNG

 

The Upload File FTP connector is ideal for uploading files written during workflow execution. This explains why you were receiving Invalid path provided errors.

I hope you find this information helpful.

 

Thanks,

Emmanuel

 

slangley
23-Emerald II
(To:BryanK)

Hi @BryanK.

 

If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Top Tags