IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

NumberFormatException in NVARCHAR field

  • 1.  NumberFormatException in NVARCHAR field

    Posted Mon June 28, 2021 09:34 AM

    Hello All!
    With 10.3 version, I’m using a BatchInsert Adapter Service to insert amounts of data in a SQL Server database.

    But, I’m getting the following message:
    "NumberFormat Exception for field: Material_code. Error: For input string: “888R0R1200"”

    The problem is that “Material_code” field is NVARCHAR and it is defined as “java.lang.string” as the image shows below:

    Please, what am I doing wrong? I don’t know why its throwing this exception.

    Thank you!


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #Service-Designer
    #webMethods
    #Adapters-and-E-Standards
    #webMethods-io-Integration


  • 2.  RE: NumberFormatException in NVARCHAR field

    Posted Mon June 28, 2021 09:46 AM

    Dear All,

    I managed to solve the issue.

    I had to delete and recreate all the Columns fields in the Service Adapter using the button below:

    Now it is working as it should.

    Thank you for your assistance.


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods-io-Integration
    #Flow-and-Java-services
    #Service-Designer