简体   繁体   中英

Type Conversion Error in Copy activity for value 2150002867256: Azure data factory

I see other post for same kind of error, but seems not solution working out. I am getting the same error "Operation on target Copy data into Target failed: ErrorCode=TypeConversionFailure,Exception occurred when converting value '2150002867256' for column name 'sourceKey' from type 'String' (precision:255, scale:255) to type 'Int32' (precision:, scale:). Additional info: Value was either too large or too small for an Int32."

My source (Synapse) column type (Varchar (249) and Target (Couchbase) column type are same STRING. But not sure the error for the value '2150002867256' . Its a ODBC connection between Synapse and Couchbase. And doing COPY Activity in ADF

Please help if anyone has any input. Thank you so much.

enter image description here

Your data type of sink table schema column sourceKey must be INT(Transact-SQL) :

在此处输入图片说明

The value '2150002867256' is out of the int range that caused the error. You could test is in SSMS and you will get the error: 在此处输入图片说明

You must change your sink table schema to other data type, for example bigint . It works well. 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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