If data fetched produced multiple values

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf If data fetched produced multiple values

  • Creator
    Topic
  • #48155
    Farhad Shahrooz
    Participant

      I am running cloverleaf version 3.8.1 and the issue is when witin an Xlate an “if statement” applied to a non repeating field, when the incomming message has a repeating field, and the “If condition” is executed in the xlate, the process freezes with the error “If data fetched produced multiple values” and net-monitor also freezes. In order to restart the process, this message needs to be deleted from the recovery data-base in state-5 and then restart the process.

      Is there any fix for this issue and/or anyone else has ever encountered this problem?

    Viewing 2 reply threads
    • Author
      Replies
      • #57857
        Rentian Huang
        Participant

          Farhad,

          Try add the sub-component number into your path.

          example:

          IF 1(0).1(0).0(0).ORC.00219 eq =IP

          =>  

          IF 1(0).1(0).0(0).ORC.00219.[0] eq =IP

          Sam

        • #57858
          Jonathan Hamilton
          Participant

            If it’s a repeating field (check if the data contains a tilda ‘~’) setup an iterate over the field.

            iterate 1(0).1(0).0(0).ORC.00219 %f1

               if 1(0).1(0).0(0).ORC.00219(%f1)  eq =STRING

            You could also cheat and force it to grab the first iteration using

               if 1(0).1(0).0(0).ORC.00219(0) eq =STRING

            If it’s just a sub-component do as Sam suggested.

            Jonathan

          • #57859
            Farhad Shahrooz
            Participant

              Sorry for the late reply, adding the subcomponent field “.[0]” really worked. Thanks for everyone’s help.

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