Solved

filepath Not available in sql server2012

Posted on 2014-03-04
5
385 Views
Last Modified: 2014-03-05
hello
User FilePath variable is not in the list of values for Expression

This is in reference to this question
http://www.experts-exchange.com/Database/MS-SQL-Server/Q_28380353.html

Please help
0
Comment
Question by:Rayne
  • 4
5 Comments
 

Author Comment

by:Rayne
ID: 39905238
I can’t see the user file path as one of the options for system variables – am I missing anything or this is changed for 2012?
0
 

Author Comment

by:Rayne
ID: 39905254
When i manually type in the filepath I get this
Expression cannot be evaluated.

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%C2%AE%20Visual%20Studio%C2%AE%202010&ProdVer=10.0.40219.1&EvtSrc=Microsoft.DataTransformationServices.Controls.TaskUIFramework.TaskUIFrameworkSR&EvtID=FailToEvaluateExpression&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

The variable "User::FilePath" was not found in the Variables collection. The variable might not exist in the correct scope.

Attempt to parse the expression "@[User::FilePath]" failed and returned error code 0xC00470A6. The expression cannot be parsed. It might contain invalid elements or it might not be well-formed. There may also be an out-of-memory error.

 (Microsoft.DataTransformationServices.Controls)
0
 
LVL 9

Accepted Solution

by:
Sreedhar Vengala earned 500 total points
ID: 39905337
What is the scope of the "User::FilePath", is it at component level or package level.  If is at package level then it can be accessed from all the components within the package.  If it is at component level then can be accessed only within that component.
0
 

Author Comment

by:Rayne
ID: 39905466
Here is the dtsx text on notepad
Package-dtsx.txt
0
 

Author Comment

by:Rayne
ID: 39905754
Looks like we all need to know how to first create user variables and then reference them in our for each container - that rings the bell
Usefull Link to consider for starters
http://www.youtube.com/watch?v=MT9_jcSDNfY

once the user variables are set up, then all else happens
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now