sql server - Talend Truncate Table does not empty table -
i use tos transfer sql server table sql server. works more or less. have 1 issue truncating table. in properties output table define "truncate table" table action , "insert" data action. @ second run lot of duplicate key errors. if run "truncate table" manually in sql server management studio, job works fine.
are there known issues truncate table? talens version 5.3.2
thanks in advance
i mimicked scenario , works fine in talend platform data management version 5.6.1. cannot test on tos, perhaps can upgrade newest tos version , try again. thorough tried using separate connection components , built-in connections. difference using separate connection object requires commit object.
the workaround recommend this:
- create proc truncate table , call tmssqlsp component
- connect original subjob transfers data between 2 tables using onsubjobok flow.
- in tmssqloutput component (which performs truncate/insert) in action on table use default (so not truncate table)
- for action on data use insert
i tried method , works. workaround save time , frustration of dealing tos issue.
Comments
Post a Comment