1

在 azure 数据工厂数据集中,使用复制活动将 json blob 加载到 sqldb,当 json blob 为空数组“[]”时,复制活动会出现错误。

{
    "errorCode": "2200",
    "message": "Failure happened on 'Source' side. ErrorCode=UserErrorTypeInSchemaTableNotSupported,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Failed to get the type from schema table. This could be caused by missing Sql Server System CLR Types.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.InvalidCastException,Message=Unable to cast object of type 'System.DBNull' to type 'System.Type'.,Source=Microsoft.DataTransfer.ClientLibrary,'",
    "failureType": "UserError",
    "target": "BP_acctset_Blob2SQL",
    "details": []
}
4

1 回答 1

0
  1. 使用 Get Metadata 获取文件大小。 在此处输入图像描述

  2. 使用 if 条件判断大小是否大于 2。如果为 true,则执行复制活动。 在此处输入图像描述

于 2020-08-14T05:32:02.287 回答