Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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