简体   繁体   English

尝试配置 Power BI Data Gatwewy 时出错

[英]Error when trying to configure Power BI Data Gatwewy

Just installed Power BI Data Gateway on one of the companies servers.刚刚在其中一台公司服务器上安装了 Power BI Data Gateway。

The processes was smooth and very easy, I have assigned a name to the Data Gateway.过程顺利且非常简单,我为数据网关指定了一个名称。

As it is linked to my email (I think this is going to be another problem when other employees trying to publish their reports), when I tried to configure datasource in my Gateway I get this error !由于它链接到我的电子邮件(我认为当其他员工尝试发布他们的报告时,这将是另一个问题),当我尝试在网关中配置数据源时,我收到此错误!

Unable to connect: We encountered an error while trying to connect to .无法连接:我们在尝试连接到 时遇到错误。 Details: ""细节: ””

Activity ID: 951737c3-eea2-43c3-b5d4-7bb03e247e5b活动 ID:951737c3-eea2-43c3-b5d4-7bb03e247e5b

Request ID: b7c69cff-2be9-f965-2586-14b978802dd7请求 ID:b7c69cff-2be9-f965-2586-14b978802dd7

Cluster URI: https://wabi-australia-southeast-redirect.analysis.windows.net集群 URI: https : //wabi-australia-southeast-redirect.analysis.windows.net

Status code: 400状态码:400

Error Code: DMTS_UpdateClusterDatasourceCredentialsErrorCode错误代码:DMTS_UpdateClusterDatasourceCredentialsErrorCode

Time: Mon Sep 02 2019 10:15:31 GMT+1000 (AUS Eastern Standard Time)时间:2019 年 9 月 2 日星期一 10:15:31 GMT+1000(澳大利亚东部标准时间)

Version: 13.0.10599.151版本:13.0.10599.151

PBIGateway: The on-premises data gateway's service account failed to impersonate the user. PBIGateway:本地数据网关的服务帐户无法模拟用户。

I am sure that my user ID and password are both correct, not sure why it is not working!!我确定我的用户名和密码都是正确的,不知道为什么它不起作用!!

This one had me stumped for days.这让我难倒了好几天。 Why would the PBI desktop app allow connections, seamlessly on your desktop and yet when you publish a report to the web, bong-bong no authentication, no credentials, nothing!为什么会PBI桌面应用程序允许连接,无缝地在桌面上,但在发布报告到网络,奉奉不认证,不凭证,没有! It was very frustrating, and no specific details other than a plethora of connection IDs which mean nothing.这非常令人沮丧,除了大量毫无意义的连接 ID 之外,没有任何具体细节。

In the end, we found the problem was between how we've set up the Power BI Gateway on-prem, and whether the gateway service account on the gateway had the permissions to access our data sources, both from SQL Server on-prem and an Excel table in Sharepoint.最后,我们发现问题在于我们如何在本地设置 Power BI Gateway,以及网关上的网关服务帐户是否有权访问我们的数据源,包括本地 SQL Server 和Sharepoint 中的 Excel 表格。

When setting up your Gateway (not a personal GW, but a server side one), we've created the gateway using the Admin local account.在设置网关(不是个人 GW,而是服务器端网关)时,我们使用 Admin 本地帐户创建了网关。 That was our first mistake.那是我们的第一个错误。 We couldn't connect to any of our SQL Server databases, from Sharepoint.我们无法从 Sharepoint 连接到我们的任何 SQL Server 数据库。 So we've re-installed it using an Admin O365 AD account.因此,我们使用Admin O365 AD 帐户重新安装了它 Our SQL Server access was ok, but anything in Sharepoint wouldn't work - even though the same account was used to put Excel files and CSV files into Sharepoint.我们的 SQL Server 访问正常,但 Sharepoint 中的任何内容都不起作用 - 即使使用同一个帐户将 Excel 文件和 CSV 文件放入 Sharepoint。

We then noticed that the gateway was defaulted to a service account under the NT Authority group.然后我们注意到网关默认为 NT Authority 组下的服务帐户。 Again, another local account.再次,另一个本地帐户。 Changed that to another O365 account, but again - nothing would allow us to connect to the Excel sharepoint file!将其更改为另一个 O365 帐户,但再次 - 没有任何东西可以让我们连接到 Excel 共享点文件! How hard can this be, when the Excel file connected fine inside PowerBI desktop!当 Excel 文件在 PowerBI 桌面内连接良好时,这有多难! It was very frustrating.这非常令人沮丧。

So we've re-installed the on-prem gateway again, but this time used one AD account for it's sign on, and another system AD account for it's service account.因此,我们再次重新安装了本地网关,但这次使用一个 AD 帐户进行登录,并使用另一个系统 AD 帐户作为其服务帐户。 We also publish the PBI report to the cloud, but the dataset would be failing to connect to the Excel file in Sharepoint.我们还将 PBI 报告发布到云端,但数据集将无法连接到 Sharepoint 中的 Excel 文件。 WHY!!!???为什么!!!???

It came to that User tab and putting our on-prem gateway service account in the User list of the connector to the Sharepoint file.它来到那个用户选项卡并将我们的本地网关服务帐户放在连接器的用户列表中到 Sharepoint 文件。

VOILA!!瞧!! It worked.有效。

In summary:总之:

  • Create your PBI reports in desktop and point everything you need to what ever you need in the Get Data wizards在桌面上创建您的 PBI 报告,并将您需要的所有内容指向获取数据向导中的任何内容
  • If you're referring to an Excel file, DO NOT point to a local / network Excel file.如果您指的是 Excel 文件,请勿指向本地/网络 Excel 文件。 You're wasting your time.你在浪费时间。
  • Put the Excel/CSV or whatever in sharepoint in a Documents folder somewhere将 Excel/CSV 或共享点中的任何内容放在 Documents 文件夹中的某处
  • Click Manage Permissions on the file and add the On-Prem service gateway to the list单击文件上的管理权限并将本地服务网关添加到列表中
  • Next, open the Excel file on the web接下来,打开网页上的Excel文件
  • And go ahead and open it in your local desktop Excel as well继续在本地桌面 Excel 中打开它
  • Go to FILE --> INFO转到文件 --> 信息
  • Click Copy Location to store the location of the file in the clipboard.单击复制位置以将文件的位置存储在剪贴板中。 Save this string in notepad将此字符串保存在记事本中
  • Close Excel on-prem关闭本地 Excel
  • Close Excel online在线关闭 Excel
  • Go to your PBI report and edit the M-Code via the Advanced Editor of your data source转到您的 PBI 报告并通过数据源的高级编辑器编辑 M 代码
  • Replace the C drive location of your Excel filepath with the one copied into your notepad将 Excel 文件路径的 C 盘位置替换为复制到记事本中的位置
  • Now your query is pointing to the Excel file in sharepoint.现在您的查询指向 sharepoint 中的 Excel 文件。
  • Publish your report发布您的报告
  • Go to app.powerbi.com and go to your report's dataset转到 app.powerbi.com 并转到您的报告的数据集
  • Click the three dots and go to Settings单击三个点并转到设置
  • Go to Gateway Cluster and lick Manage Gateway link转到网关集群并点击管理网关链接
  • Open up your gateway cluster and go to your Excel data connector打开网关集群并转到 Excel 数据连接器
  • Select it and click the Users tab选择它并单击“用户”选项卡
  • Add your on-prem gateway service account again to this list再次将您的本地网关服务帐户添加到此列表中
  • Save节省
  • Refresh your dataset刷新数据集

Voila!瞧! No more errors.没有更多的错误。

I hope this lengthy answer has been enough for your to realise [1] microsoft write great software, but crappy user-experience with it and [2] you need to pass on the credentials of the gateway to any datasource that uses it, in reference to any datasource that require a gateway between on-prem and cloud reports.我希望这个冗长的答案足以让您意识到 [1] 微软编写了很棒的软件,但是它的用户体验很糟糕 [2] 您需要将网关的凭据传递给使用它的任何数据源,参考到任何需要本地和云报告之间的网关的数据源。

I have the same error, but related to the driver NPGSQL ... 我有同样的错误,但与驱动程序NPGSQL有关...

ID da atividade:    70a6de64-39be-4710-8ef8-ff5280ee559e
Solicitar ID:   7566647f-6950-a865-4bfd-3802071ece40
Cluster URI:    https://wabi-brazil-south-b-primary-redirect.analysis.windows.net/
Código de status:   400
Código de Erro: DMTS_UpdateClusterDatasourceCredentialsErrorCode
Hora:   Thu Nov 21 2019 15:31:32 GMT-0300 (Horário Padrão de Brasília)
Versão do serviço:  13.0.11428.218
Versão do Cliente:  1911.2.022
gateway_local:  Não é possível conectar à fonte de dados undefined.
Código de erro subjacente:  -2147467259
Mensagem de erro subjacente:    PostgreSQL: Não conseguimos localizar um provedor de banco de dados com o nome invariável 'Npgsql'. Esse erro pode ter sido resultado da ausência de um software cliente específico do provedor necessário nesse computador. Para baixar o software cliente para esse provedor, visite o seguinte site e selecione a versão de 64 bits (x64), como mínimo, 'Npgsql version 2.0.12': https://go.microsoft.com/fwlink/?LinkID=282716
DM_ErrorDetailNameCode_UnderlyingHResult:   -2147467259
Microsoft.Data.Mashup.ValueError.ClientLibraryName: Npgsql version 2.0.12
Microsoft.Data.Mashup.ValueError.DataSourceKind:    PostgreSQL
Microsoft.Data.Mashup.ValueError.DataSourcePath:    mysql.inttegra.com:5434;inttegra_dw
Microsoft.Data.Mashup.ValueError.DownloadLink:  https://go.microsoft.com/fwlink/?LinkID=282716
Microsoft.Data.Mashup.ValueError.Reason:    DataSource.MissingClientLibrary

I've tried numerous versions of npgsql, and amazingly they all work with power bi desktop 我已经尝试了许多版本的npgsql,而且令人惊讶的是,它们都可以与Power Bi Desktop一起使用

We have same problem in powerbi gateway.我们在 powerbi 网关中遇到了同样的问题。 Turns out the database password is expired.原来数据库密码已过期。 After reset password.重置密码后。 Problem solved.问题解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试通过计划刷新Power BI中的数据时的错误解决方案 - Solution to error when trying to refresh data in Power BI via schedule 通过 Power BI 服务共享时的 Power BI 数据集 - Power BI Data set when sharing through Power BI Service 尝试对 Power BI 数据视图中的列重新排序 - Trying to Reorder Columns in Data View in Power BI 在 power bi 中导入雪花数据时出现 utf-8 错误 - getting utf-8 error when importing snowflake data in power bi 尝试在 reactjs 应用程序中嵌入 power bi 时出错 - error trying to embed power bi in reactjs app 尝试在Azure HDInsight Connector中使用Spark导入Power BI中的数据时出错 - Getting an error while trying to import data in Power BI using Spark in Azure HDInsight Connector 为什么在尝试将 Excel 文件导入 Power BI 时出现错误? - Why do I get an error when trying to import an Excel file into Power BI? 当数据嵌入到保存的 Power BI 报告中时 - When data are embedded into saved Power BI report 尝试访问在 Azure SQL Server 上运行 SQL 查询的已发布 Power BI 报告时出现缺少凭据错误 - Missing credientials error when trying to access a published Power BI report that runs a SQL query on Azure SQL Server 试图理解自动刷新 Power BI 数据的问题 - Trying to understand problem automatically refreshing Power BI data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM