You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Data Factory v1 JSON数据集typeProperties缺失属性排查求助

解决Azure Data Factory v1 JSON数据集的「Property expected」错误

嘿,我一眼就发现了两个问题,刚好能解释你遇到的「Property expected」错误:


1. 先修复一个语法小bug

你在format对象的末尾多了个多余的逗号(就是jsonPathDefinition闭括号后面的那个),这个会让JSON解析器直接报错,先把它删掉。

2. 补上缺失的必填属性

对于AzureDataLakeStore类型的数据集,ADF v1要求typeProperties里必须包含fileName属性——哪怕你想用通配符匹配文件(比如*.json),或者打算在后续管道活动里动态指定文件名,也得先填一个有效值,不能完全省略这个属性。


下面是修正后的完整数据集定义:

{
  "name": "JsonDataSetData",
  "properties": {
    "type": "AzureDataLakeStore",
    "linkedServiceName": "TestAzureDataLakeStoreLinkedService",
    "structure": [
      {
        "name": "timestamp",
        "type": "String"
      },
      {
        "name": "value",
        "type": "Double"
      }
    ],
    "typeProperties": {
      "folderPath": "root_folder/sub_folder",
      "fileName": "*.json", // 新增的必填属性,这里用通配符示例
      "format": {
        "type": "JsonFormat",
        "filePattern": "setOfObjects",
        "jsonPathDefinition": {
          "spid": "$.timestamp",
          "value": "$.value"
        }
      }
    },
    "availability": {
      "frequency": "Day",
      "interval": 1
    }
  }
}

简单说,ADF v1的ADLS数据集强制要求指定文件名规则,不管是具体文件名还是通配符,缺了这个属性就会触发你看到的错误提示。

内容的提问来源于stack exchange,提问作者Sindre Tosse

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 07:05:45