May 7, 2014 at 8:17 am
Hi All,
I am getting when loading data from csv file..
[Flat File Source [9007]] Error: Cannot open the datafile "20140505_Sales_new.csv".
[SSIS.Pipeline] Error: component "Flat File Source" (9007) failed the pre-execute phase and returned error code 0xC020200E.
Anyone any clue.
Regards
Shaun
May 7, 2014 at 9:15 am
Does the file exist and is the path correct?
Or was the file created in Excel and still open in Excel?
😎
May 7, 2014 at 9:35 am
The path is correct as it goes through Foreachloop container and through sequence container, also it goes check the the audit table and delete the rows but fail to load data as displayed in the attachment.
May 7, 2014 at 9:52 am
Check this if the package fails for the second time in the loop :
I think you haven't specified the file to be picked by expression by using the value from For each loop and may be at the end of the package you are deleting your first file. So the second time, it's going into the loop it's failing.
If it's failing for the first time it self, like others said make sure the package is in the right folder you have specified in the package. It's worth a check.
Good Luck 🙂 .. Visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles.
May 7, 2014 at 10:09 am
Shaun2012 (5/7/2014)
The path is correct as it goes through Foreachloop container and through sequence container, also it goes check the the audit table and delete the rows but fail to load data as displayed in the attachment.
How are you passing the file name to the flat file connection manager?
Check if it is correct there, that's where it counts:w00t:
😎
May 7, 2014 at 10:14 am
Quick thought, what rights has the user (running the package) in the file system, I've seen this where users can list but not open directory content.
😎
May 7, 2014 at 10:23 am
Hello All,
I had found the cause of it..
Reason: In Foreach Loop Container, the retreive file name, name and extension was selected but should have been fully qualified
Solved: Selected "fully qualified" which can be viewed by double clicking the Foreach Loop Container.
Regards
Shaun
May 7, 2014 at 10:29 am
Good stuff!
😎
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply