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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Baqa
Frequent Visitor

Can't save dataflow "One or more tables references a dynamic data source

The below query working fine 
but when I try to save and Close the dataflow it throughs an error

Can't save dataflow "One or more tables references a dynamic data source



let
    Source = URLTable,
    FirstURL = Source{0}[URL], // Change 1 to the index of the URL you want to use
    // Function to handle retry with exponential backoff
    RetryFunction = (URL) =>
        let
            // Define the number of retry attempts
            maxAttempts = 5,
            // Initial wait time in milliseconds
            initialWait = 1000,
            // Function to make the actual request
            MakeRequest = (retryCount, waitTime) =>
                let
                    // Attempt to fetch data
                    result = try GoogleSheets.Contents(URL)
                             otherwise null,
                    // Handle retry logic
                    nextWait = waitTime * 2
                in
                    if result <> null or retryCount >= maxAttempts then
                        result
                    else
                        MakeRequest(retryCount + 1, nextWait)
        in
            MakeRequest(1, initialWait),

    // Invoke the retry function with the FirstURL
    Tb = RetryFunction(FirstURL),

    // Navigate and process data within the dynamically fetched table (Tb)
    Navigation = Tb{[name = "Members", ItemKind = "Table"]}[Data],
    PromotedHeaders = Table.PromoteHeaders(Navigation, [PromoteAllScalars = true]),
    ChangedColumnType = Table.TransformColumnTypes(PromotedHeaders, {
        {"Membership Number", type text},
        {"Membership ID", Int64.Type},
        {"Membership Category", Int64.Type},
        {"Category Name", type text},
        {"Member Status", type text}
    })
in
    ChangedColumnType
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Baqa ,

According to my search, dataflow does not work with dynamic URLs. I see that there seems to be a step in your M function that has a URL selection step, which may be the problem.
You can refer to this post's solution:
Solved: Error - "One or more table references a dynamic Da... - Microsoft Fabric Community

You can also refer to these posts:
Solved: API Paginated Result 'One or more table references... - Microsoft Fabric Community
Solved: sql.database , Can't save dataflow One or more ta... - Microsoft Fabric Community

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Baqa ,

According to my search, dataflow does not work with dynamic URLs. I see that there seems to be a step in your M function that has a URL selection step, which may be the problem.
You can refer to this post's solution:
Solved: Error - "One or more table references a dynamic Da... - Microsoft Fabric Community

You can also refer to these posts:
Solved: API Paginated Result 'One or more table references... - Microsoft Fabric Community
Solved: sql.database , Can't save dataflow One or more ta... - Microsoft Fabric Community

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors