web stats
Can't parse message beginning - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2007, 10:01 AM
nshaik nshaik is offline
Mirth Guru
 
Join Date: Sep 2006
Posts: 302
nshaik
Default Can't parse message beginning

Mirth 1.5 Patch1
======================
I turned off "Use Strict Parser" to avoid getting ~ repalced with a "backslash R backslash" (backslash is spelled out here because the forum strips off the character).

I get this error when it tries to generate the message. Attached mirth.log file has full error message.
Quote:
WARN 2007-07-27 13:29:05,769 [c683da9f-07ca-4181-9316-21598d81c5e7_source_connector._jdbcEndpoint#-1602759826.receiver.2] com.webreach.mirth.server.mule.adaptors.HL7v2Adapt or: error adapting message
com.webreach.mirth.model.converters.SerializerExce ption: ca.uhn.hl7v2.parser.EncodingNotSupportedException: Can't parse message beginning MSH|^~&|TEST_DEST|Test1|Test2||CurSystemDate^2007
at com.webreach.mirth.model.converters.ER7Serializer. toXML(ER7Serializer.java:101)
The sample HL7 message template is:
Code:
MSH|^~&|TEST_DEST|Test1|Test2||CurSystemDate||DFT^P03|MessageControlID|P|2.3||||
EVN|P03|RecordedDateTime||01|
PID|1|PatientAccount1|
FT1|1|TransactionID||TransactionDate||CG|ProcedureCode|TransactionDesc||1||||||AssignedPatientLocation||O|DiagnosisCode|PhysicianID^PhysicianLastName^PhysicianFirstName^PhysicianMiddleName|||||ProcedureCode||
Any help to resolve this problem would be appreciated.

Thanks in advance! mirth_log.txt (11088 bytes)

Post edited by: nshaik, at: 07/27/2007 11:02
Reply With Quote
  #2  
Old 07-30-2007, 11:36 AM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re:Can't parse message beginning

Can you attach the message - I believe the forum is removing the backslash.
__________________
Chris Lang
Reply With Quote
  #3  
Old 07-30-2007, 12:09 PM
nshaik nshaik is offline
Mirth Guru
 
Join Date: Sep 2006
Posts: 302
nshaik
Default Re:Can't parse message beginning

Chris,

I emailed the channel and mirth.log file.

Thanks!
Reply With Quote
  #4  
Old 07-30-2007, 12:37 PM
albertosaez albertosaez is offline
 
Join Date: Sep 2006
Location: Valladolid, Spain
Posts: 842
albertosaez is an unknown quantity at this point
Default Re:Can't parse message beginning

I don't know if this is important, but the header of the message is wrong


Code:
MSH|^~&|....
Is not valid

It should countans the scape character (\) before the sub-component separator (&)
Code:
MSH|^~\&|....
Reply With Quote
  #5  
Old 07-30-2007, 12:43 PM
brendanh brendanh is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 191
brendanh
Default Re:Can't parse message beginning

albertosaez wrote:
Quote:
I don't know if this is important, but the header of the message is wrong


Code:
MSH|^~&|....
Is not valid

It should countans the scape character () before the sub-component separator (&)
Code:
MSH|^~&|....
If you look at the log, he has it. The forum software escaped it when he posted.
__________________
Brendan Haverlock | Mirth Software Engineer | Mirth Corporation
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SOAP connector - cant't parse the WSDL quimicefa Support 1 04-24-2008 07:26 AM
Failed to parse conf ... mule-config.xml nate.teller Support 1 01-16-2008 04:28 AM
Parse a string bobbie Support 5 12-08-2006 06:59 AM
Failed to parse tintinn Support 3 09-21-2006 11:20 PM


All times are GMT -8. The time now is 03:44 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation