Powerbi Power BI数据源。错误:Web。内容无法从url获取内容错误?
最近,我的Power BI仪表板开始返回错误,我不知道原因。有人能解释为什么它可能失败了吗 我得到的错误是: 我使用的高级查询是:Powerbi Power BI数据源。错误:Web。内容无法从url获取内容错误?,powerbi,Powerbi,最近,我的Power BI仪表板开始返回错误,我不知道原因。有人能解释为什么它可能失败了吗 我得到的错误是: 我使用的高级查询是: let url = "http://<domain>:<port>/jderest/orchestrator/SEF_ORCH_V4211APBISalesDash", body = "{""deviceName"":""PowerBI"",""username"":""<username>"",""passwo
let
url = "http://<domain>:<port>/jderest/orchestrator/SEF_ORCH_V4211APBISalesDash",
body = "{""deviceName"":""PowerBI"",""username"":""<username>"",""password"":""<password>""}",
Source = Json.Document(Web.Contents(url, [Headers=[ContentType="application/json"],Content = Text.ToBinary(body)]))
in
Source
let
url=“http://:/jderest/orchestrator/SEF\u ORCH\u V4211APBISalesDash”,
body=“{”“deviceName”“:”“PowerBI”“用户名”“:”“,”“密码”“:”“}”,
Source=Json.Document(Web.Contents(url,[Headers=[ContentType=“application/Json”],Content=Text.ToBinary(body)])
在里面
来源
我不确定这是怎么回事。我试着通过上面的Soup UI运行它,它成功了
有人能解释为什么高级查询出错吗?我们找到了解决方案。它看起来像是源于一个更新 错误在于需要更新其格式的标题中的
ContentType=“application/json”
。正确的格式是#“Content Type”=“application/json”
原来的代码是:
let
url = "http://<domain>:<port>/jderest/orchestrator/SEF_ORCH_V4211APBISalesDash",
body = "{""deviceName"":""PowerBI"",""username"":""<username>"",""password"":""<password>""}",
Source = Json.Document(Web.Contents(url, [Headers=[ContentType="application/json"],Content = Text.ToBinary(body)]))
in
Source
let
url=“http://:/jderest/orchestrator/SEF\u ORCH\u V4211APBISalesDash”,
body=“{”“deviceName”“:”“PowerBI”“用户名”“:”“,”“密码”“:”“}”,
Source=Json.Document(Web.Contents(url,[Headers=[ContentType=“application/Json”],Content=Text.ToBinary(body)])
在里面
来源
需要:
let
url = "http://<domain>:<port>/jderest/orchestrator/SEF_ORCH_V4211APBISalesDash",
body = "{""deviceName"":""PowerBI"",""username"":""<username>"",""password"":""<password>""}",
Source = Json.Document(Web.Contents(url, [Headers=[#"Content-Type"="application/json"],Content = Text.ToBinary(body)]))
in
Source
let
url=“http://:/jderest/orchestrator/SEF\u ORCH\u V4211APBISalesDash”,
body=“{”“deviceName”“:”“PowerBI”“用户名”“:”“,”“密码”“:”“}”,
Source=Json.Document(Web.Contents(url,[Headers=[#“Content Type”=“application/Json”],Content=Text.ToBinary(body)])
在里面
来源
这是因为在更新之后(不确定是哪一个更新)ContentType=“application/json”
被视为杂项标记
更改为#“Content Type”=“application/json”
后,它不再是一个杂项标记。它像以前一样被视为一个实体