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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JS23
Frequent Visitor

Datamart refresh 'suddenly' broken

Hi all,

I have a datamart (and a PBI PPU license) in place with 1 large fact table (31M rows, datasource = Oracle DB On Prem via Gateway) and a few small dim tables sourrounding it (data source = Oracle DB + Excel file on Sharepoint). The initial load was a struggle, but I pulled it of. Once loaded, I set up incremental refresh, only refreshing the last 3 days of date. The scheduled refresh went well, +/- 1min. So far so good.

 

Yesterday I suddenly got an error message from the refresh.

1) The refresh history gave me the following error message (after having downloaded it in CSV)

 

Refresh start time0:00:00
Refresh end time0:00:00
Refresh StatusNot Found
CPU Usage (milliseconds)Error: undefinedErrorMessage=Encountered user gateway exception: '<ccon>Evaluation resulted in a stack overflow and cannot continue.</ccon> [DM_ErrorDetailNameCode_UnderlyingErrorCode]=-2147467259 [DM_ErrorDetailNameCode_UnderlyingErrorMessage]=<ccon>Evaluation resulted in a stack overflow and cannot continue.</ccon> [DM_ErrorDetailNameCode_UnderlyingHResult]=-2147467259 [InnerType]=ErrorException <ccon>Evaluation resulted in a stack overflow and cannot continue.</ccon> [GatewayPipelineErrorCode]=DM_GWPipeline_Gateway_MashupDataAccessError [ErrorShortName]=GatewayClientErrorResponseException[GatewayId=334108]/MashupDataAccessException[ErrorCode=-2147467259
Table start timeHResult=-2147467259]/Wrapped(MashupException)[ErrorCode=-2147467259
Table End TimeHResult=-2147467259]/Wrapped(ErrorException)[HResult=-2146233088]/Wrapped(ErrorException)[HResult=-2146233088]/Wrapped(ErrorException)[HResult=-2146233088] [ExceptionErrorShortName]=GatewayClientErrorResponseException[GatewayId=334108]'.HttpStatusCode=0.
Dataflow table name
Partition name
Rows processed
Error 

 

2) When going into the Power Query Editor, not making any changes, and hit save, I get the following error in the loading pop-up screen:

 

"Data load failed

Power query processing

PQO Evaluation Failed

Any idea on why this suddenly happens? Storage/Capacity issue? Or how to fix it? --> Time to migrate to Fabric I suppose? 😉

1 ACCEPTED SOLUTION
v-nmadadi-msft
Community Support
Community Support

Hi @JS23 
Thanks for reaching out to the Microsoft fabric community forum.

Based on the error message the root cause of the error is either of these two cases:

Please check your M query to see if they have, for example, a function which calls itself recursively. In this case the query should be rewritten to iterate using List.Generate instead of recursion in order to avoid this problem.

The gateway machine is not having enough resources to process the queries and for that reason it would be a customer environment problem which should be resolve by adding more resources to the machine.

Most likely the second point is the cause of these kind of errors, additionally as mentioned by @SaiTejaTalasila  and @Deku  datamart will be retired soon.




If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thank you

View solution in original post

5 REPLIES 5
v-nmadadi-msft
Community Support
Community Support

Hi @JS23 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

 

v-nmadadi-msft
Community Support
Community Support

Hi @JS23 
Thanks for reaching out to the Microsoft fabric community forum.

Based on the error message the root cause of the error is either of these two cases:

Please check your M query to see if they have, for example, a function which calls itself recursively. In this case the query should be rewritten to iterate using List.Generate instead of recursion in order to avoid this problem.

The gateway machine is not having enough resources to process the queries and for that reason it would be a customer environment problem which should be resolve by adding more resources to the machine.

Most likely the second point is the cause of these kind of errors, additionally as mentioned by @SaiTejaTalasila  and @Deku  datamart will be retired soon.




If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thank you

SaiTejaTalasila
Super User
Super User

Hi @JS23 ,

 

You need to migrate from power bi datamart to onelake as the feature will be dicomissioned from fabric.

SaiTejaTalasila_0-1748462204436.png

 

 

Thanks,

Sai Teja 

JS23
Frequent Visitor

I understand that it will disappear, nevertheless I would like to understand the root cause of the issue...

Deku
Super User
Super User

Datamarts are also being depricated in oct-25, would be sensible to migrate ASAP

 

https://powerbi.microsoft.com/en-us/blog/unify-datamart-with-fabric-data-warehouse/#:~:text=Starting....


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.