简体   繁体   English

Power BI REST API:远程服务器返回错误

[英]Power BI REST API: The remote server returned an error

I recently started exploring the Power BI REST API, but today I encountered something weird. 我最近开始探索Power BI REST API,但是今天我遇到了一些奇怪的事情。

Yesterday I downloaded the Power BI getting-started-for-dotnet project from Github. 昨天,我从Github下载了Power BI的dotnet入门项目。 ( https://github.com/PowerBI/getting-started-for-dotnet ). https://github.com/PowerBI/getting-started-for-dotnet )。 For this project to run, I had to do a few things on my Azure account which I did successfully. 为了运行该项目,我必须在成功完成的Azure帐户上做一些事情。 I ran the application yesterday and everything was fine. 我昨天运行了应用程序,一切都很好。

Today however I receive an error when I try to add rows to the dataset. 但是今天,当我尝试向数据集中添加行时收到错误消息。 It gives me following error: "The remote server returned an error: (404) Not found." 它给了我以下错误:“远程服务器返回错误:(404)未找到。”

I redownloaded the project, but it still gives me the same error. 我重新下载了该项目,但它仍然给我同样的错误。

Anyone else experienced this? 还有其他人经历过吗?

I would suggest to set some breakpoints in the sample code and see if the dataset is actually created. 我建议在示例代码中设置一些断点,并查看是否实际创建了数据集。 If the dataset is created, and is found by the call that lists all datasets, check for the id, as there can be multiple datasets with the same name, id is unique. 如果创建了数据集,并且通过列出所有数据集的调用找到了该数据集,请检查ID,因为可能存在多个具有相同名称的数据集,因此ID是唯一的。 Finally, make sure that id is used by the POST to push rows into the dataset. 最后,确保POST使用ID将行推入数据集中。

Hope this helps. 希望这可以帮助。

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

相关问题 REST Search API远程服务器返回错误:(401)未经授权 - REST Search API The remote server returned an error: (401) Unauthorized PowerShell & 电源BI Rest API - PowerShell & Power BI Rest API Power BI REST API Power Query/Power BI 中的使用数据 - Power BI REST API Usage data in Power Query/Power BI ALM Rest API:site-session返回“远程服务器返回错误:(400)错误的请求。” - ALM Rest API : site-session returns 'The remote server returned an error: (400) Bad Request.' Power BI REST API ExportToFileInGroup 不工作 - Power BI REST API ExportToFileInGroup Not Working 使用Python验证Power BI REST API时出现问题 - Problem authenticating to Power BI REST API with Python power bi 服务中的 Rest API 凭据问题 - Rest API credentials issues in power bi service 通过 REST API 在 Power BI 报表服务器上设置报表数据源和凭据以建立计划刷新 - Set report data source and credentials on Power BI Report Server through REST API to establish a scheduled refresh Trello将api作为Power Bi验证问题的数据源 - Trello rest api as a data source for Power Bi - authentication issue 如何使用rest api将数据集作为csv文件导入到power bi? - How to import datasets as csv file to power bi using rest api?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM