Hi All,
Visual Studio 2008
I have looked at the other postings on this topic and have been unable to get mine to work. I am trying to email an flat file that the name changes everyday. I have already successfully got it to load in to a table using a 'for each loop' container.
Variable:
PoFlatFile,package, string, *.txt
Flat File Connection:
Select file, preview file everything looks good.
ConnectionString: *.txt(changes after originally selecting file)
Expressions:ConnectionString @[User::PoFlatFile]
ForEach Loop Editor:
Folder: D:\xxxx\yyyy\folder where .txt lives
Files: *.txt
Retrieve file name : Fully qualified
Variable Mappings: User::PoFlatFile, Index 0
Send Mail Task(within Loop)
SmtpConnection: connection xxxx
from: valid email address
to: valid email address
subject: abcd
messageSourceType: Variable
messagesource: User::PoFlatFile
priority: normal
Attachments: blank(but after running job it changes to *.txt)
Expressions: FileAttachments, @[User::PoFlatFile]
Then I try to run the package and I get an error message either the file *.txt does not exist or you don't have permissions to access the file.
Well it's not permissions or not existing because I can successfully load the same file using a for loop in another package.
Can anyone help and let me know what I am Missing?
Thanks