Error in Loading CSV file

  • 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

  • Does the file exist and is the path correct?

    Or was the file created in Excel and still open in Excel?

    😎

  • 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.

  • 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.

  • 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:

    😎

  • 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.

    😎

  • 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

  • Good stuff!

    😎

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply