Error 7 at FTP Put File VI

Updated Oct 25, 2019

Reported In

Software

  • LabVIEW

Issue Details

I'm attempting to use the FTP Put File VI to copy a local file and put it onto a FTP Server. When trying to run my code, I get an Error 7 at FTP Put File VI. How can I avoid this error?

Solution

This error occurs when the path into the 'local path' input of the FTP Put File VI does not point to a valid file. Make sure this path points to a file that exists on the local machine.

Additional Information

This error often occurs when the the 'Unique Temporary File Path' output of Generate Temporary File Path VI is directly wired into the 'local path' input of FTP Put File VI. The Generate Temporary File Path VI returns a path to a temporary file but DOES NOT create it.

Look at the FTP Put and Get Files.vi example in the LabVIEW Example Finder to see an example of writing to the temporary file path in order to create the file.