ERROR com.linoma.ga.projects.tasks.ftp.RemoteFile cannot be cast to com.linoma.commons.file.BaseFile
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.