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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Nuno_Santos
Frequent Visitor

An unexpected error occurred (file '', line , function '')

After updating to the May 2025 Report Server, the error 'An unexpected error occurred (file '', line , function '')' is occurring in reports that had been deployed for a long time.

It appears that the issue might be related to date Slicers. Ig o delete the date slicer visual and redeploy, the error is gone.

12 REPLIES 12
wangpipi
Regular Visitor

我们遇到了相同的问题,正在等待微软的回复

v-pagayam-msft
Community Support
Community Support

Hi @Nuno_Santos ,
Could you please confirm if the issue has been resolved after raising a support case? If a solution has been found, it would be greatly appreciated if you could share your insights with the community. This would be helpful for other members who may encounter similar issues.
Thank you for your understanding and assistance.



Hi,

 

I raised a support case and i'm waiting for a solution.

I restored the database from the server that has the error onto the server that is working fine, and it worked well. So I assume the issue is not with the database. At this point, I haven’t made any progress and I’m waiting for updates from support or a patch from the May 2025 version of Power BI Report Server.

Thank you.

 

Hi @Nuno_Santos ,
We appreciate your patience and thank you for the update on the issue. A dedicated support team will be assigned to handle the scenarios efficiently. Please wait until the issue is resolved. Once resolved, kindly share the insights and mark them as "Accept as Solution" to assist others with similar issues.

Thank you.

v-pagayam-msft
Community Support
Community Support

Hi @Nuno_Santos ,

Please go through the mentioned steps and check step by step again ,if still faces the same issue then please consider raising a support ticket for further assistance.

To raise a support ticket for Fabric and Power BI, kindly follow the steps outlined in the following guide:

How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn

 

If this post helps, please give us Kudos and consider marking it Accept as solution to assist other members in finding it more easily.
Thank you for being a part of Microsoft Fabric Community Forum!


Regards,
Pallavi G.

Nuno_Santos
Frequent Visitor

each time error occurs one event is raised:
The description for Event ID 22 from source MSOLAP$PBIRS cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

Nuno_Santos
Frequent Visitor

Hi,

All servers have the latest updates and patches. All Sql Serves are in 16.0.4195.2 (2025 may).
Log is in verbose mode but give no more details:
- 2025-06-09 14:14:43.8255|ERROR|114|An error occurred running the query.Details: ErrorCode=QuerySystemError, ProviderErrorCode=0xC1000000, ErrorSource=PowerBI, Message=Failed to execute the DAX query., HResult=0x80004005, Language=en-US, ProviderErrorMessage=[<ccon>An unexpected error occurred (file '', line , function '').</ccon>], ProviderGenericMessage=[Internal error: An unexpected error occurred (file '', line , function '').], ErrorSourceOrigin=MsolapWrapper, AS, OnPremErrorCode=, InnerErrorDetails=[Type=MsolapWrapper.MsolapWrapperException, Message=Failure encountered while executing the DAX query.]| RequestID = 7d5a340b-9999-3d1e-9999-3zzxxvvbbnn1 ClientSessionID = 7d5a340b-9999-3d1e-9999-3zzxxvvbbnn1
- 2025-06-09 14:14:43.8305|INFO|114|Writing error DSR| RequestID = 7d5a340b-9999-3d1e-9999-3zzxxvvbbnn1 ClientSessionID = 7d5a340b-9999-3d1e-9999-3zzxxvvbbnn1
I compared the configuration between the standalone and Always On solutions but didn’t find anything also.

Nuno_Santos
Frequent Visitor

Hi,
thank you for your comments, but even after removing and rebuilding the slicer, the error persists. I’ve rebuilt the report from scratch using the latest available version of Power BI Desktop Report Server (2.143.954.0 64-bit ( 2025 may)), and the error still occurs.

What’s also strange in this situation is that I have a standalone server with SQL Server 2022 and the May version of Power BI RS where the error does not occur. But in a two-server Always On setup with SQL Server 2022 and the May version of Power BI RS, the error does occur...

Hi @Nuno_Santos ,
Thank you for the follow-up!

Thanks for letting us know what you tried. Since rebuilding the slicers and the whole report did not solve it.Please follow the belw steps:

  • Check the report server logs on the Always On servers to see if there is more info about the error.
  • Take a look at your SQL Server Always On setup, sometimes connection or failover might cause weird issues.
  • If possible, try pointing the report server temporarily to your standalone SQL Server and see if the error goes away.
  • Also, make sure all your servers and software have the latest updates and patches installed.

Hope this resolve your query.If so,consider accepting it as solution.

Thank you.

Regards,
Pallavi.

Poojara_D12
Super User
Super User

Hi @Nuno_Santos 

After updating to the May 2025 version of Power BI Report Server, you are encountering the error message 'An unexpected error occurred (file '', line , function '')' in long-standing reports, and the issue appears to be tied specifically to date slicer visuals. This kind of error typically indicates a rendering or compatibility issue introduced by changes in the underlying visual or report server engine. Microsoft periodically updates the slicer functionality—especially for date-based slicers—to enhance usability or performance, and these updates can inadvertently break backward compatibility with older visuals that were created or configured differently in previous versions of Power BI Desktop optimized for Report Server.

The fact that deleting and re-adding the date slicer resolves the error strongly suggests that the issue is with how the slicer metadata is stored in the report file, and that the updated server cannot correctly interpret or render the older slicer configuration. This is not uncommon when reports built with earlier Desktop versions are redeployed to a server with a newer rendering engine. To address this, the most reliable workaround is to open the affected report in the May 2025 version of Power BI Desktop (for Report Server), delete and re-add the date slicers, then re-publish the report. This ensures that slicers are regenerated using the latest structure compatible with the updated server version. Until Microsoft releases a patch or acknowledges this as a regression, this manual refresh of slicers is likely the safest way to ensure report stability.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS
Nasif_Azam
Solution Supplier
Solution Supplier

Hey @Nuno_Santos ,

The error message:

An unexpected error occurred (file '', line , function '')

after updating to the May 2025 version of Power BI Report Server (PBIRS), particularly triggered by date slicers, appears to be a regression or compatibility issue introduced in the new release.

Root Cause (Based on Behavior)

Since you mentioned: "If I delete the date slicer visual and redeploy, the error is gone."

this strongly points to a breaking change in how date slicers are processed/rendered in the May 2025 version.

This issue has been observed in previous updates as well, where:

  • Report visuals created using older versions of Power BI Desktop (especially slicers with relative or hierarchical filtering) break after a server update.

  • Sometimes serialized visuals (like date slicers) fail to rehydrate properly due to a schema or engine update.

  • Certain slicer configurations might not be supported anymore or require a fresh re-creation from the latest Power BI Desktop for Report Server.

Recommended Workarounds

  1. Use the Matching May 2025 Power BI Desktop for PBIRS
    Ensure you’re editing reports with the same version of Power BI Desktop that corresponds to May 2025 PBIRS. Do not use the standard (cloud) Power BI Desktop version.

    Download from Microsoft (check for "Power BI Desktop (Report Server)" – May 2025 version)

    Delete and Recreate the Date Slicer
    As you already noticed, recreating the slicer eliminates the error. To minimize future issues:

    • Use the "Between" mode rather than relative date slicers.

    • Avoid any deprecated or custom slicer visuals.

  2. Test with Static Dates or Basic Filters: If date ranges are not mandatory for interaction, consider using dropdown or list slicers temporarily.

  3. Review Report Logs: Enable and check PBIRS logs (RSHostingService.log) for more detailed stack traces that might indicate failing visual components.

  4. Long-Term Fix: 

    If the issue is confirmed as a bug introduced in the May 2025 PBIRS, Microsoft will likely address it in the August or September 2025 update. Keep an eye on:

  5. Temporary Mitigation: If this issue affects multiple reports:

    • Batch reprocess slicers using a macro/script to regenerate affected visuals (if many reports are involved).

    • Report the bug to Microsoft via their support channel with reproduction steps and logs.

 

If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.


Best Regards,
Nasif Azam

Can you tell me more about your macro/script idea? 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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