Deleting a remote file
Deleting a remote file
I get this error when I try.
INFO Executing sub-task 'delete'
1/28/13 6:16:01 PM INFO Closed the FTP connection
1/28/13 6:16:01 PM ERROR com.linoma.dpa.util.LocalFile
1/28/13 6:16:01 PM INFO Finished project 'GetServiceNow - working version'
1/28/13 6:16:01 PM ERROR [8099 - sftp] An unexpected error occurred.
com.linoma.dpa.util.LocalFile
com.linoma.dpa.runtime.JobFailedException: [8099 - sftp] An unexpected error occurred.
com.linoma.dpa.util.LocalFile
Any help is appreciated
- jklare
- Posts: 3
- Joined: Mon Jan 28, 2013 8:44 am
Re: Deleting a remote file
Caused by: java.lang.ClassCastException: com.linoma.dpa.util.LocalFile
at com.linoma.dpa.tasks.ftp.DeleteAction.deleteFiles(Unknown Source)
at com.linoma.dpa.tasks.ftp.DeleteAction.execute(Unknown Source)
at com.linoma.dpa.tasks.ftp.AbstractFTPTask.execute(Unknown Source)
at com.linoma.dpa.ModuleV2.execute(Unknown Source)
at com.linoma.dpa.Project.execute(Unknown Source)
at com.linoma.dpa.runtime.Job.executeProject(Unknown Source)
- jklare
- Posts: 3
- Joined: Mon Jan 28, 2013 8:44 am
Re: Deleting a remote file
- Code: Select all
<project name="FTP Get and Delete" mainModule="Main" version="2.0">
<module name="Main">
<ftp resourceId="192.168.1.54" version="1.0">
<get destinationDir="/demo" whenFileExists="overwrite" processedSourceFilesVariable="ProcessedFiles">
<fileset dir="/temp">
<wildcardFilter>
<include pattern="*.txt" />
</wildcardFilter>
</fileset>
</get>
<delete inputFilesVariable="${ProcessedFiles}" />
</ftp>
</module>
</project>
Software Support
Linoma Software
- Support_Julie
- Support Specialist
- Posts: 77
- Joined: Thu Mar 05, 2009 2:49 pm
- Location: Ashland, NE USA
Re: Deleting a remote file
- jklare
- Posts: 3
- Joined: Mon Jan 28, 2013 8:44 am
Re: Deleting a remote file
- bmcgoldrick
- Posts: 2
- Joined: Thu Feb 21, 2013 2:12 pm
Re: Deleting a remote file
Julie's example has just that identified. It performs an FTP/get then a Delete of the files (ProcessedFiles)
Let us know if you have any other questions.
Sr. Product Specialist
(402) 944.4242 x754
- Support_Rick
- Support Specialist
- Posts: 27
- Joined: Tue Jul 17, 2012 1:12 pm
Re: Deleting a remote file
I was confused because she says in her post "I am guessing that you are trying to delete the files on you local server rather than the remote server."
Thanks.
- bmcgoldrick
- Posts: 2
- Joined: Thu Feb 21, 2013 2:12 pm
Re: Deleting a remote file
I thought that's what you were looking to do. If so, just copy the code from her example above, change the resource ID's, Folders and/or File Patterns and it should do exactly what you need it to do!
Please let us know...
Sr. Product Specialist
(402) 944.4242 x754
- Support_Rick
- Support Specialist
- Posts: 27
- Joined: Tue Jul 17, 2012 1:12 pm
Who is online
Users browsing this forum: No registered users and 0 guests