Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

filepath Not available in sql server2012

Posted on 2014-03-04
5
Medium Priority
?
519 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 2000 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

963 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