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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Fern_21
Advocate III
Advocate III

How to avoid the 'dynamic data source' error during Power BI Service refresh

Hi all!

On a sharepoint list, the user uploads me images. I have to put these images in the Projects list (which is what I load on the report), which also contains the fields Title, ProjectName. Once this Projects list is loaded on Powert BI, I need to be able to display the corresponding image for each project.

This is the code that I use.

let

SharePointSite = "https://[nome_sito_sharepoint]/sites/[nome_sito]",


ListName = "[Nome_lista_progetti]",


Source = OData.Feed(SharePointSite & "/_api/web/lists/getbytitle('" & ListName & "')/items", null, [Implementation="2.0"]),


SelectedColumns = Table.SelectColumns(Source, {"Title", "Project_Name", "URL_Immagini"}),


#"Added Image Data" = Table.AddColumn(SelectedColumns, "ImageData", each try Web.Contents([URL_Immagini]) otherwise null),


#"Added Base64 Image" = Table.AddColumn(#"Added Image Data", "Base64Image", each
if [ImageData] <> null
then "data&colon;image/jpeg;base64," & Binary.ToText([ImageData], BinaryEncoding.Base64)
else null
),

#"Added Custom" = Table.AddColumn(#"Added Base64 Image", "SharePointImageURL", each [Base64Image])
in
#"Added Custom"


This works when I refresh it in Desktop, but when I publish it to the Service, I get this error: "This dataset includes a dynamic data source. Since dynamic data sources aren’t refreshed in the Power BI service, this dataset won’t be refreshed."

How to avoid this mistake?

Thanks

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @Fern_21 

 

The reason for this is because the url is based off parameters. It is not a defined. url that can be accessed. There is a work around for this in Chris Webb, blog post where he explains how to move those components to a different part of the URL. Chris Webb's BI Blog: Web.Contents, Text Concatenation And Dataset Refresh Errors In Power BI/Power ...





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ !

Even following this concatenation logic with '&', I continue to receive the refresh issue on the Service.

How can I resolve ? 

Thanks

Anonymous
Not applicable

Hi  @Fern_21, hello GilbertQ, thank you for your prompt reply!

To determine whether your dynamic data source can be refreshed, open the Data source settings dialog in Power Query Editor, and then select Data sources in current file. In the window that appears, look for the warning message, as shown in the following image:

vyajiewanmsft_2-1732849539707.png

If that warning is present in the Data source settings dialog that appears, then a dynamic data source that can't be refreshed in the Power BI service is present.


As a workaround, we suggest you store images on a public site.

 

More information for your reference:

Data refresh in Power BI - Power BI | Microsoft Learn

 

Best regards,

Joyce

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

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors