SSIS Flat File Destination as a variable name

I am trying to assign the flat file destination as an expression/variable, and receiving an error
The expression evaluates correctly (see image 1), I have delayvalidation set to true, the file exists (see image 3), but when I run it, I receive an error saying "Error: The object name "\\mgshare01\vol1\APPS\Ftlmb\DMI\Branch301_Service1_20150604.txt" is not valid. The name cannot contain any of the following characters: / \ : [ ] . =

Can someone tell me what I am doing wrong?
error.docx
Tony OswaldSystems Admin Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Deepak ChauhanSQL Server DBACommented:
set variable like this

\\mgshare01\\vol1\\APPS\\Ftlmb\\DMI\\Branch301_Service1_20150604.txt

or
with double quote ata the start and end
"\\mgshare01\vol1\APPS\Ftlmb\DMI\Branch301_Service1_20150604.txt"
Tony OswaldSystems Admin Author Commented:
Tried both, and still the same error...
Deepak ChauhanSQL Server DBACommented:
Ok. I checked the error in image shared by you. In the error you can see

"@user::filename" on property "name" can not be written to the property, the expression was ....... but can not be set to the property

so this is trying to change the name property of data flow component. Now check if it is dynamically seeting up the name of any task of component.

here you can see in the screenshot i set the name of task "Custom.txt" now it is throwing error. this is just for an example and you can get idea where to check.

SSIS-Name-property.JPG

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tony OswaldSystems Admin Author Commented:
that was it!!  Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.