Reputation: 21
I have created a variable called RowCount, used rowcount transformation to store the number of rows retrieved from the source and I am trying to append the row count to the flat file name. But the variable is not saving the rowcount, it always returns 0 my filename is xyz_0 which is not I am looking for. Could some one please help me figuring out the solution for this ?
Upvotes: 0
Views: 1191
Reputation: 2156
You can not append the row count value with the filename within the data flow task, as your dynamic flat file connection manager is getting populated before executing the Data Flow Task.
To fix it, use script task or File System task in control flow after the data flow task to rename with row count appended.
Upvotes: 2