Forum Discussion
Anonymous access
- 10 years ago
I had the same issue and logged a support ticket with Microsoft because I wanted to build my own Google Analytics queries (include filters, segments, etc).
Here's the answer I got from the support team:
This is not possible due to constraints with the way Web.Contents stores credentials. They are stored based upon the URL value passed, and there can only be one URL per Dataset. In this case, you're trying to short-circuit a typical oAuth2 flow (one URL) and call the API (another URL). I made an attempt at using RelativePath to 'trick' the service, but stills require that the root of those two endpoints returned a valid HTTP 200 response to indicate connection success. In this case, https://www.googleapis.com returns a 404. Unfortunately, therefore it is not possible as an uploaded PBIX file. I suggest creating a new issue describing what data you would want to see in the Google Analytics content pack (https://app.powerbi.com/groups/me/getdata/services/google-analytics) and we can see about adding it to the model.The only workaround for me so far, is to execute the query elsewhere (for me it's Google Spreadsheet) and connect PBI to that as a data source.
Hello DuncanP, I am facing the similar issue. I have done all the workarounds that you suggested. but still the issue is persisted.
let
AuthKey = "Basic mykey",
url="https://tfs.mnsu.edu/tfs/ITS%20AppDev/Test%20Agile%20Project/_apis/wit/wiql?api-version=1.0",
body="{
""query"": ""Select [System.Id], [System.Title], [System.State] From WorkItems Where [System.WorkItemType] = 'Task' and [System.AreaPath]='Test Agile Project'""
}",
Source = Json.Document(Web.Contents(url,[
Headers = [#"Authorization"= AuthKey ,
#"Content-Type"= "application/json"],
Content = Text.ToBinary(body)
]
))
in
Sourceand the eeror i am getting is
can you please help what is wrong with this setup
- yakkalipavan8 years agoRegular Visitor
Thank you very much for the quick reply sahilhira162.
Yes I tried changing the relative path as well. Still the same error.
let AuthKey = "Basic Y2FtcHVzL2RmMjU1MGZpOmpsZWU0cmp5eWl1Mmh4bm4zeml5eHcydHZ3NWx1NHVqcm5kbDRoZm56d29uN3pjYml1dnE=", url="https://tfs.mnsu.edu", body="{ ""query"": ""Select [System.Id], [System.Title], [System.State] From WorkItems Where [System.WorkItemType] = 'Task' and [System.AreaPath]='Test Agile Project'"" }", Source = Json.Document(Web.Contents(url,[ Headers = [#"Authorization"= AuthKey , #"Content-Type"= "application/json"], Content = Text.ToBinary(body), RelativePath="tfs/ITS%20AppDev/Test%20Agile%20Project/_apis/wit/wiql?api-version=1.0" ] )) in SourceThanks
Yakkalipavan
- sahilhira1628 years agoHelper I
- yakkalipavan8 years agoRegular Visitor
Thanks sahilhira162
I am a newbie to the powerBI and I am using powerBI desktop. can you please tell me how to set the powerBI datasource to anonymous. or please give a path to it
Thanks
yakkalipavan
- yakkalipavan8 years agoRegular Visitor
Hi
Thanks you very much. i could able to connect now by setting the data source to anonymous
- Santhanakrishna8 years agoNew MemberI got the same error I tried connecting as an anonymous user but receiving the following error"We couldn't authenticate with the credentials provided.Please try again".Could anyone please help.
- naren8 years agoFrequent Visitor
Hi Santhanakrishna,
I got the same error I tried connecting as an anonyms user but receiving the following error
"We couldn't authenticate with the credentials provided.Please try again"
U got any solution for this issue, Could anyone please help.
- Santhanakrishna8 years agoNew Member
I got the same error I tried connecting as an anonyms user but receiving the following error
"We couldn't authenticate with the credentials provided.Please try again"
Could anyone please help.