Bulk Insert to Postrgres bug?

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.
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.
One Star

Re: Bulk Insert to Postrgres bug?

Hello, I am using Version: 6.2.0. So it's probably different bug.
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.
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 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download