Page 1 of 1

ERROR com.linoma.ga.projects.tasks.ftp.RemoteFile cannot be cast to com.linoma.commons.file.BaseFile

Posted: Fri Nov 08, 2019 4:42 pm
by Support_Duane
The message means that you are attempting to move/rename/delete a remote file as if it were a local file. The file must first be downloaded before it can be moved/renamed/deleted, etc on the local system.

For example, an SFTP Get task was used to pull files into the workspace and a Processed Source Files variable was created which contained the names and locations of the files on the SFTP server. This same variable was then used as input to a SFTP Put task to another server. Since the locations referenced did not exist on the local system the ‘RemoteFile…BaseFile’ error was produced.

The file list created from a remote server cannot be used as if it were a local file list. Instead the Destination Files Variable on the SFTP Get task should be used because that will reference the files in the workspace.

The reverse is also true, you cannot use a local file list to move/rename/delete files on a remote server.