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.  Convert string to object

    Posted Tue April 16, 2024 06:21 AM

    Product/components used and version/fix level:

    webMethods.IO Integration version 11.0.0.0

    Detailed explanation of the problem:

    I need to insert the dateOfBirth in a PostgresSQL. The field in the DB is an object.
    How can I convert a string in wm.IO to an Object for the DB?
    I tried to map the string to the object, but this causes an error in the DB insert.

    Error messages / full error message screenshot / log file:

    Question related to a free trial, or to a production (customer) instance?

    Question is related to a free forever licence


    #webMethods
    #webMethods-io-Integration
    #webMethods-cloud


  • 2.  RE: Convert string to object

    Posted Tue April 16, 2024 07:25 AM

    Hi Heiko.

    which product do you use to connect to the PostgreSQL?

    If I remember right, the WmJDBCAdapter was able to handle this in Designer when developing the insert service.
    At least on prem.

    Regards,
    Holger


    #webMethods
    #webMethods-cloud
    #webMethods-io-Integration


  • 3.  RE: Convert string to object

    Posted Tue April 16, 2024 08:05 AM


  • 4.  RE: Convert string to object

    Posted Sun April 21, 2024 12:05 PM

    I assume you want to feed a Postgres table column that has the type “date” with the Database connector. If not please share your table definition as well as the name of the connector you’re using.

    Here’s how I populate date columns in Postgres:

    1. When creating the custom insert or update action, I make sure to activate the “Convert selected to String” option. Here you can see I have a date column in my table.

    2. When sending data to the connector, I send date strings with the following format: YYYY-MM-DD

    For timestamp columns, the string format needs to be YYYY-MM-DD HH:mm:ss.SSS


    #webMethods-io-Integration
    #webMethods
    #webMethods-cloud


  • 5.  RE: Convert string to object

    Posted Mon April 29, 2024 03:23 AM

    That’s exactly how it works. Thanks!


    #webMethods
    #webMethods-cloud
    #webMethods-io-Integration