Azure数据工厂可以';t在blob中处理空json数组

Azure数据工厂可以';t在blob中处理空json数组,azure,etl,azure-data-factory,azure-data-factory-2,azure-data-factory-pipeline,Azure,Etl,Azure Data Factory,Azure Data Factory 2,Azure Data Factory Pipeline,在azure data factory dataset中,使用复制活动将json blob加载到sqldb,当json blob是空数组“[]”时,复制活动会遇到错误 { "errorCode": "2200", "message": "Failure happened on 'Source' side. ErrorCode=UserErrorTypeInSchemaTableNotSupported,'Typ

在azure data factory dataset中,使用复制活动将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": []
}
  • 使用“获取元数据”获取文件大小。

  • 如果大小大于2,则使用if条件进行juge。如果为true,则执行复制活动。

  • 使用“获取元数据”获取文件大小。

  • 如果大小大于2,则使用if条件进行juge。如果为true,则执行复制活动。


  • 您是否可以添加“获取元数据”活动并获取json文件的大小,然后如果大小>2,则可以执行以下复制活动?您好,@WindRider。如果我的答案对你有帮助,请接受它作为答案。这可能对其他社区成员有益。您是否可以添加“获取元数据”活动并获取json文件的大小,然后如果大小>2,则可以执行以下复制活动?您好,@WindRider。如果我的答案对你有帮助,请接受它作为答案。这可能对其他社区成员有益。