Power BI Data Source with Refresh ability RRS feed

  • Question

  • i am trying to setup a data set in Power BI which can be refreshed on a need basis or scheduled to refresh.

    I am uploading an excel workbook which has a power query.

    the power query is connecting to Replicon Service to get data via service. the query looks as below:

    Source = Web.Contents("https://na2.replicon.com/services/ClientService1.svc/GetActiveClients", [Headers=[#"Authorization"="Bearer ValidToken", #"Accept"="application/json", #"Content-Type"="application/json"],
    Content=Text.ToBinary("{}") ])

    the request is a POST operation and hence Content field is used in Web.Contents Options argument. Authentication is via Bearer token.

    Data source setting is Anonymous Credentials with privacy Level set to None.

    this works fine and i am able to retrieve the results and even refresh form within workbook.

    once i upload this to PowerBI and attempt to refresh the newly created Dataset it says "You cannot refresh yet because you need to provide valid credentials for your data sources in the dataset.".

    So i go to Manage Data sources. Click Edit Credentials. Select "Anonymous" Authentication method and click on Sign In and it says "Login Failed".

    why is that so? It appears that the Headers are lost when i upload the Excel workbook. how can i accomplish this? is there any alternate ways of being able to set up a Data Set which can be refreshed - the source being a web service?

    Thursday, July 23, 2015 3:18 PM


All replies