尝试执行SSIS包时,出现以下错误:
Date 14/08/2013 15:02:42 Log Job History (test) Step ID 1 Server YGAL1-MOBL1 Job Name test Step Name ssis Duration 00:00:00 Sql Severity 0 Sql Message ID 0 Operator Emailed Operator Net sent Operator Paged Retries Attempted 0 Message Executed as user: GER\YGAL1-MOBL1$. Microsoft (R) SQL Server Execute Package Utility Version 10.50.1600.1 for 64-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 15:02:42 Error: 2013-08-14 15:02:42.84 Code: 0xC0011007 Source: {0AF31012-7A56-4B28-92EF-BE439E68E6F0} Description: Unable to load the package as XML because of package does not have a valid XML format. A specific XML parser error will be posted. End Error Error: 2013-08-14 15:02:42.84 Code: 0xC0011002 Source: {0AF31012-7A56-4B28-92EF-BE439E68E6F0} Description: Failed to open package file "C:\Users\ygal1\Documents\Visual Studio 2008\Projects\Integration Services Project2\Integration Services Project2\Package.dtsx" due to error 0x80070005 "Access is denied.". This happens when loading a package and the file cannot be opened or loaded correctly into the XML document. This can be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format. End Error Could not load package "C:\Users\ygal1\Documents\Visual Studio 2008\Projects\Integration Services Project2\Integration Services Project2\Package.dtsx" because of error 0xC0011002. Description: Failed to open package file "C:\Users\ygal1\Documents\Visual Studio 2008\Projects\Integration Services Project2\Integration Services Project2\Package.dtsx" due to error 0x80070005 "Access is denied.". This happens when loading a package and the file cannot be opened or loaded correctly into the XML document. This can be the result of either providing an incorrect file name was specified when calling LoadPackage or the XML file was specified and has an incorrect format. Source: {0AF31012-7A56-4B28-92EF-BE439E68E6F0} Started: 15:02:42 Finished: 15:02:42 Elapsed: 0.046 seconds. The package could not be found. The step failed.
关于如何解决它的任何想法?
答案 0 :(得分:2)
我有一个类似的问题,我做的让我的包运行是: 一个。在SQL Server中打开作业属性 湾在Package字段的Steps页面上:我使用整个文件夹名称而不是映射名称,例如:\ share \ allusers \ myuserid \ mypackage.dtsx而不是A:\ mypackage.dtsx
最佳。
答案 1 :(得分:1)
在我看来,SQL Agent的服务帐户没有读取package.dtsx的权限。
也许检查哪个帐户正在运行SQL Agent&赋予它对C:\ Users \ ygal1 \ Documents \ Visual Studio 2008 \ Projects \ Integration Services Project2 \ Integration Services Project2的NTFS读取权限
或者将DTSX文件存储在SQL代理帐户可以访问的位置?