Azure Datafactory无法处理Blob中的空json数组

问题描述

在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'.,'","failureType": "UserError","target": "BP_acctset_Blob2SQL","details": []
}

解决方法

  1. 使用“获取元数据”获取文件大小。 enter image description here

  2. 使用if条件判断大小是否大于2。如果为true,则执行复制活动。 enter image description here

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...