ERROR cannot be cast to com.linoma.commons.file.BaseFile

View some of the Frequently Asked Questions to our support staff. Included are some tips and tricks making this forum ideal for users getting started with GoAnywhere MFT. Note: Users can reply to existing topics but only our support staff can add new topics to this forum.
1 post Page 1 of 1


Support Specialist
Posts: 66
Joined: Thu Mar 05, 2009 3:49 pm

Post by Support_Duane » Fri Nov 08, 2019 4:42 pm
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.
1 post Page 1 of 1