cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime Exception

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.