Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I have another post on the community, which has been partially answered, but not resolved.
I have a Web data source connecting to the Sage One API. Im using a POST method.
I have tested the URL, headers, content-type and content on Postman.
And they work fine.
When trying to connect via Power BI Desktop I get this error:
DataSource.Error: Web.Contents with the Content option is only supported when connecting anonymously.
Details:
DataSourceKind=Web
DataSourcePath=https://accounting.sageone.co.za/api/1.1.2/AccountBalance/Get
This is the code I'm using, I have tried with authorisation in the header and setting it separately in the poppup and data source settings:
let
body=
"{
""FromDate"": ""2017-01-01"",
""ToDate"": ""2018-01-01""
}",
url = "https://accounting.sageone.co.za/api/1.1.2/AccountBalance/Get?ApiKey={GUIDGUID}&CompanyId=123456",
Source = Json.Document(Web.Contents(url, [ Headers = [#"Content-Type"="application/json"], Content = body] ))
in Source
I have seen a few posts relating to this error but none with a solution that would work for this scenario.
Can you check this isnt a Power BI bug...
Thanks
Digiroo
Solved! Go to Solution.
Hi This has been resolved.
I am setting the Basic Authorisation in the header and setting credentials to Anonymous and it works fine.
I think the patch today has fixed 🙂
Thanks
Digiroo
Hi This has been resolved.
I am setting the Basic Authorisation in the header and setting credentials to Anonymous and it works fine.
I think the patch today has fixed 🙂
Thanks
Digiroo
could you please post your code in here?
I am having trouble with anonymous credentials, it seems my header is not correctly pushing username and password values...
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
3 | |
3 | |
3 | |
2 | |
2 |