Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

 

Labels (4)
1 Reply
Anonymous
Not applicable
Author

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