Here is the entire code:
Code: Select all
<project name="Harcros FTP Rec" mainModule="Main" version="2.0" logLevel="verbose">
<module name="Main">
<sftp label="Harcros" resourceId="Harcros Sunset" host="#####" port="#####" user="#####" password="#####" timeout="30" connectionRetryAttempts="1" connectionRetryInterval="5" version="1.0" onError="call:Failed">
<get destinationDir="FolderX" whenFileExists="rename">
<fileset dir="FolderY" recursive="false" />
</get>
</sftp>
<exitProject version="1.0" />
</module>
<module name="Failed" disabled="true">
<sendEmail resourceId="Delek Mail" toList="####" version="2.0">
<from address="[email protected]" />
<subject>
<![CDATA[Harcros FTP Rec Failed]]>
</subject>
<message>
<![CDATA[Did not receive acknowledgement. Check to see if a 210 was sent . If there is not one, contact Harcros and make sure they receive interchange.]]>
</message>
</sendEmail>
<exitProject version="1.0" />
</module>
</project>
Debug:
Code: Select all
Jan 6, 2017 9:39:37 AM INFO Start Date and Time: 1/6/17 9:39:37 AM
Jan 6, 2017 9:39:37 AM INFO Job Number: 1000000000295
Jan 6, 2017 9:39:37 AM INFO Project Name: /jwright/Harcros FTP Rec
Jan 6, 2017 9:39:37 AM INFO Submitted By: jwright
Jan 6, 2017 9:39:37 AM INFO Submitted From: Administrator UI
Jan 6, 2017 9:39:37 AM INFO GoAnywhere 5.3.4 running on Windows Server 2012 6.2 (amd64)
Jan 6, 2017 9:39:38 AM INFO ******************** Debug Mode ********************
Jan 6, 2017 9:39:38 AM INFO Executing project 'Harcros FTP Rec'
Jan 6, 2017 9:39:38 AM INFO Project location: C:\Program Files\Linoma Software\GoAnywhere\userdata\projects\jwright\Harcros FTP Rec.xml
Jan 6, 2017 9:39:38 AM INFO Executing module 'Main'
Jan 6, 2017 9:39:50 AM INFO Executing task 'sftp 1.0 (Harcros)'
Jan 6, 2017 9:39:50 AM INFO Connecting to '####' at port '####' as user '####'
Jan 6, 2017 9:39:51 AM INFO Executing sub-task 'get'
Jan 6, 2017 9:39:51 AM INFO Closed the FTP connection
Jan 6, 2017 9:39:51 AM ERROR Bad message
Jan 6, 2017 9:39:51 AM INFO Routing the control to the module 'Failed'
Jan 6, 2017 9:39:51 AM INFO Executing task 'sendEmail 2.0'
Jan 6, 2017 9:39:51 AM INFO Connecting to mail server: ####
Jan 6, 2017 9:39:51 AM INFO Opened the connection
Jan 6, 2017 9:39:51 AM INFO Message is delivered successfully
Jan 6, 2017 9:39:51 AM INFO Message 'Harcros FTP Rec Failed' was sent to 1 recipient(s)
Jan 6, 2017 9:39:51 AM INFO The message has been delivered to the following 1 addresses:
J####
Jan 6, 2017 9:39:51 AM INFO Closed the connection
Jan 6, 2017 9:39:51 AM INFO Finished task 'sendEmail 2.0'
Jan 6, 2017 9:39:51 AM INFO Executing task 'exitProject 1.0'
Jan 6, 2017 9:39:51 AM INFO Exiting project 'Harcros FTP Rec'
Jan 6, 2017 9:39:51 AM INFO Finished task 'exitProject 1.0'
Jan 6, 2017 9:39:51 AM INFO Finished project 'Harcros FTP Rec'
Jan 6, 2017 9:39:51 AM INFO End Date and Time: 1/6/17 9:39:51 AM