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