简体   繁体   English

导出多个表时出现SSIS / DTS错误

[英]SSIS/DTS error when exporting multiple tables

Im getting a weird issue here that when I run the Import/Export from MSSMS 2008R2 and export these 4 tables to an access database with the same table structures that it will error with below: 我在这里遇到一个奇怪的问题,当我从MSSMS 2008R2运行导入/导出并将这4个表导出到具有相同表结构的访问数据库时,它将出现以下错误:

"- Copying to 'sdgrpmap' (Error) Messages Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. “-复制到'sdgrpmap'(错误)消息错误0xc0202009:数据流任务1:SSIS错误代码DTS_E_OLEDBERROR。

An OLE DB error has occurred. 发生OLE DB错误。 Error code: 0x80004005. 错误代码:0x80004005。

(SQL Server Import and Export Wizard) Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. (SQL Server导入和导出向导)错误0xc0209029:数据流任务1:SSIS错误代码DTS_E_INDUCEDTRANSFORMFAILUREONERROR。 The "input "Destination Input" (144)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (144)" specifies failure on error. “输入“目标输入”(144)”失败,因为发生了错误代码0xC020907B,并且在“输入“目标输入”(144)”上的错误行配置指定发生错误。 An error occurred on the specified object of the specified component. 指定组件的指定对象发生错误。 There may be error messages posted before this with more information about the failure. 在此之前可能会发布错误消息,其中包含有关失败的更多信息。

(SQL Server Import and Export Wizard) Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. (SQL Server导入和导出向导)错误0xc0047022:数据流任务1:SSIS错误代码DTS_E_PROCESSINPUTFAILED。 The ProcessInput method on component "Destination 2 - stdchp" (131) failed with error code 0xC0209029 while processing input "Destination Input" (144). 处理输入“目标输入”(144)时,组件“目标2-stdchp”(131)的ProcessInput方法失败,错误代码为0xC0209029。 The identified component returned an error from the ProcessInput method. 所标识的组件从ProcessInput方法返回了错误。 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. 在此之前可能会发布错误消息,其中包含有关失败的更多信息。 (SQL Server Import and Export Wizard)" (“ SQL Server导入和导出向导”)

Now I tried verifying the data is not an issue and verified that all the table mappings are correct and correct data types too but it still fails. 现在,我尝试验证数据不是问题,并验证所有表映射都是正确的并且数据类型也正确,但是仍然失败。

I narrowed it down by running each of the 4 table exports individually and each one worked just fine. 我通过分别运行4个表导出中的每一个来缩小范围,并且每个表都工作得很好。 But when I added all 4 back it failed again. 但是,当我将所有4个添加回去时,它再次失败了。 I added 3 of the 4 and it still ran. 我添加了4个中的3个,它仍然可以运行。 The table "sdgrpmap" is the problem table when in the group of tables to export. 在要导出的表组中,表“ sdgrpmap”是问题表。 Not sure why but googled all the error codes and they are wide ranging and not really on my issue. 不知道为什么,但是用谷歌搜索了所有错误代码,它们范围很广,并不是我的问题。

Anyone know why one table would fail when run in a group of table exports but not by itself? 任何人都知道为什么在一组表导出中运行一个表时会失败,但不能单靠失败吗? Sounds like a locking or update issue and the access connection is set to shared but probably a sql server issue. 听起来像是锁定或更新问题,并且访问连接设置为共享,但可能是sql服务器问题。

Thanks 谢谢

Edit: Adding the report which shows that 3 tables wrote out the correct number of records but the 4th "stdchp" only wrote out 193 out of the 2622 records. 编辑:添加报告,显示3个表写出了正确的记录数,但第4个“ stdchp”仅写出了2622条记录中的193条。

  • Executing (Success) 执行(成功)

  • Copying to chapterorigin (Success) 16 rows transferred 复制到chapterorigin (成功)传输了16行

  • Copying to sdgrpmap (Error) 40 rows transferred 复制到sdgrpmap (错误)已传输40行

Messages Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. 消息错误0xc0202009:数据流任务1:SSIS错误代码DTS_E_OLEDBERROR。 An OLE DB error has occurred. 发生OLE DB错误。 Error code: 0x80004005. 错误代码:0x80004005。 (SQL Server Import and Export Wizard) Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. (SQL Server导入和导出向导)错误0xc0209029:数据流任务1:SSIS错误代码DTS_E_INDUCEDTRANSFORMFAILUREONERROR。 The "input "Destination Input" (144)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (144)" specifies failure on error. “输入“目标输入”(144)”失败,因为发生了错误代码0xC020907B,并且在“输入“目标输入”(144)”上的错误行配置指定发生错误。 An error occurred on the specified object of the specified component. 指定组件的指定对象发生错误。 There may be error messages posted before this with more information about the failure. 在此之前可能会发布错误消息,其中包含有关失败的更多信息。 (SQL Server Import and Export Wizard) Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. (SQL Server导入和导出向导)错误0xc0047022:数据流任务1:SSIS错误代码DTS_E_PROCESSINPUTFAILED。 The ProcessInput method on component "Destination 2 - stdchp" (131) failed with error code 0xC0209029 while processing input "Destination Input" (144). 处理输入“目标输入”(144)时,组件“目标2-stdchp”(131)的ProcessInput方法失败,错误代码为0xC0209029。 The identified component returned an error from the ProcessInput method. 所标识的组件从ProcessInput方法返回了错误。 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. 在此之前可能会发布错误消息,其中包含有关失败的更多信息。 (SQL Server Import and Export Wizard) (SQL Server导入和导出向导)

  • Copying to stdchp (Stopped) 复制到stdchp (已停止)

  • Copying to stdpdrpanelmap (Stopped) 复制到stdpdrpanelmap (已停止)

  • Post-execute (Success) Messages 执行后(成功)消息

  • Information 0x4004300b: Data Flow Task 1: "component "Destination - chapterorigin" (22)" wrote 16 rows. 信息0x4004300b:数据流任务1:“组件“目标-起源”(22)”写了16行。 (SQL Server Import and Export Wizard) (SQL Server导入和导出向导)
  • Information 0x4004300b: Data Flow Task 1: "component "Destination 1 - sdgrpmap" (66)" wrote 40 rows. 信息0x4004300b:数据流任务1:“组件“目标1-sdgrpmap”(66)”写了40行。 (SQL Server Import and Export Wizard) (SQL Server导入和导出向导)
  • Information 0x4004300b: Data Flow Task 1: "component "Destination 2 - stdchp" (131)" wrote 193 rows. 信息0x4004300b:数据流任务1:“组件“目标2-stdchp”(131)”写了193行。 (SQL Server Import and Export Wizard) (SQL Server导入和导出向导)
  • Information 0x4004300b: Data Flow Task 1: "component "Destination 3 - stdpdrpanelmap" (201)" wrote 4853 rows. 信息0x4004300b:数据流任务1:“组件“目标3-stdpdrpanelmap”(201)”写了4853行。 (SQL Server Import and Export Wizard) (SQL Server导入和导出向导)

I think it's failing because of data in tables. 我认为它由于表中的数据而失败。

If you are combining data from all four tables and putting in one table then destination table should support requirement for all 4 tables. 如果要合并所有四个表中的数据并放入一个表中,则目标表应支持所有四个表的要求。

It's down to - 归结为-

  • Null values are allowed or not 是否允许空值
  • data types and field size 数据类型和字段大小

You can implement re-direct bad rows logic in your package so that you can have bad data(if there is any). 您可以在包中实现重定向不良行逻辑,以便可以拥有不良数据(如果有)。 Also with the help of derived column, process null values. 同样在派生列的帮助下,处理空值。

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

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