XPM Data Fetch Failed

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf XPM Data Fetch Failed

  • Creator
    Topic
  • #50404
    Gena Gill
    Participant

      I keep getting the error:  XPM Data Fetch Failed (304) on certain messages.  On searching the Clovertech forum, I found that most of these are caused by control characters in the message, however, I don’t find that’s the case here.

      I’m on version 5.6, and am sending ADT messages.  The receiving system only accepts the following segments:  MSH, EVN, PID and PV1.  I had originally used Pathcopy to copy only those segments to my translation, but I was having so many errors, that I created a variant instead, and used only these segments.  That cut my errors in half.

      I found that I can stop the errors completely if I deactivate the following IF statement:

      If 0(0).PV1.#17(0) eq @null

       Copy 0(0).PV1.#7(0) –> 0(0).PV1.#17(0)

      If PV1 17 is null, I do need to copy PV1 7 to that field, so leaving it disabled isn’t an option.  I can’t figure out why deactivating this IF statement would stop the error message.

      Does anyone have any ideas?

    Viewing 3 reply threads
    • Author
      Replies
      • #66003
        Robert Milfajt
        Participant

          What is the value of PV1.7 and PV1.17 on the messages that produce the error?

          Robert Milfajt
          Northwestern Medicine
          Chicago, IL

        • #66004
          Gena Gill
          Participant

            In each case PV1 7 is populated and PV1 17 is as well.  So, the IF statement shouldn’t apply.

            I have other messages that also have both populated and they didn’t errror.

          • #66005
            John Mercogliano
            Participant

              Gena,

               Try setting your if statement to 0(0).PV1.#17(0).[0]

              The if clause in the xlate can not handle multiple values for comparison.

              If your data looks like 1234^lastname^firstname

              If you use 0(0).PV1.#17(0) then the if would receive a list of three values.  I suggest [0] assuming all doctors have an ID, otherwise use [1] to check if the last name exists.

              Hope this helps,

              John Mercogliano
              Sentara Healthcare
              Hampton Roads, VA

            • #66006
              Gena Gill
              Participant

                Problem Solved, Thanks for your help!

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