enricomariac opened a new issue, #5664: URL: https://github.com/apache/hop/issues/5664
### Apache Hop version? hop-client-2.16.0-20250902.091134-1 ### Java version? openjdk version "17.0.16" 2025-07-15 ### Operating system Windows ### What happened? In Mail transform, setting the field for the name of the zip file results in "Zipfilename is empty!" error. It seems that the control for the missing value of the "zip filename" field is in place even if the "zip filename field" is enforced. No error rises if there is a value in the the "zip filename" field. [mail_transform_zip_attachment.zip](https://github.com/user-attachments/files/22094562/mail_transform_zip_attachment.zip) Log: ` 2025/09/02 14:26:41 - Hop - Pipeline opened. 2025/09/02 14:26:41 - Hop - Launching pipeline [send_mail]... 2025/09/02 14:26:41 - Hop - Started the pipeline execution. 2025/09/02 14:27:09 - General - Reading 2 transforms... 2025/09/02 14:27:09 - General - We have 1 hops... 2025/09/02 14:27:09 - General - nr of transforms read : 2 2025/09/02 14:27:09 - General - nr of hops read : 1 2025/09/02 14:34:22 - General - Reading 2 transforms... 2025/09/02 14:34:22 - General - We have 1 hops... 2025/09/02 14:34:22 - General - nr of transforms read : 2 2025/09/02 14:34:22 - General - nr of hops read : 1 2025/09/02 14:37:29 - General - Reading 2 transforms... 2025/09/02 14:37:29 - General - We have 1 hops... 2025/09/02 14:37:29 - General - nr of transforms read : 2 2025/09/02 14:37:29 - General - nr of hops read : 1 2025/09/02 14:37:40 - Hop - Pipeline opened. 2025/09/02 14:37:40 - Hop - Launching pipeline [send_mail]... 2025/09/02 14:37:40 - Hop - Started the pipeline execution. 2025/09/02 14:38:22 - General - Reading 2 transforms... 2025/09/02 14:38:22 - General - We have 1 hops... 2025/09/02 14:38:22 - General - nr of transforms read : 2 2025/09/02 14:38:22 - General - nr of hops read : 1 2025/09/02 14:38:23 - General - Reading 2 transforms... 2025/09/02 14:38:23 - General - We have 1 hops... 2025/09/02 14:38:23 - General - nr of transforms read : 2 2025/09/02 14:38:23 - General - nr of hops read : 1 2025/09/02 14:38:23 - General - Reading 2 transforms... 2025/09/02 14:38:23 - General - We have 1 hops... 2025/09/02 14:38:23 - General - nr of transforms read : 2 2025/09/02 14:38:23 - General - nr of hops read : 1 2025/09/02 14:38:23 - General - Reading 2 transforms... 2025/09/02 14:38:23 - General - We have 1 hops... 2025/09/02 14:38:23 - General - nr of transforms read : 2 2025/09/02 14:38:23 - General - nr of hops read : 1 2025/09/02 14:38:24 - General - Reading 2 transforms... 2025/09/02 14:38:24 - General - We have 1 hops... 2025/09/02 14:38:24 - General - nr of transforms read : 2 2025/09/02 14:38:24 - General - nr of hops read : 1 2025/09/02 14:38:35 - General - Reading 2 transforms... 2025/09/02 14:38:35 - General - We have 1 hops... 2025/09/02 14:38:35 - General - nr of transforms read : 2 2025/09/02 14:38:35 - General - nr of hops read : 1 2025/09/02 14:39:01 - General - Reading 2 transforms... 2025/09/02 14:39:01 - General - We have 1 hops... 2025/09/02 14:39:01 - General - nr of transforms read : 2 2025/09/02 14:39:01 - General - nr of hops read : 1 2025/09/02 14:39:22 - Hop - Pipeline opened. 2025/09/02 14:39:22 - Hop - Launching pipeline [send_mail]... 2025/09/02 14:39:22 - Hop - Started the pipeline execution. 2025/09/02 14:39:22 - send_mail - nr of transforms to run : 2 , nr of hops : 1 2025/09/02 14:39:22 - send_mail - Executing this pipeline using the Local Pipeline Engine with run configuration 'local' 2025/09/02 14:39:22 - send_mail - Not running a unit test... 2025/09/02 14:39:22 - send_mail - Execution started for pipeline [send_mail] 2025/09/02 14:39:22 - send_mail - I found 2 different transforms to launch. 2025/09/02 14:39:22 - send_mail - Allocating rowsets... 2025/09/02 14:39:22 - send_mail - Allocating rowsets for transform 0 --> Get variables 2025/09/02 14:39:22 - send_mail - prevcopies = 1, nextcopies=1 2025/09/02 14:39:22 - send_mail - Pipeline allocated new rowset [Get variables.0 - Mail Attach filenames zipd.0] 2025/09/02 14:39:22 - send_mail - Allocated 1 rowsets for transform 0 --> Get variables 2025/09/02 14:39:22 - send_mail - Allocating rowsets for transform 1 --> Mail Attach filenames zipd 2025/09/02 14:39:22 - send_mail - Allocated 1 rowsets for transform 1 --> Mail Attach filenames zipd 2025/09/02 14:39:22 - send_mail - Allocating Transforms & TransformData... 2025/09/02 14:39:22 - send_mail - Pipeline is about to allocate transform [Get variables] of type [GetVariable] 2025/09/02 14:39:22 - send_mail - Transform has nrcopies=1 2025/09/02 14:39:22 - [send_mail].Get variables.0 - Starting allocation of buffers & new threads... 2025/09/02 14:39:22 - [send_mail].Get variables.0 - Transform info: nrinput=0 nroutput=1 2025/09/02 14:39:22 - [send_mail].Get variables.0 - output rel. is 1:1 2025/09/02 14:39:22 - [send_mail].Get variables.0 - Found output rowset [Get variables.0 - Mail Attach filenames zipd.0] 2025/09/02 14:39:22 - [send_mail].Get variables.0 - Finished dispatching 2025/09/02 14:39:22 - send_mail - Pipeline has allocated a new transform: [Get variables].0 2025/09/02 14:39:22 - send_mail - Pipeline is about to allocate transform [Mail Attach filenames zipd] of type [Mail] 2025/09/02 14:39:22 - send_mail - Transform has nrcopies=1 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - Starting allocation of buffers & new threads... 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - Transform info: nrinput=1 nroutput=0 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - Got previous transform from [Mail Attach filenames zipd] #0 --> Get variables 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - input rel is 1:1 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - Found input rowset [Get variables.0 - Mail Attach filenames zipd.0] 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - Finished dispatching 2025/09/02 14:39:22 - send_mail - Pipeline has allocated a new transform: [Mail Attach filenames zipd].0 2025/09/02 14:39:22 - send_mail - Initialising 2 transforms... 2025/09/02 14:39:22 - send_mail - Transform [Get variables.0] initialized flawlessly. 2025/09/02 14:39:22 - send_mail - Transform [Mail Attach filenames zipd.0] initialized flawlessly. 2025/09/02 14:39:22 - send_mail - Data Set enabled? false 2025/09/02 14:39:22 - send_mail - Pipeline has allocated 2 threads and 1 rowsets. 2025/09/02 14:39:22 - [send_mail].Get variables.0 - Starting to run... 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - Starting to run... 2025/09/02 14:39:22 - [send_mail].Get variables.0 - field [mail_body] has value [This is a test mail] 2025/09/02 14:39:22 - [send_mail].Get variables.0 - field [mail_from_address] has value [[email protected]] 2025/09/02 14:39:22 - [send_mail].Get variables.0 - field [mail_from_name] has value [Test] 2025/09/02 14:39:22 - [send_mail].Get variables.0 - field [mail_subject] has value [Test mail] 2025/09/02 14:39:22 - [send_mail].Get variables.0 - field [mail_to_address] has value [test@localhost] 2025/09/02 14:39:22 - [send_mail].Get variables.0 - field [smtp_mail_server] has value [localhost] 2025/09/02 14:39:22 - [send_mail].Get variables.0 - field [smtp_mail_server_port] has value [2525] 2025/09/02 14:39:22 - [send_mail].Get variables.0 - field [source_filename] has value [C:\Users\enricomaria.carmona\repositories\mail_transform_zip_attachment\files\test_document.txt] 2025/09/02 14:39:22 - [send_mail].Get variables.0 - field [att_filename] has value [att.zip] 2025/09/02 14:39:22 - [send_mail].Get variables.0 - Signaling 'output done' to 1 output rowsets. 2025/09/02 14:39:22 - [send_mail].Get variables.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - ERROR: Unexpected error 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - ERROR: org.apache.hop.core.exception.HopException: 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - Zipfilename is empty! 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - at org.apache.hop.mail.pipeline.transforms.mail.Mail.processRow(Mail.java:138) 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54) 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - at java.base/java.lang.Thread.run(Thread.java:840) 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - child index = 1, logging object : org.apache.hop.core.logging.LoggingObject@4fa29adb parent=0e922173-458f-447a-b850-b9eda153f1b6 2025/09/02 14:39:22 - [send_mail].Mail Attach filenames zipd.0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1) 2025/09/02 14:39:22 - send_mail - Pipeline duration : 0.021 seconds [ 0.021" ] 2025/09/02 14:39:22 - send_mail - Execution finished on a local pipeline engine with run configuration 'local' 2025/09/02 14:39:22 - send_mail - Pipeline detected one or more transforms with errors. 2025/09/02 14:39:22 - send_mail - Pipeline is killing the other transforms! 2025/09/02 14:39:22 - send_mail - Looking at transform: Get variables 2025/09/02 14:39:22 - send_mail - Looking at transform: Mail Attach filenames zipd ` ### Issue Priority Priority: 3 ### Issue Component 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]
