I have some .txt files which I am trying to import to my oledb destination.
I want to apply some updates to the data before extracting them in the .csv format. And am trying to achieve this through SSIS.
I have the below flow:
1>Execute sql task to truncate my existing table
2>Data flow task to import my flat file to the oledb dest
3>Execute sql task to update my data as per my needs.
4>Data flow task to export the data in csv file.
Concerns here is: I have many such text files and I want to use for each loop Container in my package, My text file has vendor wise data say eg: tibco.txt, I want to import this file from a location and extract it to destination folder with the same name but with .csv extension. I have used a variable that stores the name of the file each time the for loop runs and have set it in expressions : Connection String for the input flat file used in step 2 above.
My package runs fine until the 2nd step but fails to update the data at step 3.
Error: [Execute SQL Task] Error: Executing the query "update tablename set vendor_inventory = r..." failed with the following error: "Invalid column name 'HOSTNAME'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
tablenametable have aHOSTNAMEfield in it? I think more details might help, like: are the text files all being imported into the same table or different tables? - mendosi