Hi Rob, 

If you read carefully Bart stated that you can use the JavaScript action to 
handle the logs. 
i.e. 


    * that you 
        * as the sftp step as normal 
        * add a JS step after that 
        * draw a hop to the JS step 
        * configure the hop to output "previous results" 
        * that you use the JS to write the logs 

Alternatively use the same setup but substitute the JS with a 'workflow' step. 
The 'workflow' step should be pointed at a workflow (common to all your code) 
that has a 'workflow log' step and writes the logs to the database of your 
choice. 

diego 

[ https://www.bizcubed.com.au/ | 
                                                                
                                                                                
             ]  Diego Mainou 
Product Manager 
M. +61 415 152 091 
E. [ mailto:[email protected] | [email protected] ] 
[ https://www.bizcubed.com.au/ | www.bizcubed.com.au ]          [ 
https://www.bizcubed.com.au/ | 
                                                                                
                                                                                
                                                                                
                                                                                
                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                         ] 


From: "Rob Burgess" <[email protected]> 
To: "users" <[email protected]> 
Sent: Thursday, 16 May, 2024 6:00:48 AM 
Subject: Error handling - Put a file with SFTP action 

Hi 

Do you have any examples of uploading files to SFTP using a JavaScript action 
in Hop? 

Thanks 

Rob 


------ Original Message ------ 
>From "Bart Maertens" < [ mailto:[email protected] | [email protected] 
>] > 
To [ mailto:[email protected] | [email protected] ] 
Date 16/05/2024 5:47:09 am 
Subject Re: Error handling - Put a file with SFTP action 




Hi Rob, 

There may be other options, but you can get to previous results and logging 
from a Javascript action [1] or send your workflow logs to a workflow log [2] 
and process them in the receiving pipeline. 

[1] [ https://hop.apache.org//manual/latest/workflow/actions/eval.html | 
https://hop.apache.org//manual/latest/workflow/actions/eval.html ] 
[2] [ https://hop.apache.org//manual/latest/metadata-types/workflow-log.html | 
https://hop.apache.org//manual/latest/metadata-types/workflow-log.html ] 

Regards, 
Bart 


On Wed, May 15, 2024 at 5:05 AM Rob Burgess < [ mailto:[email protected] | 
[email protected] ] > wrote: 

BQ_BEGIN
Hi 

How do I capture and handle errors when using the 'Put a file with SFTP' 
action? 

Thanks 

Rob 




BQ_END


Reply via email to