尝试运行任务以复制文件时,我收到此消息:
TITLE: Package Validation Error
------------------------------
Package Validation Error
------------------------------
ADDITIONAL INFORMATION:
Error at File System Task: Failed to lock variable "C:\Users\agordon\amtu2\DocumentTransport\production\reports\ORDER18940610353.txt" for read access with error 0xC0010001 "The variable cannot be found. This occurs when an attempt is made to retrieve a variable from the Variables collection on a container during execution of the package, and the variable is not there. The variable name may have changed or the variable is not being created.".
Error at File System Task [File System Task]: An error occurred with the following error message: "Failed to lock variable "C:\Users\agordon\amtu2\DocumentTransport\production\reports\ORDER18940610353.txt" for read access with error 0xC0010001 "The variable cannot be found. This occurs when an attempt is made to retrieve a variable from the Variables collection on a container during execution of the package, and the variable is not there. The variable name may have changed or the variable is not being created.".
".
Error at File System Task: There were errors during task validation.
(Microsoft.DataTransformationServices.VsIntegration)
------------------------------
BUTTONS:
OK
------------------------------
我的架构如下所示:
以下是失败组件的属性:
以下是失败组件的表达式部分:
最后,这是我的参数:
我做错了什么?
我是否应该完全取消文件系统任务并将其替换为C#Script Task来复制文件?
我的流程有明显错误吗?
我为图片的大小道歉,我认为stackoverflow会调整它们的大小。原件在这里:
http://screencast.com/t/PvjBHWWHQ8
http://screencast.com/t/JWfs2n2uD8mu
http://screencast.com/t/T68ttqHo
http://screencast.com/t/89KCF8B0qBd
答案 0 :(得分:2)
属性页面要求输入变量名称,并提供文件路径。您的SSIS包中是否有一个可以保存完全限定文件名的变量?
答案 1 :(得分:1)
您的SourceVariable属性(在屏幕截图#2中)应该引用您的变量名称,而不是变量的实际值。