Convert string to object

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

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

I’m using webMethods.IO in the cloud.

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

1 Like

That’s exactly how it works. Thanks!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.