msgcreate and the recovery db

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf msgcreate and the recovery db

  • Creator
    Topic
  • #55257
    Mike Strout
    Participant

      We have charges messages coming from our lab system containing multiple FT1 and PR1 segments, but our target system can only handle one FT1 per message.

      My solution a year ago was to throw the MSH, PID, and PV1 segments into a “header” variable and then use foreach to iterate through each FT1 segment. I then join the header variable and the FT1 into a new message and then use “msgcreate -recover” to make a brand new message.

      The problem is that when I test this tcl proc using the route testing tool, the engine panics and crashes, but when I run this script inside a process, it performs fine. Can someone help me understand what is happening?

    Viewing 0 reply threads
    • Author
      Replies
      • #84732
        David Barr
        Participant

          Usually it’s better to use a msgcopy of the original message instead of a msgcreate. This ensures that all of the metadata fields have the right values.

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.