简体   繁体   English

将 SSIS 包作为 SQL Server 代理作业运行失败

[英]Running SSIS packages as SQL Server Agent Job failed

it is the first time and my first post in "stackoverflow" and I hope, that you can help me regarding my project.这是第一次,也是我在“stackoverflow”中的第一篇文章,我希望你能帮助我处理我的项目。

Once I start the corresponding Job in SSMS, which I have created, I get the following error message:在我创建的 SSMS 中启动相应的作业后,我收到以下错误消息:

Executed as user: XXXX Microsoft (R) SQL Server Execute Package Utility Version 13.0.5026.0 for 32-bit Copyright (C) 2016 Microsoft.以用户身份执行:XXXX Microsoft (R) SQL Server 执行包实用程序版本 13.0.5026.0 for 32-bit 版权所有 (C) 2016 Microsoft。 All rights reserved.版权所有。 Started: 15:36:23 Error: 2021-10-11 15:36:23.51 Code: 0xC0011007 Source: {BE14993C-9347-4920-8C3C-97E254866D05} Description: Unable to load the package as XML because of package does not have a valid XML format.开始时间:15:36:23 错误:2021-10-11 15:36:23.51 代码:0xC0011007 来源:{BE14993C-9347-4920-8C3C-97E254866D05} 说明:无法加载 XML,因为包没有加载有效的 XML 格式。 A specific XML parser error will be posted.将发布特定的 XML 解析器错误。 End Error Error: 2021-10-11 15:36:23.51 Code: 0xC0011002 Source: {BE14993C-9347-4920-8C3C-97E254866D05} Description: Failed to open package file "D:\\Test\\XXX.dtsx" due to error 0x80070003 "The system cannot find the path specified.".结束错误 错误:2021-10-11 15:36:23.51 代码:0xC0011002 来源:{BE14993C-9347-4920-8C3C-97E254866D05} 说明:由于 todt 错误,无法打开包文件“D:\\Test”xXXX. 0x80070003 "系统找不到指定的路径。"。 This occurs when loading a package and the file cannot be opened or loaded correctly into the XML document.当加载包并且文件无法打开或正确加载到 XML 文档时会发生这种情况。 This can be the result of specifying an incorrect file name when calling LoadPackage or the specified XML file has an incorrect format.这可能是由于在调用 LoadPackage 时指定了不正确的文件名或指定的 XML 文件的格式不正确造成的。 End Error Could not load package "D:\\Test\\XXXX.dtsx" because of error 0xC0011002.结束错误 由于错误 0xC0011002,无法加载包“D:\\Test\\XXXX.dtsx”。 Description: Failed to open package file "D:\\Test\\XXXX.dtsx" due to error 0x80070003 "The system cannot find the path specified.".说明:由于错误 0x80070003“系统找不到指定的路径。”,无法打开包文件“D:\\Test\\XXXX.dtsx”。 This occurs when loading a package and the file cannot be opened or loaded correctly into the XML document.当加载包并且文件无法打开或正确加载到 XML 文档时会发生这种情况。 This can be the result of specifying an incorrect file name when calling LoadPackage or the specified XML file has an incorrect format.这可能是由于在调用 LoadPackage 时指定了不正确的文件名或指定的 XML 文件的格式不正确造成的。 Source: {BE14993C-9347-4920-8C3C-97E254866D05} Started: 15:36:23 Finished: 15:36:23 Elapsed: 0.016 seconds.来源:{BE14993C-9347-4920-8C3C-97E254866D05} 开始:15:36:23 完成:15:36:23 经过:0.016 秒。 The package could not be found.找不到包。 The step failed.步骤失败。

I have already tried the following points:我已经尝试了以下几点:

  • The permissions which I log in on the appropriate server, etc.我在适当的服务器上登录的权限等。
  • I have created a "Credential" & "Proxy" and configurated/managed it我创建了一个“凭据”和“代理”并对其进行了配置/管理
  • Check the "DelayValidation" in Visual Studio (is "True")检查Visual Studio 中“DelayValidation”(为“True”)
  • TargetServerVersion is on "SQL Server 2019" TargetServerVersion 在“SQL Server 2019”上
  • Security => ProtectionLevel is on "EncryptSensitiveWithUserKey"安全 => 保护级别“EncryptSensitiveWithUserKey”上

Many thanks for your assist.非常感谢您的帮助。

Best Regards, Safak最好的问候,萨法克

  • I see that the path of the package using is a path server server.我看到使用的包的路径是路径服务器服务器。 If that's the case replace it with UNC path in format //machinename/ c$/...如果是这种情况,请将其替换为格式为 //machinename/ c$/... 的 UNC 路径

  • The account executing package from job has no access to path.从作业执行包的帐户无权访问路径。 If that's the case give account access to the path如果是这种情况,请授予帐户访问路径的权限

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM