禁用 Power BI Gateway - Personal 中的隐私设置Disable privacy setting in Power BI Gateway - Personal

备注

提供适用于 Power BI 的个人网关新版本,称为“本地数据网关(个人模式)”。There is a new version of the personal gateway for Power BI called the on-premises data gateway (personal mode). 下面的文章介绍了以前版本的个人网关(称为 Power BI Gateway-Personal),它将在 2017 年 7 月 31 日之后停用并停止工作。The following article describes the previous version of the personal gateway, called Power BI Gateway - Personal, which will be retired and stop working after July 31, 2017. 有关新版本的个人网关的信息(包括如何安装新版本),请参阅本地数据网关(个人模式)文章For information about the new version of the personal gateway, including how to install the new version, see the On-premises data gateway (personal mode) article. 快速合并还可用于新版本的个人网关,该功能也在该文章中进行了介绍。Fast combine is also available in the new version of the personal gateway, and is described in that article, too.

通过个人网关使用时,根据数据源的隐私设置,可能收到以下错误。You may receive the following error based on the privacy settings for your data sources when used with the personal gateway.

处理数据集中的数据时出错。An error occurred while processing the data in the dataset.

[无法合并数据] <查询部分>/<…>/<…> 正在访问的数据源具有无法一起使用的隐私级别。请重新生成此数据组合。[Unable to combine data] <query part>/<…>/<…> is accessing data sources that have privacy levels which cannot be used together. Please rebuild this data combination.

若要解决此错误,可开启快速合并To work around this error, you can turn on Fast Combine. 快速合并将忽略允许合并不同数据源的隐私设置。Fast Combine will ignore the privacy settings allowing the different data sources to be combined.

备注

合并数据时不会考虑隐私级别。Privacy levels are not considered when combining data. 这可能会导致在合并数据时向其他数据源公开敏感数据或机密数据。This could expose sensitive or confidential data to another data source when combining data.

什么是快速合并?What is Fast Combine?

若要了解有关隐私级别和快速合并的详细信息,请参阅 Privacy Levels(隐私级别)。To learn more about privacy levels and Fast Combine, you can look at Privacy Levels. 隐私级别将默认设置为专用,这就可能导致上述错误。By default, the privacy level will be set to private which could result in the error mentioned above. 这是因为设置为专用会将数据源从其他源隔离。This is because a setting of private will isolate the data source from other sources. 说明这种设置有问题的一个例子便是导致参数化查询从其他数据源获取输入。An example of where this would be a problem would be a parameterized query getting inputs from another data source.

启用快速合并将忽略隐私设置并允许执行发生。Turning Fast Combine on will ignore the private setting and allow the execution to occur.

启用快速合并Turn on Fast Combine

可使用以下步骤启用个人网关的快速合并。You can use the following steps to enable Fast Combine for your personal gateway. 本地数据网关不具有此设置。The on-premises data gateway does not have this setting.

  1. 打开 ConnectorConfig.xmlOpen ConnectorConfig.xml. 它可能位于你计算机中的两个位置中的一个。This may be in one of two locations on your machine. 如果你是计算机管理员,将是以下位置。If you are an administrator on the computer, it will be the following.

    C:\Program Files\Power BI Personal Gateway\1.0\Configurator\Connector

    如果你不是管理员,则将是以下位置。If you are not an administrator, the location will be the following.

    C:\Users\[username]\AppData\Local\Power BI Personal Gateway\1.0\Configurator\Connector
  2. 将值为 true 的 <EnableFastCombine> 元素添加到配置文件。Add the <EnableFastCombine> element with a value of true to the config file. 添加此元素将启用快速合并Adding this element will turn Fast Combine on.

    <EnableFastCombine>true</EnableFastCombine>

  3. 退出并重新启动网关配置屏幕。Exit and re-launch the gateway configuration screen.
  4. 你将看到让你知晓快速合并已启用的状态。You will see a status letting you know that Fast Combine is enabled.

禁用快速合并Turn off Fast Combine

  1. 打开 ConnectorConfig.xmlOpen ConnectorConfig.xml. 它可能位于你计算机中的两个位置中的一个。This may be in one of two locations on your machine. 如果你是计算机管理员,将是以下位置。If you are an administrator on the computer, it will be the following.

    C:\Program Files\Power BI Personal Gateway\1.0\Configurator\Connector

    如果你不是管理员,则将是以下位置。If you are not an administrator, the location will be the following.

    C:\Users\[username]\AppData\Local\Power BI Personal Gateway\1.0\Configurator\Connector
  2. 删除配置文件中的 <EnableFastCombine> 元素。Remove the <EnableFastCombine> element from the config file. 删除此元素将禁用快速合并Removing this element will turn Fast Combine off.

  3. 退出并重新启动网关配置屏幕。Exit and re-launch the gateway configuration screen.
  4. 你将不再看到让你知晓快速合并已启用的状态。You will no longer see a status telling you know that Fast Combine is enabled.

后续步骤Next steps

本地数据网关(个人模式)- 新版本的个人网关 隐私级别On-premises data gateway (personal mode) - the new version of the personal gateway Privacy Levels
Power BI Desktop 中的常见查询任务Common query tasks in Power BI Desktop
更多问题?More questions? 尝试参与 Power BI 社区Try the Power BI Community