You should step thru the script and see what the value of filename when you try to assign it to the SSIS variable. Look like the error message it's Empty.
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]