Error converting from Varbinary to Bytea

Five Stars

Error converting from Varbinary to Bytea



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: 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(
at org.postgresql.core.v3.QueryExecutorImpl.processResults(
at org.postgresql.core.v3.QueryExecutorImpl.execute(
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(
at myjob.template1_0_1.template1.tMSSqlInput_1Process(
at myjob.template1_0_1.template1.tMSSqlConnection_1Process(
at myjob.template1_0_1.template1.runJobInTOS(
at myjob.template1_0_1.template1.main(


Any idea on how this error can be resolved please?

Thanks in advance



Re: Error converting from Varbinary to Bytea


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



Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.