You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "krug-ela (via GitHub)" <gi...@apache.org> on 2025/10/28 08:51:42 UTC

[I] [Bug]: Get data from XML error handling not working (hop)

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

   ### Apache Hop version?
   
   2.15
   
   ### Java version?
   
   21
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   The transform "Get data from XML" seems to support error handling, but it is not working as expected.
   Instead of executing the transform connected to the error handling hop, the pipeline just aborts.
   
   ### 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: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Get data from XML error handling not working (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #5921: [Bug]: Get data from XML error handling not working
URL: https://github.com/apache/hop/issues/5921


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Get data from XML error handling not working (hop)

Posted by "krug-ela (via GitHub)" <gi...@apache.org>.
krug-ela commented on issue #5921:
URL: https://github.com/apache/hop/issues/5921#issuecomment-5328904436

   If my file contains invalid xml (e.g. "<outer><outer>") I get the following log and my error is not catched:
   
   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!
   
   Putting the same XML in a field or the file name in a field works as expected -> error is catched


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Get data from XML error handling not working (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #5921:
URL: https://github.com/apache/hop/issues/5921#issuecomment-5328801361

   What error are you getting, there are some errors that can't be solved with error handling because they are not based on the data.
   Can I have a stacktrace/reproduction path?


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Get data from XML error handling not working (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #5921:
URL: https://github.com/apache/hop/issues/5921#issuecomment-5328961199

   Can you create a new ticket for this? I'm not going to reopen this one as work has been done on it


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Get data from XML error handling not working (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #5921:
URL: https://github.com/apache/hop/issues/5921#issuecomment-4915569842

   .take-issue


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Get data from XML error handling not working (hop)

Posted by "krug-ela (via GitHub)" <gi...@apache.org>.
krug-ela commented on issue #5921:
URL: https://github.com/apache/hop/issues/5921#issuecomment-5328779497

   Looks like this issue was solved for the case when the XML or the filename is given in a field.
   
   The issue still exists when reading XML files from a directory or file like this:
   
   <img width="875" height="189" alt="Image" src="https://github.com/user-attachments/assets/d714250b-3e79-4cda-9fcf-f14110a1448d" />


-- 
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: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org