Actually i have Flatfile as a TXT files .In that i have 100 Columns and i need to import those datas in to SQL Server 2012 by using SSIS package.
As my Manager instructions we need to add a new column in the Flat-file as well as Database.In database i have added the new column name as FtpDate and Datatype as DATE(Purpose of this column is to know on which date we have loaded the particular Source File).
Now in Flatfile we cannot add manually .we need the add it dynamically Because these flatfiles are coming different location from the world. We are getting those files through FTP and storing into the Local Folders and then we start the process by calling the Local path.
My Problem is how to add a dynamic column name (FtpDate) into the flatfile Source. After Added the new column (FtpDate) into the database i tried to run the package and i got the Error which i mentions below.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Flat File Source returned error code 0xC0202091. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
Any one Please suggest me how to do this. I am waiting for your Answers friends !!!!
You need to have a test file created with new column included and use it to set the metadata within SSIS. On pointing to it and refreshing it will add new column to list from where you can select it into the output (inside flat file source). Then you need to refresh entire package pipeline to make sure column is picked up by all the tasks. In case some intermediate task loses synchronization it will indicate it by showing a red balloon. Then you need to double click and open it and fix the issues by clicking ok.