【问题标题】:SSIS Package Failing when called through DTExec - fine through VS通过 DTExec 调用 SSIS 包失败 - 通过 VS 很好
【发布时间】:2020-06-10 19:46:55
【问题描述】:

我有一个 SSIS 包,当我在 VS 中按下“开始”按钮时,它运行良好,但是当我通过 DTExec 运行它时,它正在轰炸一部分并出现以下错误。

Error: 2020-06-10 13:47:20.22
   Code: 0xC0047038
   Source: JCMAST to SQL SSIS.Pipeline
   Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on JCMAST - WA returned error code 0x80004005.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
End Error
Error: 2020-06-10 13:47:20.49
   Code: 0xC0047022
   Source: JCMAST to SQL SSIS.Pipeline
   Description: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Co, Job Yesterday Sort" (47) failed with error code 0xC0047020 while processing input "Sort Input" (50). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
End Error

我可以看到包被正确调用,因为我可以看到所有不同的验证和预执行步骤。这些是整个运行过程中出现的唯一错误。

到目前为止,我在谷歌上搜索到的所有这些错误通常都带有某种额外的错误。这里不是这样。

让我很困惑的是为什么它会手动运行,而不是通过 cmd。

编辑:完整的错误输出

Started:  2:55:09 PM
Error: 2020-06-10 14:55:14.35
   Code: 0xC0047038
   Source: JCMAST to SQL SSIS.Pipeline
   Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on JCMAST - WA returned error code 0x80004005.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
End Error
Error: 2020-06-10 14:55:14.64
   Code: 0xC0047022
   Source: JCMAST to SQL SSIS.Pipeline
   Description: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Co, Job Yesterday Sort" (47) failed with error code 0xC0047020 while processing input "Sort Input" (50). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
End Error
Error: 2020-06-10 14:55:20.67
   Code: 0xC0047038
   Source: EMP Files to SQL SSIS.Pipeline
   Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on PREMP - WA returned error code 0x80004005.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started:  2:55:09 PM
Finished: 2:55:34 PM
Elapsed:  24.343 seconds

SSIS package "D:\SafetyServicesProjects\WebAppsTest2\WebAppsTest2\Package.dtsx" starting.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x80049304 at Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's console.
Information: 0x40043006 at Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
Information: 0x4004300C at Data Flow Task, SSIS.Pipeline: Execute phase is beginning.
Error: 0xC0047038 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on ODBC Source returned error code 0x80004005.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
Information: 0x40043008 at Data Flow Task, SSIS.Pipeline: Post Execute phase is beginning.
Information: 0x4004300B at Data Flow Task, SSIS.Pipeline: "OLE DB Destination" wrote 0 rows.
Information: 0x40043009 at Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: Data Flow Task
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "D:\SafetyServicesProjects\WebAppsTest2\WebAppsTest2\Package.dtsx" finished: Failure.

【问题讨论】:

  • 在 /REP E 上添加了整个输出。在不同的数据流任务上,只有额外的错误是完全相同的。
  • 嗯,我期待看到类似“要在 SQL Server Data Tools 之外运行 SSIS 包,您必须安装标准版的 Integration Services 或更高版本”。关于这个包你能告诉我们什么——里面有什么连接,你是如何从命令行运行它的,等等?
  • 这也是让我感到困惑的地方。我期待更多信息...该包使用 OLE DB 和 ODBC 连接,组合数据,并通过 OLE DB 将数据放入 SQL 中。命令行就是经典的“..\DTExec.exe”/f“文件名”。查看错误,它们进入具有 ODBC 连接器的控制流任务,但给出错误的组件是 OLE DB 源。
  • 欣赏这一点 - 实际上注意到,在我看过的其他一些问题上,你也在所有这些问题上!衷心感谢您的帮助。昨天我很沮丧,几乎把所有东西都用核弹炸了,周一会回来。那么更多信息......
  • Oookay...在这里为您提供更多信息。所以我最初在 Server 2012 上构建了这个包,然后停止使用该服务器,因为我无法将 PowerShell 安装到它上面。从来没有安排过这项工作,就在我最初开发它的地方。刚刚再次转到该虚拟机...它在游戏中运行良好,如果我按 Ctrl+F5...它说它无法运行,因为未正确安装 Server 2017。不确定是否相关。

标签: ssis dtexec


【解决方案1】:

嗯。想通了。

事实证明,这一切都归结为版本控制。我使用的 IBM iAccess ODBC 版本在 Windows 10 上存在问题。升级到最新版本并且可以正常工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-05-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多