SSAS 中缺少必需的列 Visual Studio

Required columns missing in SSAS Visual Studio

我有 SSAS 2017 模型,我在设计模式中重命名了几列。

因此,在 table 和分区定义中,我有一个名为 PowerQueryColumn 的列,而在设计中,同一列被重命名为 BusinessName。

table 定义的模型代码如下所示:

"columns": [
      {
        "name": "BusinessName",
        "dataType": "string",
        "sourceColumn": "PowerQueryColumn"
      },

这在部署后在服务器上工作得很好,但是当我尝试在 VS 中验证这个分区时,我得到这个错误:

Cannot import the partition query because the set of columns in the partition definition does not match those in the table definition. The following required columns are missing: BusinessName

我已经多次进行此更改,但在这种情况下我第一次收到错误消息,尽管它在服务器上有效。

我决定手动更改源列以匹配 .bim 文件中的名称列。在此之后,我在 Power Query 中重命名了它们,而不是表格中的设计模式。从用户的角度来看,没有任何改变,但现在分区验证有效。

我不知道是什么导致这个问题首先出现,因为列重命名是 AS 的基本可能性之一:/