Skip to Content
avatar image
Former Member

Runtime Exception

Hi

In my mapping i am checking the Total amount with the Trailer total amount and Total amount should be greater tha zero..

When i give the value of amount -11 it has to throw the Amount value should be grater than zero eception but it is throwing the Total amount mismatch exception..

How i achieve the correct excpetion error..

venkat

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 14, 2007 at 05:06 PM

    Hi Venkat!

    What comparision are you doing? are you using numeric comparision inside an UDF or are you using standard mapping functions? Maybe you are comparing numbers as strings.

    Regards,

    Matias.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 14, 2007 at 05:09 PM

    Venkatesh,

    When you pass any value to UDF, its always pass as a String...n I think you are trying to compare string with number...

    if you just want to check if value is greater than "0" and not negative you can check first character in Amount field and compare with "-"..if it is "-" raise your user defined exception / alert.

    Let me know if you need more details.

    Nilesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 14, 2007 at 05:43 PM

    Hi,

    check whether u have given correct condition or not ,it is due to the condition only your getting mismatch

    map your Total amount with the Trailer total amount with condition Total amount greater then zero

    can you pls explain clearly

    Regards,

    G.Varun kumar

    Add comment
    10|10000 characters needed characters exceeded