2017-01-11 39 views
0

我是SSIS的初学者。我一直在使用SSIS生成excel时遇到了一些问题。一套餐生成10擅长于parallel.Excel报告使用格式化的excel预先生成的,并且包复制模板到一个给定的位置和Excel是在目标path.The封装件产生的是由父母package.That父包称为是使用SQL JOB.Now问题是当我执行包,我面临的一些challenges.all的报表生成,但有时fails.the故障不会发生所有报表生成一个或两个excel文件生成一个名为失败。SSIS excel生成错误

Description: "External table is not in the expected format.". End Error Error: 2017-01-11 22:53:06.32 Code: 0xC020801C Source: Loan Insource Data Excel Destination [73] Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Loan Insrc Data1" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. End Error Error: 2017-01-11 22:53:06.40 Code: 0xC004701A Source: Loan Insource Data SSIS.Pipeline Description: component "Excel Destination" (73) failed the pre-execute phase and returned error code 0xC020801C. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 22:36:15 Finished: 22:57:22 Elapsed: 1267.15 seconds. The package execution failed. The step failed.

+0

看看这会有所帮助。 https://ask.sqlservercentral.com/questions/114399/error-code-0xc0202009-in-ssis.html –

回答

2

这是使用Excel数据源时出现的经典错误。

为了解决

步骤1:导航到工程 - > [PROJECT_NAME]属性。

第2步:从左侧面板导航到“调试”选项,右侧面板将Run64BitRuntime值更改为false。

+0

我已经使用上述设置使用设置执行了软件包。但问题是,当我通过.NET code.i正在使用SQL工作执行执行package.I已经使用的SQL作业的32位执行设置带。该报告正在生成,但有时会出现单个任务失败的情况,但所有其他任务正在生成Excel。 –

+0

上面做变化对你包BIDS并保存文件并替换和执行工作...是 –

+0

。我已经做到了,现在正在执行。 –