Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
zayne
Frequent Visitor

credentials are now required for new queries in dataflows even though the same query works elsewhere

I've been trying to copy a query from one dataflow to another so that I can use it to filter the table in that dataflow, but I'm getting the issue below:

 

"Credentials are required to connect to the Web source. (Source at https://xxxxxxxxxxx/api  )

 

Every time I try to verify the credentials, I'm shown this:

 

zayne_0-1671535752390.png

 

When I do so, I'm just taken back to the query with the same message shown above: 

 

zayne_2-1671535413590.png

If I try to create a new connection, I get this.

zayne_0-1671535295700.png

 

I don't understand this, because the query is working in the other dataflow, and I'm simply copying it to another dataflow. The query uses a parameter for the APIKey. I've copied that across too. 

 

 

 

 

 

let
  BaseURL = "https://xxxx.xxxxx/api/v1/",
  Entity = "xxxxxx",
  Source = Json.Document(
    Web.Contents(
        BaseURL,
        [
            RelativePath = Entity,
            Query = [
                        api_token = APIKey,
                        filter_id = "754",
                        limit="1",
                        start="0",
                        get_summary="1"
                    ]
        ]
    )
),

 

 

 

 

 

It seems like this is an issue with the service that has cropped up.

3 REPLIES 3
KNP
Super User
Super User

Hi @zayne,

 

I'm having the same issue, oddly, the exact same code is working in other environments.

Did you manage to solve this?

 

@Anonymous - if you have access to the product team relating to Dataflows, can you ask them...

"Has something changed in the service that prevents Web.Contents working in dataflows with Anonymous auth?"

"Are there any known issues with Web.Contents specifically in Dataflows?"

 

I'd love to know if this is due to changes and going to extend to other environments because I'm going to need to build a fix if this is the case.

 

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!
zayne
Frequent Visitor

Thanks for posting. However, none of these are related to my issue.

 

Anonymous
Not applicable

Hi  @zayne ,

 

This is the related document, you can view this content:

Solved: Web.Contents throws error when trying to pass toke... - Microsoft Power BI Community

Help... please! Credentials are required to connec... - Microsoft Power BI Community

Credentials provided for the Web source are invalid - PowerBI - SharePoint Views

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors