Error converting from Varbinary to Bytea

Five Stars

Error converting from Varbinary to Bytea

Hello,

Background

Source database=MS SQL Server

Table column = File (Varbinary(max)

Destination database=Postgres

Table column = File (Bytea)

TMaping = directing mapping source->destination

Verification OK

tPostgresoutput (data type)=column "File"= Object = Bytea

ERROR

ERROR: column "File" is of type bytea but expression is of type bigintException in component tPostgresqlOutput_1 (template1)
org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1592)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1327)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:254)
at myjob.template1_0_1.template1.tMSSqlInput_1Process(template1.java:2285)
at myjob.template1_0_1.template1.tMSSqlConnection_1Process(template1.java:668)
at myjob.template1_0_1.template1.runJobInTOS(template1.java:3268)
at myjob.template1_0_1.template1.main(template1.java:2939)

QUESTION

Any idea on how this error can be resolved please?

Thanks in advance

 

Moderator

Re: Error converting from Varbinary to Bytea

Hello,

How did you convert datatype from Varbinary to Bytea?

Would you mind posting your tMap component setting  and job design screenshot on forum which will be helpful for us to address your issue?

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.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

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

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads