【问题标题】:Page navigation not happening in Power bi embedded reportPower bi 嵌入式报表中未发生页面导航
【发布时间】:2017-10-02 06:29:27
【问题描述】:

两天后页面导航工作正常,但突然页面导航没有发生在嵌入式报告中。

当我将“数据包摘要”导航到“订阅详细信息”页面时未加载,但“订阅详细信息”按钮(或链接)被高亮显示,如下图所示。

还检查了 IE 浏览器的网络选项卡,显示如下错误..状态代码:401 / 未授权

错误是:-

Request URL: https://df-msit-scus.analysis.windows.net/explore/explorations/1528262/cache
Request Method: POST
Status Code: 401 / Unauthorized
Request Headers
Accept: application/json, text/plain, /
Accept-Encoding: gzip, deflate
Accept-Language: en-US, en; q=0.5
ActivityId: 0e8c0b1d-92e9-4ceb-b7e4-9f58b1b99350
Authorization: Bearer eyJ0eXAiOiJKV..........................
Connection: Keep-Alive
Content-Length: 28330
Content-Type: application/json; charset=utf-8
Host: df-msit-scus.analysis.windows.net
Origin: https://msit.powerbi.com
Referer: https://msit.powerbi.com/reportEmbed?reportId=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
RequestId: d8021d51-7e12-4823-117c-f69004614707
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)

Response Headers
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: https://msit.powerbi.com
Cache-Control: no-store, must-revalidate, no-cache
Content-Type: application/octet-stream
Date: Wed, 03 May 2017 11:24:40 GMT
RequestId: d8021d51-7e12-4823-117c-f69004614707
Server: Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
X-Frame-Options: deny

如果你有任何想法,请帮忙。

【问题讨论】:

    标签: asp.net-mvc rest asp.net-mvc-3 powerbi powerbi-embedded


    【解决方案1】:

    使用后问题解决了

    来源:https://app.powerbi.com

    代替

    来源:https://msit.powerbi.com

    需要如下代码

    var embedUrl = "https://app.powerbi.com/reportEmbed?reportId=" + reportObj.ReportID
    var config = {
    type: 'report',
    accessToken: accessToken,
    embedUrl: embedUrl,
    id: reportObj.ReportID,
    settings: {
    filterPaneEnabled: false,
    navContentPaneEnabled: true
    }
    };
    

    =================================

    输出是:

    Request URL: https://df-msit-scus-redirect.analysis.windows.net/explore/reports/xxxxxx-xxxxxx-xxxxx-xxxxxxx-xxxxx...
    Request Method: OPTIONS
    Status Code: 200 / OK
    - Request Headers
    Accept: */*
    Accept-Encoding: gzip, deflate
    Access-Control-Request-Headers: activityid, requestid, authorization, accept
    Access-Control-Request-Method: GET
    Cache-Control: no-cache
    Connection: Keep-Alive
    Content-Length: 0
    Host: df-msit-scus-redirect.analysis.windows.net
    Origin: https://app.powerbi.com
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)
    
    - Response Headers
    Access-Control-Allow-Credentials: true
    Access-Control-Allow-Headers: activityid,requestid,authorization
    Access-Control-Allow-Origin: https://app.powerbi.com
    Access-Control-Max-Age: 300
    Content-Length: 0
    Date: Mon, 08 May 2017 10:06:37 GMT
    Server: Microsoft-HTTPAPI/2.0
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-26
      相关资源
      最近更新 更多