gpt4 book ai didi

sql-server - SSIS- OLE DB 源到 OLE DB 目标错误

转载 作者:搜寻专家 更新时间:2023-10-30 20:25:10 28 4
gpt4 key购买 nike

我对此很陌生。我正在尝试将 355 行传输到目的地

我有 3 列要转移 Customer_NumberCrime_TypeAction_Date

当我创建源表时都是nvarchar(50)

目标表是

[Customer Number] [float] NULL,
[Crime Type] [nchar](20) NULL,
[Date Closed] [datetime] NULL

我有另一张 table 在做同样的事情,但它运行得很好

我不明白为什么会出现这个错误

[OLE DB Destination [2]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid character value for cast specification".
[OLE DB Destination [2]] Error: There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[Customer_Number] 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.".

[OLE DB Destination [2]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "OLE DB Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC0209077 occurred, and the error row disposition on "OLE DB Destination.Inputs[OLE DB Destination Input]" specifies failure on error. 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.

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "OLE DB Destination" (2) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (15). 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.

当我同时连接源和目标时没有错误,但运行时发生此错误。

如果有人能帮忙就太好了

最佳答案

消息已经告诉您,存在转换问题:

“转换规范的无效字符值”

我的第一个猜测是您的 Customer_Number 中包含无效字符,或者字符串超出了 FLOAT 的范围。

关于sql-server - SSIS- OLE DB 源到 OLE DB 目标错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38366168/

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