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
  • 1.  Data truncation

    Posted Thu August 21, 2014 05:00 AM

    Hi when I am inserting data into database tables using the JDBC insert adapter service I am getting the data truncation error because of the field length. Can I obtain the field names and/or the values that are causing the truncation error?


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Data truncation

    Posted Thu August 21, 2014 08:16 AM


  • 3.  RE: Data truncation

    Posted Thu August 21, 2014 08:58 AM

    Here is the error dump.

    [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service cbIntlTransportationMgmt.consumer.maps.ASN.db:insertReference.
    [ADA.1.316] Cannot execute the SQL statement "INSERT INTO MBARSREF(MSZTRNID, MSZMSGTYPE, MSZRFTYPCD, MSZRFVAL, MSZCPGM, MSZCUSR, MSZCJOB, MSZMDTZ) VALUES (?, ?, ?, ?, ?, ?, ?, ?)". "
    (22001/0) Data truncation"
    Data truncation


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 4.  RE: Data truncation

    Posted Thu August 21, 2014 01:08 PM

    If this is reproducable, You need to ask your DBA (our yourself If you know how) to do a trace on DB side, it will have the values for all fields, compare their size with your table column definition, you should know which one is triggering the error


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Data truncation

    Posted Thu August 21, 2014 01:42 PM

    Please check with your DBA along with the error and they can assist you checking SQL logs and tracing.

    HTH,
    RMG


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 6.  RE: Data truncation

    Posted Thu August 21, 2014 04:16 PM

    Error does not provide any useful info. Check your input data with the table column length. See if you have the rights to change the length of the columns within the table.


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 7.  RE: Data truncation

    Posted Fri August 22, 2014 04:23 AM

    Hi All!

    Thanks for your reply. I could able to identify the field but my question is if the issue reproduces is there any way to capture the field or value for which it is causing the error so that we can include them in the error email.

    Thanks,


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB