简体   繁体   English

值 2150002867256 的复制活动中的类型转换错误:Azure 数据工厂

[英]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."我收到同样的错误“目标复制数据到目标上的操作失败:ErrorCode=TypeConversionFailure,将列名“sourceKey”的值“2150002867256”从类型“字符串”(精度:255,比例:255)转换为类型时发生异常'Int32'(精度:,比例:)。附加信息:对于 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我的源 (Synapse) 列类型(Varchar (249) 和 Target (Couchbase) 列类型是相同的 STRING。但不确定值 '2150002867256' 的错误。它是 Synapse 和 Couchbase 之间的 ODBC 连接。并在 ADF 中执行 COPY Activity

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) :您的接收器表架构列sourceKey数据类型必须是INT(Transact-SQL)

在此处输入图片说明

The value '2150002867256' is out of the int range that caused the error.值 '2150002867256' 超出了导致错误的 int 范围。 You could test is in SSMS and you will get the error:您可以在 SSMS 中进行测试,您将收到错误消息: 在此处输入图片说明

You must change your sink table schema to other data type, for example bigint .您必须将接收器表架构更改为其他数据类型,例如bigint It works well.它运作良好。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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