Originally posted by John Hamilton
proc trxid_hl7_system { msgId } { # Retrieve the Message Type from the message set msg [msgget $msgId] set fs [string index $msg 3] set sfs [string index $msg 4] set fieldList [split $msg $fs] set msgType [lindex [split [lindex $fieldList 8] $sfs] 0] set sendingApp [lindex $fieldList 2] return "$msgType_$sendingApp"}
msg: 0x0xb7dbd03c msgType : DATA msgClass : ENGINE msgState : No destination for message (105) msgPriority : 5120 msgRecoveryDbState: 3 msgFlags : 0x8002 msgMid : [0.0.89125993] msgSrcMid : midNULL msgSrcMidGroup : midNULL msgOrigSrcThread : ob_pool_to_cbord msgOrigDestThread : cbord_orm_ob msgSrcThread : ob_pool_to_cbord msgDestThread : cbord_orm_ob msgXlateThread : msgSkipXlate : 0 msgSepChars : msgNumRetries : 0 msgGroupId : 0 msgDriverControl : {CONNID 24540} msgRecordFormat : msgRoutes : msgUserData : msgStaticIsDirty : 0 msgVariableIsDirty: 0 msgTimeStartIb : 1336536020.175 msgTimeStartOb : 1336536020.174 msgTimeCurQueStart: 0.000 msgTimeTotalQue : 0.001 msgTimeRecovery : 1336536020.783 msgEoConfig : 0x(nil) msgData (BO) : 0x0xb7dbd120 message : 'MSH|^~&|PCM|C|80100|C|20120509000012||ORM^O01|24762592|P|2.2|||AL|NEx0dPID|1'
Originally posted by Ian Morris
Jeff W Dinsmore wrote:I have an interface with custom trxid proc for routing. It's throwing an occasional error that I can't explain.The trxid proc returns the message type in MSH.9.1 and the sending system in MSH.3 separated by an underscore. So, for the following example, it would return ORM_PCMMSH|^~&|PCM|C|80100|C|20120509000012||ORM^O01|24762592|P|2.2|||AL|NEThe error it's returning is "No destination for message (105)" which is self-explanatory enough. But, it routes successfully when I run it through "routes" in the testing tool - AND, it routes fine when I resend it!The offending message was the first through this interface after our nightly archive script ran.Any idea what might be going on?Running CL5.6 if it makes any difference.
Jeff W Dinsmore wrote:
return "$msgType_$sendingApp"
return "${msgType}_${sendingApp}"
lastDefSendSec= 1336535927Timed send[xlt :xlat:ERR /0:ob_to_cbord_xlate:05/09/2012 00:00:20] [0.0.89125996] No destination list on message!lastDefSendSec= 1336536020