XML Parser error in Java Action

0
Hello Experts,   I am trying to parse the input data in XML format using JAVA action, I am getting the following error : NOTE : It can also be done on mendix but I am using HL7 Parser which returns the result in xml by using XML parser so it should be done on JAVA. com.mendix.webui.WebUIException: Exception while executing runtime operation     at com.mendix.webui.actions.client.RuntimeOperationAction.$anonfun$apply$1(RuntimeOperationAction.scala:54)   Caused by: com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: ca.uhn.hl7v2.HL7Exception: Can't XML-encode a GenericMessage.  Message must have a recognized structure.     at MyFirstModule.ACT_HL7_NewEdit (JavaAction : 'HL7Convert')   Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:83)   Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: ca.uhn.hl7v2.HL7Exception: Can't XML-encode a GenericMessage.  Message must have a recognized structure.     at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:108)   Answers are really much appreciated!
asked
1 answers
0

That looks like a problem with the data you are passing into your HL7 parser. 

Try passing your data into another parser to see if it works with that. Maybe try an online parser such as https://www.parsehog.com/hl7_parser

Good luck!

answered