Error – Insufficient room for integer part of numeric value

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Error – Insufficient room for integer part of numeric value

  • Creator
    Topic
  • #51395
    Jeff Manley
    Participant

    I get a lot of these error messages.  Does anyone have any idea where they come from?  These numbers are not in the messages.

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 00:29:30] Insufficient room for integer part of numeric value ‘70309010901818’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 00:32:49] Insufficient room for integer part of numeric value ‘80143214321717’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 00:32:55] Insufficient room for integer part of numeric value ‘72282128212222’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 07:17:05] Insufficient room for integer part of numeric value ‘76155415541515’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 07:54:00] Insufficient room for integer part of numeric value ‘82497319731414’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 08:00:20] Insufficient room for integer part of numeric value ‘78128712871717’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 08:08:16] Insufficient room for integer part of numeric value ‘70309040904242’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 08:08:16] Insufficient room for integer part of numeric value ‘70309010901818’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 08:49:24] Insufficient room for integer part of numeric value ‘67329252925050’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 08:49:50] Insufficient room for integer part of numeric value ‘67329252925050’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 08:50:05] Insufficient room for integer part of numeric value ‘67329252925050’

    [msg :RecF:ERR /0:qdxbrad22_xlate:12/03/2009 08:57:57] Insufficient room for integer part of numeric value ‘80586518651414’

Viewing 13 reply threads
  • Author
    Replies
    • #70092

      Do you see the errors in the xlt tester? If so, try reducing (deactivate or delete) the lines of the xlate until you find the exact line that is causing the error.

      -- Max Drown (Infor)

    • #70093
      Jeff Manley
      Participant

      I can test the xlt, but the error does not happen for every message.  It is just once in a blue moon.

    • #70094

      Use one of the bad messages for testing.

      -- Max Drown (Infor)

    • #70095
      Levy Lazarre
      Participant

      As Max pointed out, you need one of the offending messages to test. Use the time in the log and SMAT to retrieve one “bad” message and test it against the appropriate HL7 variant.

      I had similar errors a while ago and it was related to one field in the IN1 segment. The field length in the HL7 variant was too short for the data that was coming in. Once I increased the number of characters for the field in the variant, the errors stopped.

    • #70096
      Jeff Manley
      Participant

      Ok, I found an offending message.

      There was a xlt, and in the Z1N segment, it was looking at Z1N-6(insurance holder number).  99% of the time it was the MRUN number which is ##-##-##.  A few messages now and then have a 8 digit number ########.

      Someone had written a tcl proc and placed it in the copy action.  It looks like this:

      lassign $xlateInVals mrun

      if [llength $xlateInVals] {

        set first [csubstr $mrun 0 end]

        set new_first [split $first -]

        set second [csubstr $mrun 3 end]

        set new_second [split $second -]

        set new_third [csubstr $mrun 6 end]

        # set new_third [split $third -]

        lassign $new_first first

        lassign $new_second second

        lassign $new_third third

        set xlateOutVals

        }

        Seems like what they are trying to do is to take the dashes out of the MRUN.

        Can I do something simple like the following?

        lassign $xlateInVals mrun

        if [llength $xlateInVals] {

        set xlateOutVals [string map {- “”} $xlateInVals]

        }

        Testing of my code allows the dashes to be removed and the number without dashes no longer causes error messages.

    • #70097

      Your code appears to be much better. 🙂

      But, you do need to treat xlateInVals and xlateOutVals as list variables (lassign, list, lappend, lindex, etc.)

      -- Max Drown (Infor)

    • #70098
      Levy Lazarre
      Participant

      Yes. In fact you can eliminate the “lassign” statement since you don’t use the mrun variable at all.

    • #70099
      Jeff Manley
      Participant

      I went from:

      if [llength $xlateInVals] {

      set xlateOutVals [string map {- “”} $xlateInVals]

      }

      no dashes in the output

      to this:

      if [llength $xlateInVals] {

      lassign xlateOutVals [string map {- “”} $xlateInVals]

      }

      dashes show back up in the output

    • #70100

      Try it like this …

      if [llength $xlateInVals] {
      [code]if [llength $xlateInVals] {

      -- Max Drown (Infor)

    • #70101
      Jeff Manley
      Participant

      Works perfect.  No dashes and no errors.

      Thanks everyone!

    • #70102
      Jeff Manley
      Participant

      Again, thanks to everyone.

      I checked this morning and the only thing in the log is “Engine idle”.

      Very nice!

    • #70103
      Jo Ellen Laansma
      Participant

      I’m also seeing that message in the tester.  HL7v2.6 FT1-29 is defined as 250 CWE.  When the input string is more than 4 bytes, it yields the error.  I tried changing from CWE to ST, but to no avail.

    • #70104
      Jo Ellen Laansma
      Participant

      forget the above question.

    • #70105
      Jim Kosloskey
      Participant

      I am just curious – what release of Cloverleaf?

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

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

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,296
Replies
34,439
Topic Tags
287
Empty Topic Tags
10