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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JWolmanSymplr
Helper I
Helper I

Power BI Dataflow saves and closes successfully, but Refresh returns Credentials Not Found

I have a Power BI Dataflow which saves and closes successfully and returns my data correctly, but when I save and close and try to Refresh the Refresh fails with a Credentials Not Found For Data Source.

 

My dataflow started as a Blank Query and I put in the following:

let
 
rollingDate =Date.ToText(Date.AddDays(DateTime.Date(DateTime.LocalNow()),-102),"yyyy-MM-ddZ"),
 
Source = Json.Document( Web.Contents ("https://analytics.dev.azure.com/[company]/_odata",[ 
RelativePath = "v3.0-preview/WorkItemSnapshot?", 
Query=[ 
#"$apply"="filter(DateValue ge " & rollingDate & " and Date/DayOfWeek eq 5 and WorkItemType in ('Feature') and Project/ProjectName in ('My Project') and Area/AreaPath ne null and Iteration/IterationPath ne null) /groupby((DateValue,WorkItemType,Project/ProjectName,Area/AreaPath,State,Iteration/IterationPath),aggregate($count as WorkItemCount, Effort with sum as SumofEffort, StoryPoints with sum as SumofStoryPoints))"
 
]])),
value = Source[value],
#"Converted to Table" = Table.FromList(value, Splitter.SplitByNothing(), null, null, ExtraValues.Error)
in
#"Converted to Table"
 
 
This returns my data and I can Save and Close, but the dataflow does not refresh.
 
When I check the Options and the Project Data Load, the Data gateway only gives me (None) and two of my on-premise SQL server gateways. I cannot add or select anything valid for this query as this is an Azure DevOps query.
 
How can I use this query and yet still have my dataflow Refresh?
1 ACCEPTED SOLUTION

The question mark works, what I had to do was create a new dataflow and select a generic OData feed query, then add my query above using the Let syntax. If I tried to create an empty dataflow and then create a blank query using my query from above it would not work.

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Small comment: Remove the question mark from the RelativePath

 

How are you authenticating, via OAUTH2?

The question mark works, what I had to do was create a new dataflow and select a generic OData feed query, then add my query above using the Let syntax. If I tried to create an empty dataflow and then create a blank query using my query from above it would not work.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors