Support Article
Date column type not recognized in postgresql external table
SA-44962
Summary
When trying to insert data in an external table of PostgreSQL which has a Date column and mapped to a class which has a property of Date type, error occurs at the time of commit.
Error Messages
Error in commit()
com.pega.pegarules.pub.database.BadTableMappingException: Database-BadTableMapping-UnsupportedColumnType
Steps to Reproduce
- Map an external table in PostgreSQL with a Date column.
- Try to do an obj-save to this table.
Root Cause
At this time there is no plan in place to support Date on Postgres.
Resolution
Use Varchar column type for storing date value when using PostgreSQL.
Published March 8, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.