gpt4 book ai didi

ssis - 错误 : 0xC0202009 at Data Flow Task, OLE DB 目标 [43] : SSIS Error Code DTS_E_OLEDBERROR. 发生 OLE DB 错误。错误代码:0x80040E21

转载 作者:行者123 更新时间:2023-12-02 02:45:33 25 4
gpt4 key购买 nike

我的源是 TXT 平面文件源,目标是 OLE DB 类型。 (见图)

enter image description here

我发现了一个非常basic tutorial on Code Project创建一个包。我完成了这些步骤,但是在调试时出现了一个奇怪的错误(如下):

有人可以解释一下这个错误吗?我花了几个小时在网上搜索错误。

SSIS package"C:\Users\USRNAME\Desktop\Projects\DataGeneratorSsis\DataGeneratorSsis\Package.dtsx"starting. Information: 0x4004300A at Data Flow Task, SSIS.Pipeline:Validation phase is beginning. Information: 0x4004300A at Data FlowTask, SSIS.Pipeline: Validation phase is beginning. Warning:0x80047076 at Data Flow Task, SSIS.Pipeline: The output column"intApplication" (7) on output "Flat File Source Output" (6) andcomponent "Flat File Source" (2) is not subsequently used in the DataFlow task. Removing this unused output column can increase Data Flowtask performance. 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 isbeginning. Information: 0x402090DC at Data Flow Task, Flat File Source2: The processing of file "C:\Users\USRNAME\Desktop\ddd.txt" hasstarted. Information: 0x4004300C at Data Flow Task, SSIS.Pipeline:Execute phase is beginning. Information: 0x402090DE at Data Flow Task,Flat File Source 2: The total number of data rows processed for file"C:\Users\USRNAME\Desktop\ddd.txt" is 2. Error: 0xC0202009 at DataFlow Task, OLE DB Destination [43]: SSIS Error Code DTS_E_OLEDBERROR.An OLE DB error has occurred. Error code: 0x80040E21. An OLE DB recordis available. Source: "Microsoft SQL Server Native Client 11.0"Hresult: 0x80040E21 Description: "Multiple-step OLE DB operationgenerated errors. Check each OLE DB status value, if available. Nowork was done.". Error: 0xC020901C at Data Flow Task, OLE DBDestination [43]: There was an error with OLE DBDestination.Inputs[OLE DB Destination Input].Columns[AppID] on OLE DBDestination.Inputs[OLE DB Destination Input]. The column statusreturned was: "The value could not be converted because of a potentialloss of data.". Error: 0xC0209029 at Data Flow Task, OLE DBDestination [43]: SSIS Error CodeDTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "OLE DBDestination.Inputs[OLE DB Destination Input]" failed because errorcode 0xC0209077 occurred, and the error row disposition on "OLE DBDestination.Inputs[OLE DB Destination Input]" specifies failure onerror. An error occurred on the specified object of the specifiedcomponent. There may be error messages posted before this with moreinformation about the failure. Error: 0xC0047022 at Data Flow Task,SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. TheProcessInput method on component "OLE DB Destination" (43) failed witherror code 0xC0209029 while processing input "OLE DB DestinationInput" (56). The identified component returned an error from theProcessInput method. The error is specific to the component, but theerror is fatal and will cause the Data Flow task to stop running.There may be error messages posted before this with more informationabout the failure. Information: 0x40043008 at Data Flow Task,SSIS.Pipeline: Post Execute phase is beginning. Information:0x402090DD at Data Flow Task, Flat File Source 2: The processing offile "C:\Users\USRNAME\Desktop\ddd.txt" has ended. 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 TaskWarning: 0x80019002 at Package: SSIS Warning CodeDTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, butthe number of errors raised (4) reached the maximum allowed (1);resulting in failure. This occurs when the number of errors reachesthe number specified in MaximumErrorCount. Change theMaximumErrorCount or fix the errors. SSIS package"C:\Users\USRNAME\Desktop\Projects\DataGeneratorSsis\DataGeneratorSsis\Package.dtsx"finished: Failure.

相关错误信息

There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[AppID] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "The value could not be converted because of a potential loss of data."

最佳答案

之所以发生此错误,是因为源中的 AppID 列值对于目标中的 AppID 列无效。

一些可能的例子:

  • 您正在尝试将 10 个字符的值插入到 8 个字符的字段中。
  • 您正尝试将大于 127 的值插入到 tinyint 字段中。
  • 您正在尝试将值 6.4578 插入到小数 (5,1) 字段中。

SSIS 由元数据控制,它希望您正确设置输入和输出,以便两者的可接受值在同一范围内。

关于ssis - 错误 : 0xC0202009 at Data Flow Task, OLE DB 目标 [43] : SSIS Error Code DTS_E_OLEDBERROR. 发生 OLE DB 错误。错误代码:0x80040E21,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19093339/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com