【问题标题】:How to fix the message The OAuth authentication method isn't supported for this data source in Power BI?如何修复消息在 Power BI 中此数据源不支持 OAuth 身份验证方法?
【发布时间】:2022-08-23 19:02:01
【问题描述】:

我使用带有 Excel 的 Sharepoint 站点构建 Power BI 报告,一切正常,但是如果我使用相同的 Excel 更改不同 Sharepoint 站点的数据源,则会出现以下错误:\"此数据源不支持 OAuth 身份验证方法\"

你知道我该如何解决吗?

    标签: powerbi powerbi-datasource


    【解决方案1】:

    我希望你已经解决了你的问题。为了将来参考,我将分享我对您(和我)遇到的错误消息的解决方案。

    我正在使用带有指向 Sharepoint 上 Excel 文件的直接 URL 的 Web 连接,如this tutorial 中所述。但是,在将 Power BI 报告上传到服务后,我无法针对 Sharepoint 资源进行身份验证。

    将 Excel 文件的直接 Web 链接更改为 Sharepoint 文件夹连接器后,我能够使用 OAuth2 身份验证方法。 以下是(编辑的)M 代码:

    let
        Source = SharePoint.Files("https://organizationname.sharepoint.com/sites/teamsite/", [ApiVersion = 15]),
        ExcelFile = Source{[Name="SourceExcelName.xlsx",#"Folder Path"="https://organizationname.sharepoint.com/sites/teamsite/Shared Documents/path01/"]}[Content],
        ImportExcelFile = Excel.Workbook(ExcelFile),
        Sheet = ImportExcelFile{[Item="Targets",Kind="Sheet"]}[Data],
        PromoteHeaders = Table.PromoteHeaders(Sheet, [PromoteAllScalars=true]),
        ChangeDataType = Table.TransformColumnTypes(PromoteHeaders,{{"Source name", type text}, {"Source file name", type text}, {"Maximum", Int64.Type}})
    in
        ChangeDataType
    

    这是教程的链接:https://powerbi.tips/2016/09/loading-excel-files-from-sharepoint/

    希望这有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-07
      • 1970-01-01
      • 1970-01-01
      • 2021-02-05
      • 1970-01-01
      相关资源
      最近更新 更多