<?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: Refreshing data - The command has been canceled.. The exception was raised by the IDbCommand interfa in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Refreshing-data-The-command-has-been-canceled-The-exception-was/m-p/812244#M11780</link>
    <description>&lt;P&gt;Found a (the) solution to my own problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the PBIX file in PBI desktop application&lt;/LI&gt;&lt;LI&gt;Go to "&lt;STRONG&gt;edit queries&lt;/STRONG&gt;"&lt;/LI&gt;&lt;LI&gt;Go to &lt;STRONG&gt;Data Source Settings&lt;/STRONG&gt; button (5 from left on home menu ribbon)&lt;/LI&gt;&lt;LI&gt;In here, I had multiple data sources all to the same location, but this I mean I had "ServerName;table", "servername;table", "SERVERname;Table"&amp;nbsp;&amp;nbsp; I needed to select change source, and make sure they all had the same spelling. This &lt;STRONG&gt;moved them all into one source!&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Hit the down arrow under refresh preview button and select &lt;STRONG&gt;refresh all&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;You will probably then get some "&lt;STRONG&gt;need permissions&lt;/STRONG&gt;" or need to &lt;STRONG&gt;confirm the login details&lt;/STRONG&gt; to the data source. correct as needed.&lt;/LI&gt;&lt;LI&gt;Save and apply your changes then upload your report&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I did notice in one case when I uploaded and overwrote a report on the report server, that in the data source tab (under manage) it still showed an old spelling of the data source. To fix this I simply deleted the file off the server and re-uploaded one more time.&lt;/P&gt;&lt;P&gt;Set the data source credentials, set the schedule refresh, and then it was all running perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps some people. I've seen lots of similar postings to my own query but not seen this answer anywhere yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 09:27:22 GMT</pubDate>
    <dc:creator>RobThrive</dc:creator>
    <dc:date>2019-10-08T09:27:22Z</dc:date>
    <item>
      <title>Refreshing data - The command has been canceled.. The exception was raised by the IDbCommand interfa</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Refreshing-data-The-command-has-been-canceled-The-exception-was/m-p/812188#M11779</link>
      <description>&lt;P&gt;There appears to be lots of older posts about this problem but I feel that most of them are out of date or not the right answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Power BI Report Server released September 2019, and PBI RS Desktop to match.&lt;/P&gt;&lt;P&gt;The report sources it's data from SQL Server (on an azure VM).&lt;/P&gt;&lt;P&gt;In PBI Desktop I can quickly and easily refresh the data to get the latest. But once the report is uploaded to the report server it keeps failing to refresh. If I manually hit the refresh button it does nothing (a circle Icon for 2-3 seconds only) and when I tried to setup a schedule refesh I get the erro message seen here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;The command has been canceled.. The exception was raised by the IDbCommand interface.&lt;/PRE&gt;&lt;P&gt;There are multiple lines of this and I assume that represents each table/dataset that needs refreshing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit: UPDATE-&lt;/P&gt;&lt;P&gt;Looking in the RS logs I came across this, but I have already gone into the data source tab on the report (under manage) and added relevent details for accessing that SQL server.&lt;/P&gt;&lt;PRE&gt;2019-10-08 09:35:05.6352|ERROR|80|Error Processing Data Model Refresh: &lt;BR /&gt;SessionId: d3de9365-95d2-4bb9-bbe9-6b0308777e91, Status: Error Failed Data Refresh, &lt;BR /&gt;Exception Microsoft.AnalysisServices.OperationException: Failed to save modifications to the server. &lt;BR /&gt;Error returned: 'Credentials are required to connect to the SQL source. (Source at &amp;lt;SQL-SERVER-NAME&amp;gt;;&amp;lt;db nAME&amp;gt;.). &lt;BR /&gt;The exception was raised by the IDbCommand interface.
The database operation was cancelled because of an earlier failure.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried 2 logins (one SQL login and one windows login, both have access to the data).&lt;/P&gt;&lt;P&gt;I should add that all data is sourced using "import" and nothing uses "directquery". I go to "Advanced" and put in the exact SQL query I need to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated, thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 08:39:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Refreshing-data-The-command-has-been-canceled-The-exception-was/m-p/812188#M11779</guid>
      <dc:creator>RobThrive</dc:creator>
      <dc:date>2019-10-08T08:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing data - The command has been canceled.. The exception was raised by the IDbCommand interfa</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Refreshing-data-The-command-has-been-canceled-The-exception-was/m-p/812244#M11780</link>
      <description>&lt;P&gt;Found a (the) solution to my own problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the PBIX file in PBI desktop application&lt;/LI&gt;&lt;LI&gt;Go to "&lt;STRONG&gt;edit queries&lt;/STRONG&gt;"&lt;/LI&gt;&lt;LI&gt;Go to &lt;STRONG&gt;Data Source Settings&lt;/STRONG&gt; button (5 from left on home menu ribbon)&lt;/LI&gt;&lt;LI&gt;In here, I had multiple data sources all to the same location, but this I mean I had "ServerName;table", "servername;table", "SERVERname;Table"&amp;nbsp;&amp;nbsp; I needed to select change source, and make sure they all had the same spelling. This &lt;STRONG&gt;moved them all into one source!&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Hit the down arrow under refresh preview button and select &lt;STRONG&gt;refresh all&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;You will probably then get some "&lt;STRONG&gt;need permissions&lt;/STRONG&gt;" or need to &lt;STRONG&gt;confirm the login details&lt;/STRONG&gt; to the data source. correct as needed.&lt;/LI&gt;&lt;LI&gt;Save and apply your changes then upload your report&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I did notice in one case when I uploaded and overwrote a report on the report server, that in the data source tab (under manage) it still showed an old spelling of the data source. To fix this I simply deleted the file off the server and re-uploaded one more time.&lt;/P&gt;&lt;P&gt;Set the data source credentials, set the schedule refresh, and then it was all running perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps some people. I've seen lots of similar postings to my own query but not seen this answer anywhere yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 09:27:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Refreshing-data-The-command-has-been-canceled-The-exception-was/m-p/812244#M11780</guid>
      <dc:creator>RobThrive</dc:creator>
      <dc:date>2019-10-08T09:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing data - The command has been canceled.. The exception was raised by the IDbCommand interfa</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Refreshing-data-The-command-has-been-canceled-The-exception-was/m-p/1209343#M14933</link>
      <description>&lt;P&gt;Thank you for this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a similar problem and it solved it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 14:02:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Refreshing-data-The-command-has-been-canceled-The-exception-was/m-p/1209343#M14933</guid>
      <dc:creator>SimonSeez</dc:creator>
      <dc:date>2020-07-08T14:02:28Z</dc:date>
    </item>
  </channel>
</rss>

