<?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 Power BI Report Server Direct Query from Spark and SQL Server database is not working in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4664550#M40404</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried using Power BI Desktop and get data in direct query mode from Spark/SQL Server with success. However, I uploaded the reports on my Power BI Report Server (September 2024) and tried to view the report then I get an error below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;An unexpected error occurred. Please try again later.&lt;BR /&gt;Please try again later or contact support. If you contact support, please provide these details.&lt;BR /&gt;&lt;DIV&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;We couldn't connect to the Analysis Services server. Make sure you've entered the connection string correctly.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Request ID&lt;/SPAN&gt;&lt;SPAN class=""&gt;940c5bbb-a284-bb98-f3f4-17230d2b7b9c&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Time&lt;/SPAN&gt;&lt;SPAN class=""&gt;Wed Apr 23 2025 15:25:38 GMT+0700 (Indochina Time)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Service version&lt;/SPAN&gt;&lt;SPAN class=""&gt;/powerbi/libs&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As searched on the community and see the&amp;nbsp;PBI_SQL_TRUSTED_SERVERS variable, I am configuring the value as Localhost but the issue still persists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&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;KL&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 08:34:33 GMT</pubDate>
    <dc:creator>kitti</dc:creator>
    <dc:date>2025-04-23T08:34:33Z</dc:date>
    <item>
      <title>Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4664550#M40404</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried using Power BI Desktop and get data in direct query mode from Spark/SQL Server with success. However, I uploaded the reports on my Power BI Report Server (September 2024) and tried to view the report then I get an error below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;An unexpected error occurred. Please try again later.&lt;BR /&gt;Please try again later or contact support. If you contact support, please provide these details.&lt;BR /&gt;&lt;DIV&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;We couldn't connect to the Analysis Services server. Make sure you've entered the connection string correctly.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Request ID&lt;/SPAN&gt;&lt;SPAN class=""&gt;940c5bbb-a284-bb98-f3f4-17230d2b7b9c&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Time&lt;/SPAN&gt;&lt;SPAN class=""&gt;Wed Apr 23 2025 15:25:38 GMT+0700 (Indochina Time)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Service version&lt;/SPAN&gt;&lt;SPAN class=""&gt;/powerbi/libs&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As searched on the community and see the&amp;nbsp;PBI_SQL_TRUSTED_SERVERS variable, I am configuring the value as Localhost but the issue still persists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&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;KL&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 08:34:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4664550#M40404</guid>
      <dc:creator>kitti</dc:creator>
      <dc:date>2025-04-23T08:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4665370#M40410</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/193067"&gt;@kitti&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="" data-start="913" data-end="981"&gt;&lt;STRONG data-start="913" data-end="981"&gt;Double-check your &lt;CODE data-start="933" data-end="958"&gt;PBI_SQL_TRUSTED_SERVERS&lt;/CODE&gt; Environment Variable&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL data-start="986" data-end="1409"&gt;
&lt;LI class="" data-start="986" data-end="1037"&gt;
&lt;P class="" data-start="988" data-end="1037"&gt;Open &lt;CODE data-start="993" data-end="1016"&gt;Environment Variables&lt;/CODE&gt; on your PBIRS server&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="1041" data-end="1137"&gt;
&lt;P class="" data-start="1043" data-end="1086"&gt;Under &lt;STRONG data-start="1049" data-end="1069"&gt;System Variables&lt;/STRONG&gt;, create or edit:&lt;BR /&gt;&lt;BR /&gt;PBI_SQL_TRUSTED_SERVERS&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="1145" data-end="1320"&gt;
&lt;P class="" data-start="1147" data-end="1320"&gt;The value should include the &lt;STRONG data-start="1176" data-end="1192"&gt;server names&lt;/STRONG&gt; you want to allow connections to, not just &lt;CODE data-start="1236" data-end="1247"&gt;localhost&lt;/CODE&gt;.&lt;BR data-start="1248" data-end="1251" /&gt;(e.g., your &lt;STRONG data-start="1268" data-end="1287"&gt;SQL Server name&lt;/STRONG&gt;, &lt;STRONG data-start="1289" data-end="1313"&gt;Spark Server address&lt;/STRONG&gt;, etc.)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="1041" data-end="1137"&gt;
&lt;P class="" data-start="1043" data-end="1086"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="1325" data-end="1405"&gt;
&lt;P class="" data-start="1327" data-end="1335"&gt;Example:&lt;BR /&gt;&lt;BR /&gt;localhost;yourservername;yourserver.domain.com&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="" data-start="1567" data-end="1596"&gt;&lt;STRONG data-start="1567" data-end="1596"&gt;Restart the PBIRS Service&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="" data-start="1601" data-end="1654"&gt;After setting &lt;CODE data-start="1615" data-end="1640"&gt;PBI_SQL_TRUSTED_SERVERS&lt;/CODE&gt;, &lt;STRONG data-start="1642" data-end="1653"&gt;restart&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;services.msc → SQL Server Reporting Services (Power BI) → Restart&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="" data-start="1755" data-end="1798"&gt;&lt;STRONG data-start="1755" data-end="1798"&gt;Check Data Source Settings inside PBIRS&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL data-start="1803" data-end="2004"&gt;
&lt;LI class="" data-start="1803" data-end="1851"&gt;
&lt;P class="" data-start="1805" data-end="1851"&gt;After uploading your &lt;CODE data-start="1826" data-end="1833"&gt;.pbix&lt;/CODE&gt; to Report Server,&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="1855" data-end="1888"&gt;
&lt;P class="" data-start="1857" data-end="1888"&gt;Go to &lt;STRONG data-start="1863" data-end="1888"&gt;Manage &amp;gt; Data Sources&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="1892" data-end="2000"&gt;
&lt;P class="" data-start="1894" data-end="2000"&gt;Make sure the authentication is set to &lt;STRONG data-start="1933" data-end="1974"&gt;"Windows Authentication (Integrated)"&lt;/STRONG&gt; if you expect delegation.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="" data-start="2008" data-end="2024"&gt;Example setting:&lt;BR /&gt;Use as Windows credentials when connecting to the data source&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="" data-start="2113" data-end="2145"&gt;&lt;STRONG data-start="2113" data-end="2145"&gt;Other Things to Double-Check&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL data-start="2150" data-end="2473"&gt;
&lt;LI class="" data-start="2150" data-end="2260"&gt;
&lt;P class="" data-start="2152" data-end="2260"&gt;Make sure your PBIRS &lt;STRONG data-start="2173" data-end="2187"&gt;is updated&lt;/STRONG&gt; (September 2024 build is good, but double-check no patches are missing).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="2264" data-end="2398"&gt;
&lt;P class="" data-start="2266" data-end="2398"&gt;If you're connecting to &lt;STRONG data-start="2290" data-end="2299"&gt;Spark&lt;/STRONG&gt; via &lt;STRONG data-start="2304" data-end="2312"&gt;ODBC&lt;/STRONG&gt; or &lt;STRONG data-start="2316" data-end="2330"&gt;Direct TCP&lt;/STRONG&gt;, make sure the driver is also installed on the PBIRS server itself.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="" data-start="2404" data-end="2473"&gt;&lt;STRONG data-start="2404" data-end="2427"&gt;Kerberos Delegation&lt;/STRONG&gt; is needed if you go beyond local connections.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#800000"&gt;Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;UL data-start="986" data-end="1409"&gt;
&lt;LI class="" style="list-style-type: none;" data-start="1325" data-end="1405"&gt;
&lt;P class="" data-start="1327" data-end="1335"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="1041" data-end="1137"&gt;
&lt;P class="" data-start="1043" data-end="1086"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 23 Apr 2025 16:30:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4665370#M40410</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2025-04-23T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4665735#M40416</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/585150"&gt;@johnbasha33&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. However, I already put all the server names related separated by semicolon (;) and reboot the server but the issue still persists. Not only Spark, also, I access a report that gets data from SQL Server DB using direct query and face the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help.&lt;/P&gt;&lt;P&gt;KL&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 01:17:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4665735#M40416</guid>
      <dc:creator>kitti</dc:creator>
      <dc:date>2025-04-24T01:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4667534#M40429</link>
      <description>&lt;P&gt;Additionally, I am not able to click on Data Sources menu here when getting data from Spark in DirectQuery mode. Is it normal?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-04-25 080741.png" style="width: 955px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1263202i9A7BD3FCF51F2567/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-04-25 080741.png" alt="Screenshot 2025-04-25 080741.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 01:10:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4667534#M40429</guid>
      <dc:creator>kitti</dc:creator>
      <dc:date>2025-04-25T01:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4671489#M40464</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/193067"&gt;@kitti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you have confirmed you have validated server names and also you have restarted the PBIRS service.&lt;/P&gt;
&lt;P&gt;Please try the below steps as well.&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="" data-start="506" data-end="689"&gt;
&lt;P class="" data-start="509" data-end="689"&gt;Go to Manage,&amp;nbsp; Data Sources, Set to Windows Authentication (Integrated),&amp;nbsp;&amp;nbsp;Enable "Use as Windows credentials"&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="691" data-end="818"&gt;
&lt;P data-pm-slice="1 1 []"&gt;Ensure ODBC or MSOLEDB drivers are installed on the PBIRS server for Spark/SQL Server.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;check for the report server logs in&amp;nbsp;C:\Program Files\Microsoft Power BI Report Server\PBIRS\LogFiles , look for&amp;nbsp;Errors related to DataExtension, OLEDB, Authentication, or AnalysisServices&lt;/LI&gt;
&lt;LI class="" data-start="800" data-end="928"&gt;
&lt;P class="" data-start="802" data-end="928"&gt;Use Power BI Desktop (Report Server version) from the PBIRS server itself to test connectivity using the same DirectQuery. This helps rule out firewall or driver-related issues or Make sure PBIRS can resolve and reach the SQL/Spark servers.&lt;/P&gt;
&lt;P&gt;Use ping, telnet &amp;lt;server&amp;gt; &amp;lt;port&amp;gt;, or Test-NetConnection.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Go to Event Viewer,&amp;nbsp; Applications and Services Logs ,&amp;nbsp; Power BI Report Server and Look for errors tied to authentication or connection issues.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;&lt;SPAN&gt;Accepting as solution&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;&lt;SPAN&gt;"Kudos"&lt;/SPAN&gt;&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 16:08:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4671489#M40464</guid>
      <dc:creator>v-sathmakuri</dc:creator>
      <dc:date>2025-04-28T16:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4677422#M40522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/193067"&gt;@kitti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 11:00:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4677422#M40522</guid>
      <dc:creator>v-sathmakuri</dc:creator>
      <dc:date>2025-05-02T11:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4679972#M40543</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1249529"&gt;@v-sathmakuri&lt;/a&gt;&amp;nbsp; sorry for late reply. I already tried to use &lt;SPAN&gt;Power BI Desktop (Report Server version) from the PBIRS server itself to test connectivity using the same DirectQuery but got the same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the error from the logfile. Is there any issue about permission?&lt;/P&gt;&lt;P&gt;2025-05-05 17:19:32.5359|ERROR|74|Failure in conceptualschema catalogObjectId=45878ad6-259f-499d-a629-594b48f1041b| RequestID = 188c061f-f34e-07a4-466d-502d7bb295ed ClientSessionID = 601884a8-13d0-d24d-9084-2a3d68ec1765 Microsoft.PowerBI.ReportingServicesHost.CannotRetrieveModelException: An error occurred while loading the model. Verify that the connection information is correct and that you have permissions to access the data source. ---&amp;gt; Microsoft.PowerBI.DataExtension.Contracts.DataExtensionException: Failed to get CSDL. ---&amp;gt; MsolapWrapper.MsolapWrapperException: Failure encountered while getting schema&lt;BR /&gt;at MsolapWrapper.Utils.ThrowErrorIfHrFailed(Int32 hr, String message)&lt;BR /&gt;at MsolapWrapper.CDbSchemaRowsetWrapper.ExecuteSchemaRowset(Guid schema, Object[] restrictions, PropertySetCollection propSets)&lt;BR /&gt;at MsolapWrapper.SchemaCommand.ExecuteReader(Guid schema, Object[] restrictions)&lt;BR /&gt;at MsolapWrapper.SchemaCommand.GetModelMetadata(Object[] restrictions)&lt;BR /&gt;at Microsoft.PowerBI.DataExtension.Msolap.SchemaCommand.GetModelMetadata(String catalogName, String perspectiveName, String supportedVersion, TranslationsBehavior translationsBehavior)&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at Microsoft.PowerBI.DataExtension.Msolap.SchemaCommand.GetModelMetadata(String catalogName, String perspectiveName, String supportedVersion, TranslationsBehavior translationsBehavior)&lt;BR /&gt;at Microsoft.PowerBI.ReportingServicesHost.ModelMetadataProvider.&amp;lt;&amp;gt;c__DisplayClass10_0.&amp;lt;GetModelMetadata&amp;gt;b__0(IDbSchemaCommand command)&lt;BR /&gt;at Microsoft.PowerBI.ReportingServicesHost.ModelMetadataProvider.ExecuteSchemaCommand[T](ExploreHostDataSourceInfo dataSourceInfo, IDbConnectionPool connectionPool, IConnectionFactory connectionFactory, IConnectionUserImpersonator connectionUserImpersonator, QueryExecutionOptionsBase queryExecutionOptions, ITelemetryService telemetryService, Func`2 action, String failTelemetryMessage, ServiceErrorStatusCode statusCode, ExploreBaseEvent exploreEvent)&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at Microsoft.PowerBI.ReportingServicesHost.ModelMetadataProvider.ExecuteSchemaCommand[T](ExploreHostDataSourceInfo dataSourceInfo, IDbConnectionPool connectionPool, IConnectionFactory connectionFactory, IConnectionUserImpersonator connectionUserImpersonator, QueryExecutionOptionsBase queryExecutionOptions, ITelemetryService telemetryService, Func`2 action, String failTelemetryMessage, ServiceErrorStatusCode statusCode, ExploreBaseEvent exploreEvent)&lt;BR /&gt;at Microsoft.PowerBI.ReportingServicesHost.ModelMetadataProvider.&amp;lt;&amp;gt;c__DisplayClass10_1.&amp;lt;GetModelMetadata&amp;gt;b__1(ExploreBaseEvent timedEvent)&lt;BR /&gt;at Microsoft.PowerBI.ReportingServicesHost.ExploreTelemetryService.&amp;lt;&amp;gt;c__DisplayClass4_0`1.&amp;lt;RunInActivity&amp;gt;b__0(ExploreBaseEvent activity)&lt;BR /&gt;at Microsoft.PowerBI.ReportingServicesHost.ExploreTelemetryService.RunInActivity(String activityName, Action`1 action)&lt;BR /&gt;at Microsoft.PowerBI.ReportingServicesHost.ExploreTelemetryService.RunInActivity[T](String activityName, Func`2 action)&lt;BR /&gt;at Microsoft.PowerBI.ReportingServicesHost.ModelMetadataProvider.GetModelMetadata(ModelMetadataRequest request)&lt;BR /&gt;at Microsoft.PowerBI.ReportServer.ExploreHost.RSPowerViewHandler.GetModelCSDL(String id, String maxModelMetadataVersion, IASConnectionInfo&amp;amp; asConnectionInfo)&lt;BR /&gt;at Microsoft.PowerBI.ReportServer.ExploreHost.RSPowerViewHandler.&amp;lt;&amp;gt;c__DisplayClass41_0.&amp;lt;GetOrAddModel&amp;gt;b__0()&lt;BR /&gt;at System.Lazy`1.CreateValue()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Lazy`1.get_Value()&lt;BR /&gt;at Microsoft.PowerBI.ReportServer.ExploreHost.RSModelCache.GetOrAddModel(ModelKey key, Func`1 modelInfoFunc)&lt;BR /&gt;at Microsoft.PowerBI.ReportServer.ExploreHost.RSPowerViewHandler.EnsureSession(String modelId)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.ExploreClientHandlerBaseFlow.&amp;lt;RunAsync&amp;gt;b__9_0()&lt;BR /&gt;at System.Threading.Tasks.Task.Execute()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.ExploreClientHandlerBaseFlow.&amp;lt;RunAsync&amp;gt;d__9.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.ExploreHost.ExploreClient.&amp;lt;GetClientConceptualSchemaAsync&amp;gt;d__13.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.ReportServer.ExploreHost.RSExploreHost.&amp;lt;GetConceptualSchemaAsync&amp;gt;d__4.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.ReportServer.WebApi.PbiApi.PbiApiController.&amp;lt;GetConceptualSchemaAsync&amp;gt;d__25.MoveNext()&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 10:25:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4679972#M40543</guid>
      <dc:creator>kitti</dc:creator>
      <dc:date>2025-05-05T10:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4681654#M40574</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/193067"&gt;@kitti&lt;/a&gt;&amp;nbsp; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message below indicates a potential permissions issue when accessing the data source:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Microsoft.PowerBI.ReportingServicesHost.CannotRetrieveModelException: An error occurred while loading the model. Verify that the connection information is correct and that you have permissions to access the data source. ---&amp;gt; Microsoft.PowerBI.DataExtension.Contracts.DataExtensionException: Failed to get CSDL. ---&amp;gt; MsolapWrapper.MsolapWrapperException: Failure encountered while getting schema&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To troubleshoot this, consider the following steps:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Verify that the user or service account has the necessary permissions on the underlying data source.&lt;/LI&gt;
&lt;LI&gt;From the same server, test connectivity to the data source using Excel or SQL Server Management Studio (SSMS) with the same credentials or connection string.&lt;/LI&gt;
&lt;LI&gt;Recreate and republish the report using the exact version of Power BI Desktop for Report Server that matches your server deployment.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting as solution&amp;nbsp;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;"Kudos"&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 09:35:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4681654#M40574</guid>
      <dc:creator>v-sathmakuri</dc:creator>
      <dc:date>2025-05-06T09:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4684104#M40603</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kitti_0-1746685542916.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1266374i96608269A79E1562/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kitti_0-1746685542916.png" alt="kitti_0-1746685542916.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1249529"&gt;@v-sathmakuri&lt;/a&gt;&amp;nbsp; thank you for your response. I am using Power BI Desktop September 2024, which is the same version as the report server. And I can access the SQL Server using SSMS tool on the report server, also I already configured the credential, but I got the error when I access the report on the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KL&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 06:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4684104#M40603</guid>
      <dc:creator>kitti</dc:creator>
      <dc:date>2025-05-08T06:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4684772#M40610</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/193067"&gt;@kitti&lt;/a&gt;&amp;nbsp; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the test connection succeeds in Power BI Desktop, try testing the connection to SQL Server from the machine hosting PBIRS using PowerShell or SQLCMD using the same account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting as solution&amp;nbsp;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;"Kudos"&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 12:06:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4684772#M40610</guid>
      <dc:creator>v-sathmakuri</dc:creator>
      <dc:date>2025-05-08T12:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4685722#M40621</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-05-09 092818.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1266625i9DD8A5ABBDE20193/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-05-09 092818.png" alt="Screenshot 2025-05-09 092818.png" /&gt;&lt;/span&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1249529"&gt;@v-sathmakuri&lt;/a&gt;&amp;nbsp; Thank you for your response. I just tried SQLCMD on the report server and it can access the SQL Server DB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KL&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 02:32:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4685722#M40621</guid>
      <dc:creator>kitti</dc:creator>
      <dc:date>2025-05-09T02:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4686426#M40628</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/193067"&gt;@kitti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything seems to be correctly configured as per your comments.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you please raise a Microsoft support ticket for further investigation. You can create a Microsoft support ticket using the link below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;A class="" title="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" href="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" target="_blank" rel="noreferrer noopener nofollow" aria-label="Link How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn"&gt;How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn&lt;BR /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this works for you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 10:10:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4686426#M40628</guid>
      <dc:creator>v-sathmakuri</dc:creator>
      <dc:date>2025-05-09T10:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server Direct Query from Spark and SQL Server database is not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4712434#M40907</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/193067"&gt;@kitti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are following up once again regarding your query. Could you please confirm whether the issue has been resolved through your support ticket with Microsoft?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, we would appreciate it if you could share the resolution or any key insights here to benefit others in the community. If we don’t receive a response, we will proceed with closing this thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need further assistance in the future, feel free to start a new thread in the Microsoft Fabric Community Forum. We will be happy to support you there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 13:24:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-Direct-Query-from-Spark-and-SQL-Server/m-p/4712434#M40907</guid>
      <dc:creator>v-sathmakuri</dc:creator>
      <dc:date>2025-05-29T13:24:41Z</dc:date>
    </item>
  </channel>
</rss>

