JSON DDL请求失败-管道行集丢失

时间:2019-07-01 16:24:20

标签: azure-analysis-services xmla

客观
使用查询(覆盖)刷新分区。使用这些作为指导:

显然,MS示例不正确:https://docs.microsoft.com/en-us/bi-reference/tmsl/refresh-command-tmsl#examples

TMSL脚本

{
  "refresh" : {
    "type" : "add",
    "objects" : [{
        "database" : "dbname",
        "table" : "tblname"
      }
    ],
    "overrides" : [{
        "partitions" : [
          {
            "originalObject" : {
              "database" : "dbname",
              "table" : "tblname",
              "partition" : "partname"
            },
            "source" : {
              "query" :
              "SELECT * FROM source.view WHERE date_field = '2014-12-06'"
            }
          }
        ]
      }
    ]
  }
}

错误消息

The JSON DDL request failed with the following error: Failed to execute XMLA. Error returned: 'The Process command for partition 'partname' in table 'tblname' cannot be executed because the pipeline rowset is missing.
'..

Technical Details:
RootActivityId: 89a6f9ac-e5d4-4eaa-b049-455190039b4b
Date (UTC): 6/28/2019 3:20:36 PM
  0: PFError::SetLastError() line 2158 + 0x0 (sql\picasso\engine\src\pf\eh\pferror.cpp)
  1: PFSetLastError() line 2906 + 0x0 (sql\picasso\engine\src\pf\eh\pferror.cpp)
  2: ConvertExceptionsToPFResult<<lambda_764f81a97ea803a6bb1663c7971ce151> >() line 424 + 0x34 (sql\picasso\engine\src\pf\kernel\shared\pfshmacros.inl)
  3: PFSetLastErrorExTag() line 3461 + 0x2e (sql\picasso\engine\src\pf\eh\pferror.cpp)
  4: 0x00007FFAB599CC7E (symbolic name unavailable)

其他信息
直接在SSMS上和Powershell中(通过Runbook)执行此错误消息。

问题
此错误消息的确切含义是什么? (很难找到 有用的文档。)或者,有没有替代的解决方案来刷新 使用查询覆盖的分区?

1 个答案:

答案 0 :(得分:0)

  • 您只能使用查询或M个分区源
  • 如果使用的是M分区源,则语法为: “资源”:{ “ type”:“ m”, “表达”:”…” }
  • 如果使用的是查询分区源,则语法为: “资源”:{ “ type”:“查询”, “ query”:“…”, “数据源”:”…” }