2016-07-14 142 views
0

我在这方面很新颖。我想355行转送至目的地SSIS- OLE DB来源到OLE DB目标错误

我有3列转移Customer_NumberCrime_TypeAction_Date

当我创建的源表中的所有都nvarchar(50)

目标表是

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

我有另一个表做相同的,但它的运行完全正常

我不明白为什么我得到这个错误

[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.

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

如果有人可以帮助将是巨大的

回答

1

由于消息已经告诉你,有一个铸造的问题:

我的第一个猜想是,

“流延规范无效字符值”您的Customer_Number中有无效字符,或者字符串超出了FLOAT的范围。

+0

感谢您的帮助,我将其从源码更改为nvarchar,现在可以正常工作。 – Gomes1985