Hello
Just need some guidance:
I'm currently using SystemCaller + AttributeFilter (0 & 1 for error logging) as a workspace to run a batch file daily which does the following:
- Delete existing log files
- Create WinScp log file
- After setting some variables then log in to SFTP server using WinSCP commands
- Upload a file, check its existence on remote server and if exist then upload the respective ".Done" empty file from local server. Exit with Code 0. If failure then abort and always exit with Code 1.
- Catch error in case of failure and output it to error.txt (it will tell me which file failed)
- Script repeats the same process for the remaining 4 datasets.
E-mailer attached to attribute filter 1
That's working.
I want to:
Option 1
Use automation to achieve the same result albeit SFTP "External Action" fails to validate the connection and states "Invalid - Path not found". For now I've given up on trying to understand so will skip that option.
Option 2
SystemCaller + AttributeFilter saved as a workspace called Script (We'll call it that)
I upload Script then link it to an external action (Email) if failure.
How would the workspace be setup to achieve this because if workspace return code 1, from FME's perspective the translation was successful.
Thanks
Sameer