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

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

Reply
PeterElbek
Frequent Visitor

Data refresh error in Power BI Pro

Getting the dreaded error: 

{"error":{"code":"ModelRefresh_ShortMessage_ProcessingError","pbi.error":{"code":"ModelRefresh_ShortMessage_ProcessingError","parameters":{},"details":[{"code":"Message","detail":{"type":1,"value":"[Unable to combine data] Section1/Transactions - 2/AutoRemovedColumns1 references other queries or steps, so it may not directly access a data source. Please rebuild this data combination."}}],"exceptionCulprit":1}}} Table: Transactions - 2.

 

I've read many blogs re this and the formula.firewall as well. And I've tried to build a staging table and to play around with private/public.

 

I'm calling a REST API first to get the number of total records because I since have to call it again to retrieve 1000 records at a time.

I've tried to simplify my below code to only include things of relevance.

 

Thing works like a charm in Desktop.

 

 

// baseURL
"https://restapi.e-conomic.com/" meta [IsParameterQuery=true, Type="Text", IsParameterQueryRequired=true]

 

// paramPageSize
"1000" meta [IsParameterQuery=true, Type="Text", IsParameterQueryRequired=false]

 

// XAppSecretToken
"Secret" meta [IsParameterQuery=true, Type="Text", IsParameterQueryRequired=false]

 

// XAgreementGrantToken
"SecretToo" meta [IsParameterQuery=true, List={"daUNWgKLrEBftRnbME4ZtPXJToDk0uKW1npHxvHA6JM1"}, DefaultValue="daUNWgKLrEBftRnbME4ZtPXJToDk0uKW1npHxvHA6JM1", Type="Text", IsParameterQueryRequired=false]

 

// Transactions - 1
let
Kilde = Table.SelectColumns(Regnskabsår,{"URLposteringer"}),
#"Extract URL" = Table.AddColumn(Kilde, "Tekst efter afgrænser", each Text.AfterDelimiter([URLposteringer], baseURL), type text),
#"Remove column" = Table.RemoveColumns(#"Extract URL",{"URLposteringer"}),
#"Rename column" = Table.RenameColumns(#"Remove column",{{"Tekst efter afgrænser", "Endpoint"}})
in
#"Rename column"

 

// Transactions - 2
let
Kilde = #"Transactions - 1",
#"Aktiveret brugerdefineret funktion" = Table.AddColumn(Kilde, "fnAPIrecords", each fnAPIrecords([Endpoint])),
#"Udvidet fnAPIrecords" = Table.ExpandTableColumn(#"Aktiveret brugerdefineret funktion", "fnAPIrecords", {"Records"}, {"Records"})
in
#"Udvidet fnAPIrecords"

 

// fnAPIrecords
let
Source = (paramURL as text) => let
Source = Json.Document(Web.Contents(
baseURL,
[
RelativePath=paramURL,
Query=
[
pagesize=paramPageSize,
skippages="0"
],
Headers=
[
#"X-AppSecretToken"=XAppSecretToken,
#"X-AgreementGrantToken"= XAgreementGrantToken,
#"Content-Type"="application/json"
]
]
)),
pagination = Source[pagination],
#"Convert to table" = Record.ToTable(pagination),
#"Filter rows" = Table.SelectRows(#"Convert to table", each ([Name] = "results")),
#"Remove columns" = Table.RemoveColumns(#"Filter rows",{"Name"}),
#"Rename columns" = Table.RenameColumns(#"Remove columns",{{"Value", "Records"}}),
#"Changed type" = Table.TransformColumnTypes(#"Rename columns",{{"Records", Int64.Type}})
in
#"Changed type"
in
Source

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @PeterElbek ,

 

For the refresh issue, there are several points you may considerate:

 

1.If your dataset not only contains cloud data source but also the on premise data source, then it needs to use the gateway,  and then you may configure schedule refresh, see more: :On-premises data gateway , Configure scheduled refresh .

 

Note that you also need to select Allow user's cloud data sources to refresh through this gateway cluster option Under Gateway Cluster Settings. See: Merge or append on-premises and cloud data sources.

 

2.Please make sure the gateway is online, and try to upgrade the gateway to latest version.

 

You might also need to upgrade the Power BI Desktop to the latest version version . Download the pbix file from Power BI Service, then reopen in Power BI Desktop and republish to Power BI Service.

 

3.Ensure that you've added one or more data sources of your dataset to the gateway, as described in Add a data source.

 

4.Verify that you have the correct username and password. Also, verify that those credentials can successfully connect to the data source. Make sure the account that's being used matches the authentication method.

 

5.Your data source credential may expire, so try to update the credential and republish the report. In Power BI, go to refresh settings for the dataset. In Manage Data Sources, select Edit credentials to update the credentials for the data source.

 

6.Please set schedule refresh for different datasets at different times, make sure that you don't schedule more than max parallel refreshes for the different nodes in these capacities. Also we suggest that you first disable all refreshes on all capacities. Then slowly enable the refreshes one by one. Make sure refreshes are staggered apart (e.g. 1 hour apart), and that no more than max concurrent refreshes happen at overlapping time periods.

 

7.Power BI Pro or Power BI Free supports uploading Power BI Desktop (.PBIX) files that are up to 1 GB in size. Power BI Premium supports uploading Power BI Desktop (.PBIX) files that are up to 10 GB in size. If you need to upload PBIX file that is larger than 10 GB, consider to move data from your source to SQL Server, Oracle or SSAS, then use DirectQuery/Live connection.

 

8.Use fiddler to monitor what happened during the refresh process.

 

You may resolve the issue via the troubleshooting link :Troubleshooting refresh scenarios

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

There's no gateway (and no intention to use one) since it's all REST API.

Greg_Deckler
Community Champion
Community Champion

@PeterElbek You could check the Issues forum here:

https://community.powerbi.com/t5/Issues/idb-p/Issues

And if it is not there, then you could post it.

If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.