在SSIS中导入Excel文件时出现错误代码:0x80040E37

时间:2013-03-02 01:01:28

标签: ssis data-connections

我正在使用SSIS 2008(SQL 2008 R2),我正在尝试使用FOREACH循环将多个Excel文件(超过100个文件)导入SQL Server。我只能在第一个文件中成功完成此操作。但是当开始第二个文件时,我会在最后用黑色字母描述大量的错误。 excel文件有多张表,但我只需要每张excel文件一张。工作表标签始终具有相同的GSDR_XXXX_FACT$Query_from_WN7X64_XXXXX_XXXX_SG,其中每个工作表都有Data Connection

编辑:我正在使用此[link]:How do I move files to an archive folder after the files have been processed? 在哪里使用CSV连接我用“EXCEL Connection”代替。 我在Excel连接中留空表达式...因为如果我尝试使用“连接字符串”,或“excelfilepath”或“服务器名称”......所有这些都会在DataFlowComponent的“excel source”中给出错误“。 ..

任何建议我真的很感激。

[Excel Source [1]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.

SSIS package "GTO_pull_data_to_table_multiple_excel_A.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.
Information: 0x402090DF at Data Flow Task, OLE DB Destination [576]: The final commit for the data insertion in "component "OLE DB Destination" (576)" has started.
Information: 0x402090E0 at Data Flow Task, OLE DB Destination [576]: The final commit for the data insertion  in "component "OLE DB Destination" (576)" has ended.
Information: 0x40043008 at Data Flow Task, SSIS.Pipeline: Post Execute phase is beginning.
Information: 0x4004300B at Data Flow Task, SSIS.Pipeline: "component "OLE DB Destination" (576)" wrote 35096 rows.
Information: 0x40043009 at Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
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.
Information: 0x402090DF at Data Flow Task, OLE DB Destination [576]: The final commit for the data insertion in "component "OLE DB Destination" (576)" has started.
Information: 0x402090E0 at Data Flow Task, OLE DB Destination [576]: The final commit for the data insertion  in "component "OLE DB Destination" (576)" has ended.
Information: 0x40043008 at Data Flow Task, SSIS.Pipeline: Post Execute phase is beginning.
Information: 0x4004300B at Data Flow Task, SSIS.Pipeline: "component "OLE DB Destination" (576)" wrote 35096 rows.
Information: 0x40043009 at Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.

******Error: 0xC0202009 at Data Flow Task, Excel Source [1]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E37.
Error: 0xC02020E8 at Data Flow Task, Excel Source [1]: Opening a rowset for "GSDR_XXXX_FACT$Query_from_WN7X64_XXXXX_XXXX_SG" failed. Check that the object exists in the database.
Error: 0xC004706B at Data Flow Task, SSIS.Pipeline: "component "Excel Source" (1)" failed validation and returned validation status "VS_ISBROKEN".
Error: 0xC004700C at Data Flow Task, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at Data Flow Task: There were errors during task validation.
Warning: 0x80019002 at Foreach Loop Container: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (6) 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.
Warning: 0x80019002 at GTO_pull_data_to_table_multiple_excel_A: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (6) 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 "GTO_pull_data_to_table_multiple_excel_A.dtsx" finished: Failure**.
**----------------------------------------------------------------------------------------**

0 个答案:

没有答案