sql server - SSIS truncation error only in control flow -


i have package giving me confusing "text truncated or 1 or more characters had no match in target code page" error when run full package in control flow, not when run task itself.

the first task takes csv files , combines them 1 file. next task reads output of previous file , begins process records. odd truncation error thrown in flat file source in 2nd step. exact same flat file source destination in previous step.

if there truncation error wouldn't thrown previous step tried create file? since 1st step created file without truncation, why can't read same file in next task?

note - thing makes package different others have worked on dealing special characters , using code page 65001 utf-8 capture fields have special characters. other packages referencing flat file connection managers code page 1252.

control flow showing both steps

data flow showing error flat file source

the problem caused foreach loop , using columnnamesinfirstdatarow expression have formula "@[user::count_raw_input_rows] < 0". have variable initialized -1 , assign columnnamesinfirstdatarow flat file. when in loop update variable row counter on each read of csv file. puts header in first time (-1) avoids repeating on other csv files. when exit loop , try read input file treats header data , blows up. avoided on last package because didn't tighten column definitions flat file did package. help.


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

c++ - Msgpack packing bools bug -

hex - Lua: Hexadecimal Word to Binary Conversion -