dave-csc opened a new issue, #4045:
URL: https://github.com/apache/hop/issues/4045

   ### Apache Hop version?
   
   2.9.0
   
   ### Java version?
   
   openjdk version "21.0.2" 2024-01-16
   
   ### Operating system
   
   Linux
   
   ### What happened?
   
   Steps to reproduce:
   - create a pipeline that generates a recordset with the fields requested by 
the Move files action: you can simply add a Data grid (with the fields 
src_path, dst_path and wildcard, and respective values) and link it with a Copy 
rows to result
   - create a workflow that uses the above pipeline and link it to a Move files 
action
   - in the Move files action, check "Copy previous results to args" and 
"Destination is a file"
   
   When dealing with local files, the action fails with the following error:
   ```
   2024/06/12 10:01:33 - Move files - found [1] argument(s) from previous result
   2024/06/12 10:01:33 - Move files - Processing row source File/folder source 
: [/work/hop/mount/iraiser/in/expIraiser_2024_06_07.csv] ... destination 
file/folder : 
[/work/hop/mount/iraiser/in/_deleteme_expIraiser_2024_06_07.csv]... wildcard : 
[null]
   2024/06/12 10:01:33 - Move files - ERROR: Can not move file/folder 
[/work/hop/mount/iraiser/in/expIraiser_2024_06_07.csv] to 
[file:///work/hop/mount/iraiser/in/_deleteme_expIraiser_2024_06_07.csv]. 
Exception : [
   2024/06/12 10:01:33 - Move files - Could not extract the file name from the 
URI: file:///work/hop/mount/iraiser/in/_deleteme_expIraiser_2024_06_07.csv
   2024/06/12 10:01:33 - Move files - ]
   2024/06/12 10:01:33 - Move files - =======================================
   2024/06/12 10:01:33 - Move files - Total files in error : 1
   2024/06/12 10:01:33 - Move files - Total files successfully processed : 0
   2024/06/12 10:01:33 - Move files - =======================================
   2024/06/12 10:01:33 - _stub-move-files - Finished action [Move files] 
(result=[false])
   ```
   
   When dealing with remote files (like those in an sFTP server), Hop throws an 
Exception: it cannot print an error because a variable `destinationfilefolder` 
is null (see #3985 for the log trace).
   
   In both cases, the Detailed log shows that the file names and the (empty) 
wildcard are correctly passed from the pipeline to the Move files action
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: Actions, Component: Transforms


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to