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.

 View Only
  • 1.  Insert into Oracle

    Posted Fri June 27, 2003 10:20 PM

    Can you explain us the reason of sending null to insert?is this some testing you want to check output?


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Insert into Oracle

    Posted Fri June 27, 2003 10:29 PM

    Hi Vinod,

        You have to use execSql for this situation there you can use  
    

    oracle functions nvl().Example i am sending below.

     insert into schemaname.TableName(HUB,COMMODITY,PRODUCT,sell_price,offer_sellPrice) values('%HUB%','%COMMODITY%','%PRODUCT%',to_number(nvl(trim('%sell_Price%'),'')),to_number(nvl(trim('%offer_sellPrice%'),''))) 
    

    Here my see_Price,offer_sellPrice columns in data base are Numbers.
    Now if you are inserting Null values,You don’t get any Exceptions.

    Now before calling this service You have to set empty hardcoded
    values for the fields sell_Price,sell_OfferPrice in a map.Hope
    this will work for you.

    Thanks,
    SriniK


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 3.  RE: Insert into Oracle

    Posted Fri June 27, 2003 10:29 PM

    Can you explain us the reason of sending null to insert?is this some testing you want to check output?


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services