Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

Bulk Insert to Postrgres bug?

Highlighted
One Star

Bulk Insert to Postrgres bug?

Hello, I am trying to use tPostgresqlOutputBulkExec component for bulk insert to table from csv. When I am trying to run the job, the "org.postgresql.util.PSQLException: ERROR: COPY escape must be a single one-byte character" exception occurs. Escape character has the default value "\\". Somehow talend doesn't understand how is this escaped. Is it a bug or how should I approach it?
Thank you.
Highlighted
Moderator

Re: Bulk Insert to Postrgres bug?

Hi,
Could you please indicate the build version you are using? Have you already checked this document about:https://jira.talendforge.org/browse/TDI-22604?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
One Star

Re: Bulk Insert to Postrgres bug?

Hello, I am using Version: 6.2.0. So it's probably different bug.
Highlighted
Moderator

Re: Bulk Insert to Postrgres bug?

Hi,
Have you checked "standard_conforming_string" in advanced setting of  tPostgresqlOutputBulkExec component? Could you please post your component setting screenshot into forum?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
One Star

Re: Bulk Insert to Postrgres bug?

Checking "standard_conforming_string" helped. However I found out that this component wants to generate another csv in the location of the DB. Is this the only way bulk insert works? Could data from csv be imported without this additional copying of the file to the db server?
Reference about csv copying: link

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog