sql - SSIS 2005 flat file source - partial row which isn't actually a partial row -
I am currently working in a database to load mainframe logs from multiple server / file sources on an SSIS package.
As of this time I am using a foreach loop container to loop and data flow via records with a file
a flat file source OLE DB destination
via Code> and file
a derived column.
I have created the error code in the Data Code. To allow the work to be done for the fact that the log file will not always be in the specified location (i.e. because the server is on a particular period During maintenance) but problems are started after handling these errors.
If the file has not been found immediately after attempting to load the file immediately, then it starts loading, but then throws the following warning message: [message load file source ( NORDXSL) [57] WARNING: There is a partial line at the end of the file.
, and does not load all records in that file.
However, when I know that files are removed, they will not be present from the record set (so that only with the supposed "partial line" try to load the same file), everything Works fine and all files / rows are loaded without a problem It seems that it does not want to load the first file because this file has disappeared properly and why can not I do it for my life?
I have tried to call Dispose ()
After the data flow on the file connection
and the release connection ()
process is over It does not matter, and now I'm completely out of ideas.
Any help really will be appreciated as it is the last bug in this project and I want to take it out of the door. Thanks!
Thank you, James
Now I've got an alternate solution to this problem. ..
I have added a script task before the file flow task which is to load the files, to see if I want to read the file exists:
If (System.IO.File.Exists (Dts.Variables ("MQLogMessagePath") Value.ToString)) then Dts.TaskResult = Dts.Results.Success Else Dts.TaskResult = Dts.Results.Failure End
If it does not exist then it will be able to reconstruct the Forechap loop container Failure fails and continues on the next file.
BINGO!
Comments
Post a Comment