Skip to Content
avatar image
Former Member

java.lang.NumberFormatException: For input string: "- 10.00"

Hi,

I am having a problem in my scenario RFC to Oracle SP. One value is comming as 10.00- and I convert it to -10.00. But whe I do this my value gets - 10.00. with a space between - and 10.00. This causes a problem when inserting. It throws an exception.

Anybody know how I can solve this problem?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    May 17, 2010 at 12:06 PM

    use a replaceAll function and repalce the space with an empty constant

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      It's like a joke. Before using replace string when I test the mapping via the test tab it doesn't generate a space (at least it seems so). But now I put the replace string and It worked :S

      Thanks.