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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
RomanTesolkin
Regular Visitor

Oracle Query Folding Error: Non-null assertion failure: resource should be available for query

Getting a persistent cache/query folding error when refreshing Oracle queries in Power BI Desktop. The exact error is:

 

Non-null assertion failure: resource should be available for query "QueryName" to store FoldedArtifacts in cache

Troubleshooting Steps Attempted:

  1. Cleared all Power BI cache folders via PowerShell as Administrator
  2. Deleted ExtensionCache folders for both Store and Desktop versions
  3. Completely uninstalled and reinstalled Power BI Desktop
  4. Downloaded fresh copy from GitHub repository
  5. Deleted local .pbi cache files (cache.abf)
  6. Tested with Value.NativeQuery() instead of direct Oracle.Database query
  7. Verified Oracle connectivity works with other queries
  8. Cleared cash in settings

Any ideas?

1 ACCEPTED SOLUTION

The error is fixed. The powerbi parameter is a number. When you add this to the query string, you have be sure to remove the comma's and points. My solution is to use "F0" in number.to_Text(Parameter,"F0"). The parameter is an integer, so I don't need decimal signs.
No error anymore but it still didn't work like expected. It kept using the default value of the parameter. I tried to link the parmaeter with a column from an other table. But that didn't do anything.
I was able to make the performance better in the underling oracle database. So not urgent anymore...

View solution in original post

8 REPLIES 8
v-sdhruv
Community Support
Community Support

Hi @pieter_nuyens ,

Thank You for the update. Glad you were able to resolve the issue.If you have any question, feel free to reach out to us.

Regards,
Shruti

v-sdhruv
Community Support
Community Support

Hi @pieter_nuyens ,


If you are getting this error after incremental refresh, can you please try to disable once and check if you are still getting this error?

Thank you

The error is fixed. The powerbi parameter is a number. When you add this to the query string, you have be sure to remove the comma's and points. My solution is to use "F0" in number.to_Text(Parameter,"F0"). The parameter is an integer, so I don't need decimal signs.
No error anymore but it still didn't work like expected. It kept using the default value of the parameter. I tried to link the parmaeter with a column from an other table. But that didn't do anything.
I was able to make the performance better in the underling oracle database. So not urgent anymore...

pieter_nuyens
New Member

Hello Is this bug already fixed ? I'm havingthe same erros with direct queries to Oracle with dynamic parameters.

v-sdhruv
Community Support
Community Support

Hi @RomanTesolkin ,

I hope you were able to create a support ticket successfully.
If you need any assistance, let us know.
Thank you

v-sdhruv
Community Support
Community Support

Hi @RomanTesolkin ,

Thank you for the update.
The idea was to help you riase the issue in the issues forum. If it would get enough votes, it will be resolved.
If you still need any assistance, please consider raising a support ticket here-
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
Microsoft Fabric service status

Hope this helps!

v-sdhruv
Community Support
Community Support

Hi @RomanTesolkin ,

Seems like the dataset is too large or the query is complex such that the memory consumed by the query exceeds the configured limit.

You can try these steps-

1.Remove or isolate complex steps (e.g., custom columns, joins across sources).

2.Use View Native Query to confirm folding is active.

3.Disable incremental refresh temporarily to see if the error persists.

4.Switch to DirectQuery Mode:

5.Ensure lists used in filters are properly typed and constructed.

6.Set both sources to “Organizational” if safe, to avoid blocking folding.

If the error still persists, try raising the issue here
Issues - Microsoft Fabric Community

Hope this helps!

Thank you for your response @v-sdhruv .

My report is configured in DirectQuery mode, using dynamic parameters with a native Oracle query. The issue occurs when I filter with string types parameters. If i use hard coded values - all good.

After further investigation, I have concluded that the problem is not with the dataset or the query itself. The same .pbip file refreshes without error for my colleagues and also refreshes successfully when published to the Power BI Service.

This strongly suggests that the issue is a bug or a persistent cache problem specific to my local Power BI Desktop installation. Despite having already performed extensive troubleshooting—including clearing all cache folders, reinstalling Power BI, and using different query methods—the error persists.

The link you provided unfortunately leads to a general suggestions page rather than a place to report this specific issue. Wanted to submit the issue there yesterday..

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.