krug-ela opened a new issue, #8000:
URL: https://github.com/apache/hop/issues/8000

   ### Apache Hop version?
   
   2.19.0
   
   ### Java version?
   
   21
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   The "Get data from XML" transform does not handle errors correctly, when 
reading from a file.
   Instead of executing the transform connected to the error handling hop, the 
pipeline just aborts:
   
   ```
   2026/08/18 15:27:18 [Error]    Get data from XML.0 - Could not open file #1 
: file:///C:/hop/projects/testarea/test.xml --> 
org.apache.hop.core.exception.HopException: 
   2026/08/18 15:27:18 [Error]    Get data from XML.0 - 
org.dom4j.DocumentException: Error on line 1 of document  : XML document 
structures must start and end within the same entity.
   2026/08/18 15:27:18 [Error]    Get data from XML.0 - Error on line 1 of 
document  : XML document structures must start and end within the same entity.
   2026/08/18 15:27:18 [Basic]    Get data from XML.0 - Finished processing 
(I=0, O=0, R=0, W=0, U=0, E=1)
   2026/08/18 15:27:18 [Minimal]  xmlinput - Pipeline detected one or more 
transforms with errors.
   2026/08/18 15:27:18 [Minimal]  xmlinput - Pipeline is killing the other 
transforms!
   ```
   
   To reproduce just put invalid XML in a file and read it with the transform:
   
   <img width="875" height="189" alt="Image" 
src="https://github.com/user-attachments/assets/593a4ffc-99d7-4017-a234-4aa6ce2e1b5b";
 />
   
   Reading the same XML from a field or reading the file name from a field 
works as expected.
   
   This issue is related to https://github.com/apache/hop/issues/5921
   
   ### Issue Priority
   
   Priority: 2
   
   ### 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]

Reply via email to