<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: An unexpected error occurred (file '', line , function '') in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4761093#M41380</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/996931"&gt;@Nuno_Santos&lt;/a&gt;&amp;nbsp;answer is not the resolution , it might be spotting what is the problem.&lt;BR /&gt;What am I supposed to do if I'm using Mac and my CPU doesn't support AVX ?&lt;BR /&gt;@Anonymous&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Jul 2025 15:03:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-07-13T15:03:07Z</dc:date>
    <item>
      <title>An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4723785#M41022</link>
      <description>&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It appears that the issue might be related to date Slicers. Ig o delete the date slicer visual and redeploy, the error is gone.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jun 2025 05:54:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4723785#M41022</guid>
      <dc:creator>Nuno_Santos</dc:creator>
      <dc:date>2025-06-07T05:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4724349#M41026</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/996931"&gt;@Nuno_Santos&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The error message:&lt;/P&gt;&lt;PRE&gt;An unexpected error occurred (file '', line , function '')&lt;/PRE&gt;&lt;P&gt;after updating to the &lt;STRONG&gt;May 2025 version of Power BI Report Server (PBIRS)&lt;/STRONG&gt;, particularly triggered by &lt;STRONG&gt;date slicers&lt;/STRONG&gt;, appears to be a &lt;STRONG&gt;regression or compatibility issue&lt;/STRONG&gt; introduced in the new release.&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Root Cause (Based on Behavior)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;Since you mentioned: &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;"&lt;EM&gt;I&lt;/EM&gt;&lt;/FONT&gt;&lt;EM&gt;&lt;FONT color="#FF6600"&gt;&lt;EM&gt;f I delete the date slicer visual and redeploy, the er&lt;/EM&gt;ror is gone."&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;this strongly points to a breaking change in how date slicers are processed/rendered in the May 2025 version.&lt;/P&gt;&lt;P&gt;This issue has been observed in previous updates as well, where:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Report visuals created using &lt;STRONG&gt;older versions of Power BI Desktop&lt;/STRONG&gt; (especially slicers with relative or hierarchical filtering) &lt;STRONG&gt;break&lt;/STRONG&gt; after a server update.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Sometimes &lt;STRONG&gt;serialized visuals&lt;/STRONG&gt; (like date slicers) fail to rehydrate properly due to a schema or engine update.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Certain slicer configurations might not be supported anymore or require a fresh re-creation from the &lt;STRONG&gt;latest Power BI Desktop for Report Server&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Recommended Workarounds&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Use the Matching May 2025 Power BI Desktop for PBIRS&lt;/STRONG&gt;&lt;BR /&gt;Ensure you’re editing reports with the same version of Power BI Desktop that corresponds to May 2025 PBIRS. Do &lt;STRONG&gt;not&lt;/STRONG&gt; use the standard (cloud) Power BI Desktop version.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;A href="https://www.microsoft.com/en-us/download/details.aspx?id=58234" target="_blank" rel="noopener"&gt;Download from Microsoft&lt;/A&gt; (check for "Power BI Desktop (Report Server)" – May 2025 version)&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Delete and Recreate the Date Slicer&lt;/STRONG&gt;&lt;BR /&gt;As you already noticed, recreating the slicer eliminates the error. To minimize future issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Use the &lt;STRONG&gt;"Between"&lt;/STRONG&gt; mode rather than relative date slicers.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Avoid any deprecated or custom slicer visuals.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Test with Static Dates or Basic Filters:&amp;nbsp;&lt;/STRONG&gt;If date ranges are not mandatory for interaction, consider using dropdown or list slicers temporarily.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Review Report Logs:&amp;nbsp;&lt;/STRONG&gt;Enable and check PBIRS logs (RSHostingService.log) for more detailed stack traces that might indicate failing visual components.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;STRONG&gt;Long-Term Fix:&amp;nbsp;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;P&gt;If the issue is confirmed as a bug introduced in the May 2025 PBIRS, Microsoft will likely address it in the &lt;STRONG&gt;August or September 2025 update&lt;/STRONG&gt;. Keep an eye on:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/" target="_blank" rel="noopener"&gt;Microsoft Power BI Report Server Blog&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/" target="_blank" rel="noopener"&gt;Power BI Community Forums&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;Temporary Mitigation:&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;If this issue affects multiple reports:&lt;/FONT&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Batch reprocess slicers&lt;/STRONG&gt; using a macro/script to regenerate affected visuals (if many reports are involved).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Report the bug to Microsoft&lt;/STRONG&gt; via their support channel with reproduction steps and logs.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;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.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/nasif-azam-9aa2331a0/" target="_blank" rel="noopener nofollow noreferrer"&gt;Nasif Azam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jun 2025 07:00:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4724349#M41026</guid>
      <dc:creator>Nasif_Azam</dc:creator>
      <dc:date>2025-06-08T07:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4724929#M41034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/996931"&gt;@Nuno_Santos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="742"&gt;After updating to the &lt;STRONG data-start="22" data-end="68"&gt;May 2025 version of Power BI Report Server&lt;/STRONG&gt;, you are encountering the error message &lt;CODE data-start="109" data-end="171"&gt;'An unexpected error occurred (file '', line , function '')'&lt;/CODE&gt; in long-standing reports, and the issue appears to be tied specifically to &lt;STRONG data-start="247" data-end="270"&gt;date slicer visuals&lt;/STRONG&gt;. 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.&lt;/P&gt;
&lt;P data-start="744" data-end="1617" data-is-last-node="" data-is-only-node=""&gt;The fact that deleting and re-adding the date slicer resolves the error strongly suggests that the issue is with how the &lt;STRONG data-start="865" data-end="913"&gt;slicer metadata is stored in the report file&lt;/STRONG&gt;, 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 &lt;STRONG data-start="1192" data-end="1320"&gt;open the affected report in the May 2025 version of Power BI Desktop (for Report Server), delete and re-add the date slicers&lt;/STRONG&gt;, 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.&lt;/P&gt;
&lt;P data-start="744" data-end="1617" data-is-last-node="" data-is-only-node=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 05:23:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4724929#M41034</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2025-06-09T05:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4725501#M41043</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;BR /&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;occur. But in a two-server Always On setup with SQL Server 2022 and the May version of Power BI RS, the error&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;does&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;occur...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 10:08:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4725501#M41043</guid>
      <dc:creator>Nuno_Santos</dc:creator>
      <dc:date>2025-06-09T10:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4725774#M41048</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/996931"&gt;@Nuno_Santos&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you for the follow-up!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;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:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Check the report server logs on the Always On servers to see if there is more info about the error.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Take a look at your SQL Server Always On setup, sometimes connection or failover might cause weird issues.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;If possible, try pointing the report server temporarily to your standalone SQL Server and see if the error goes away.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Also, make sure all your servers and software have the latest updates and patches installed.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this resolve your query.If so,consider accepting it as solution.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pallavi.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 12:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4725774#M41048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-09T12:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4725832#M41050</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;All servers have the latest updates and patches. All Sql Serves are in&amp;nbsp;&lt;SPAN&gt;16.0.4195.2 (2025 may).&lt;BR /&gt;Log is in verbose mode but give no more details:&lt;BR /&gt;- 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=[&amp;lt;ccon&amp;gt;An unexpected error occurred (file '', line , function '').&amp;lt;/ccon&amp;gt;], 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&lt;BR /&gt;- 2025-06-09 14:14:43.8305|INFO|114|Writing error DSR| RequestID = 7d5a340b-9999-3d1e-9999-3zzxxvvbbnn1 ClientSessionID = 7d5a340b-9999-3d1e-9999-3zzxxvvbbnn1&lt;BR /&gt;I compared the configuration between the standalone and Always On solutions but didn’t find anything also.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 13:37:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4725832#M41050</guid>
      <dc:creator>Nuno_Santos</dc:creator>
      <dc:date>2025-06-09T13:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4726063#M41055</link>
      <description>&lt;P&gt;each time error occurs one event is raised:&lt;BR /&gt;&lt;STRONG&gt;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.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 16:31:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4726063#M41055</guid>
      <dc:creator>Nuno_Santos</dc:creator>
      <dc:date>2025-06-09T16:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4726946#M41066</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/996931"&gt;@Nuno_Santos&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please go through the mentioned steps and check step by step again ,if still faces the same issue then&amp;nbsp;please consider raising a support ticket for further assistance.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;To raise a support ticket for Fabric and Power BI, kindly follow the steps outlined in the following guide:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" target="_blank" rel="nofollow noopener noreferrer"&gt;How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, please give us Kudos and consider marking it Accept as solution to assist other members in finding it more easily.&lt;BR /&gt;Thank you for being a part of Microsoft Fabric Community Forum!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pallavi G.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 10:21:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4726946#M41066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-10T10:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4730175#M41093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/996931"&gt;@Nuno_Santos&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;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.&lt;BR /&gt;Thank you for your understanding and assistance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 11:59:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4730175#M41093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-12T11:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4730352#M41095</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I raised a support case and i'm waiting for a solution.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 13:33:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4730352#M41095</guid>
      <dc:creator>Nuno_Santos</dc:creator>
      <dc:date>2025-06-12T13:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4730457#M41097</link>
      <description>&lt;P&gt;Can you tell me more about your macro/script idea?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:06:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4730457#M41097</guid>
      <dc:creator>lstanczyk1</dc:creator>
      <dc:date>2025-06-12T15:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4731104#M41104</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/996931"&gt;@Nuno_Santos&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;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.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 07:18:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4731104#M41104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-13T07:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4732855#M41120</link>
      <description>&lt;P&gt;我们遇到了相同的问题，正在等待微软的回复&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 05:43:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4732855#M41120</guid>
      <dc:creator>wangpipi</dc:creator>
      <dc:date>2025-06-16T05:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4738957#M41167</link>
      <description>&lt;P&gt;It's broken for us as well and adding the date slicer back in doesn't resolve the issue 100% of the time.&amp;nbsp; Unfortunately we wont be moving forward with the May 2025 update until this is fixed&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 16:15:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4738957#M41167</guid>
      <dc:creator>jimmylin829</dc:creator>
      <dc:date>2025-06-20T16:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4738962#M41168</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/996931"&gt;@Nuno_Santos&lt;/a&gt;&amp;nbsp;did you get a resolution from Microsoft on this?&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 16:16:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4738962#M41168</guid>
      <dc:creator>jimmylin829</dc:creator>
      <dc:date>2025-06-20T16:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4738977#M41170</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1162316"&gt;@lstanczyk1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If you are dealing with several reports that have slicer-related issues, automating the slicer recreation can save you significant time.&amp;nbsp;To automate recreating date slicers across multiple reports using &lt;SPAN&gt;macro/script&lt;/SPAN&gt;, you can use the following methods:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;PowerShell Script&lt;/STRONG&gt;: Automate the process of identifying, removing, and recreating date slicers in multiple PBIX files, then republish the updated reports.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Power BI REST API&lt;/STRONG&gt;: Write a custom script to interact with Power BI reports, replacing the date slicers programmatically and automating the update process.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Template Approach&lt;/STRONG&gt;: Create a reusable Power BI template with the correct slicer configuration, then copy visuals into other reports.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Third-Party Tools&lt;/STRONG&gt;: Use tools that can batch-edit PBIX files, allowing for easier slicer management across multiple reports.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Detailed Information:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/powershell/scripting/learn/deep-dives/automating-power-bi" target="_new" rel="noopener"&gt;PowerShell Scripting for Power BI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/" target="_new" rel="noopener"&gt;Power BI REST API Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/service-automation-with-power-automate" target="_new" rel="noopener"&gt;Automate Power BI Service with Power Automate&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/PowerBILite/PBIXFileEditor" target="_new" rel="noopener"&gt;PBIX File Editor Tool&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;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.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/nasif-azam-9aa2331a0/" target="_blank" rel="noopener nofollow noreferrer"&gt;Nasif Azam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 16:31:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4738977#M41170</guid>
      <dc:creator>Nasif_Azam</dc:creator>
      <dc:date>2025-06-20T16:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4739010#M41171</link>
      <description>&lt;P&gt;Not yet.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 17:15:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4739010#M41171</guid>
      <dc:creator>Nuno_Santos</dc:creator>
      <dc:date>2025-06-20T17:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4746241#M41231</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/996931"&gt;@Nuno_Santos&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;We are following up once again regarding your query. Could you please confirm if the issue has been resolved through the support ticket with Microsoft?&lt;BR /&gt;If the issue has been resolved, we kindly request you to share the resolution or key insights here to help others in the community.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your understanding and participation.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 09:02:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4746241#M41231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-27T09:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4746316#M41232</link>
      <description>&lt;P&gt;Hi, still working on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;I have run some tests and minimized the data to reproduce the error with a CSV file, created in a plain text file.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;The text file contains only these lines:&lt;/DIV&gt;&lt;DIV class=""&gt;A,B&lt;/DIV&gt;&lt;DIV class=""&gt;1845,330679&lt;/DIV&gt;&lt;DIV class=""&gt;1845,330679&lt;/DIV&gt;&lt;DIV class=""&gt;1845,330679&lt;/DIV&gt;&lt;DIV class=""&gt;1845,330679&lt;/DIV&gt;&lt;DIV class=""&gt;1845,330679&lt;/DIV&gt;&lt;DIV class=""&gt;1845,330679&lt;/DIV&gt;&lt;DIV class=""&gt;1845,330679&lt;/DIV&gt;&lt;DIV class=""&gt;1845,330679&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;the 3 steps applied to file load:&lt;/DIV&gt;&lt;DIV class=""&gt;= Csv.Document(File.Contents("D:\work\TestFile.csv"),[Delimiter=",", Columns=2, Encoding=65001, QuoteStyle=QuoteStyle.None])&lt;/DIV&gt;&lt;DIV class=""&gt;= Table.PromoteHeaders(Source, [PromoteAllScalars=true])&lt;/DIV&gt;&lt;DIV class=""&gt;= Table.TransformColumnTypes(#"Promoted Headers",{{"A", type number}, {"B", Int64.Type}})&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;column A was set as a decimal and column B as a whole number.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;I created the measure:&lt;/DIV&gt;&lt;DIV class=""&gt;measure= CALCULATE(COUNT(TestFile[B]),TestFile[A]&amp;gt;0)&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;and a visual list with only one column containing the created measure and the error occurs.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;the error disappears if I do one of the following:&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;remove at least one line of the file (all lines are equal)&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;change column A type&amp;nbsp;from decimal to whole number&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;change measure removing TestFile[A]&amp;gt;0, or changing to TestFile[A]=0 or TestFile[A]&amp;lt;0, but TestFile[A]&amp;gt;=0 the error remains (the '&amp;gt;'&amp;nbsp; operator is causing the error)&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 09:53:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4746316#M41232</guid>
      <dc:creator>Nuno_Santos</dc:creator>
      <dc:date>2025-06-27T09:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: An unexpected error occurred (file '', line , function '')</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4746415#M41234</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/996931"&gt;@Nuno_Santos&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you for keeping us updated on the issue and confirming that it’s still unresolved. Once you hear back from the support team, please do share the response here, it will be helpful for others who may encounter a similar issue.&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 10:51:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/An-unexpected-error-occurred-file-line-function/m-p/4746415#M41234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-27T10:51:56Z</dc:date>
    </item>
  </channel>
</rss>

