<?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: Power BI Report Server dbo.Catalog table in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/213511#M324</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what SQL query you were using that resulted above error. Please try below query:&lt;/P&gt;
&lt;PRE&gt;WITH ItemContentBinaries AS
(
  SELECT
     ItemID,Name,[Type]
    ,CASE Type
       WHEN 2 THEN 'Report'
       WHEN 5 THEN 'Data Source'
       WHEN 7 THEN 'Report Part'
       WHEN 8 THEN 'Shared Dataset'
	   When 13 Then 'Power BI Report'
       ELSE 'Other'
     END AS TypeDescription
    ,CONVERT(varbinary(max),Content) AS Content
  FROM ReportServer.dbo.Catalog
  WHERE Type in (2,5,7,8,13)
),

--The second CTE strips off the BOM if it exists...
ItemContentNoBOM AS
(
  SELECT
     ItemID,Name,[Type],TypeDescription
    ,CASE
       WHEN LEFT(Content,3) = 0xEFBBBF
         THEN CONVERT(varbinary(max),SUBSTRING(Content,4,LEN(Content)))
       ELSE
         Content
     END AS Content
  FROM ItemContentBinaries
)
--The outer query gets the content in its varbinary, varchar and xml representations...
SELECT
   ItemID,Name,[Type],TypeDescription
  ,Content --varbinary
  ,CONVERT(varchar(max),Content) AS ContentVarchar --varchar
  ,CONVERT(xml,Content) AS ContentXML --xml
FROM ItemContentNoBOM&lt;/PRE&gt;
&lt;P&gt;Reference:&amp;nbsp;&lt;A href="http://bretstateham.com/extracting-ssrs-report-rdl-xml-from-the-reportserver-database/" target="_self"&gt;Extract RDL (XML) from the ReportServer database&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Yuliana Gu&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2017 02:59:42 GMT</pubDate>
    <dc:creator>v-yulgu-msft</dc:creator>
    <dc:date>2017-07-18T02:59:42Z</dc:date>
    <item>
      <title>Power BI Report Server dbo.Catalog table</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/213004#M311</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I'm trying converting content data from dbo.Catalog table of my Power Bi Report Server Database, but conversion of data about type = 13 (pbix files) return me an issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XML parsing line 1 character 3, illegal xml character&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me?&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lorenzo&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 10:30:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/213004#M311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-17T10:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server dbo.Catalog table</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/213275#M314</link>
      <description>&lt;P&gt;I'm not sure exactly what you are trying to do, are you explicitly writing queries to modify the data that is in the ReportServer Catalog table? What are you trying to achieve by this? Doing something like this is not supported and could put you data/catalog in a bad state and potential break you server installation.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 16:30:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/213275#M314</guid>
      <dc:creator>mgmeyer</dc:creator>
      <dc:date>2017-07-17T16:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server dbo.Catalog table</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/213511#M324</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what SQL query you were using that resulted above error. Please try below query:&lt;/P&gt;
&lt;PRE&gt;WITH ItemContentBinaries AS
(
  SELECT
     ItemID,Name,[Type]
    ,CASE Type
       WHEN 2 THEN 'Report'
       WHEN 5 THEN 'Data Source'
       WHEN 7 THEN 'Report Part'
       WHEN 8 THEN 'Shared Dataset'
	   When 13 Then 'Power BI Report'
       ELSE 'Other'
     END AS TypeDescription
    ,CONVERT(varbinary(max),Content) AS Content
  FROM ReportServer.dbo.Catalog
  WHERE Type in (2,5,7,8,13)
),

--The second CTE strips off the BOM if it exists...
ItemContentNoBOM AS
(
  SELECT
     ItemID,Name,[Type],TypeDescription
    ,CASE
       WHEN LEFT(Content,3) = 0xEFBBBF
         THEN CONVERT(varbinary(max),SUBSTRING(Content,4,LEN(Content)))
       ELSE
         Content
     END AS Content
  FROM ItemContentBinaries
)
--The outer query gets the content in its varbinary, varchar and xml representations...
SELECT
   ItemID,Name,[Type],TypeDescription
  ,Content --varbinary
  ,CONVERT(varchar(max),Content) AS ContentVarchar --varchar
  ,CONVERT(xml,Content) AS ContentXML --xml
FROM ItemContentNoBOM&lt;/PRE&gt;
&lt;P&gt;Reference:&amp;nbsp;&lt;A href="http://bretstateham.com/extracting-ssrs-report-rdl-xml-from-the-reportserver-database/" target="_self"&gt;Extract RDL (XML) from the ReportServer database&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Yuliana Gu&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 02:59:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/213511#M324</guid>
      <dc:creator>v-yulgu-msft</dc:creator>
      <dc:date>2017-07-18T02:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server dbo.Catalog table</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/309924#M2474</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14525"&gt;@v-yulgu-msft&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is the precise query that generates the error&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;is reporting.&amp;nbsp; &amp;nbsp;Note that the BOM for a Power BI document contents is different then the legacy SSRS reports, datasources and shared datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a different CASE WHEN clause to strip off the unique BOM characters used for Power BI contents stored in SQL Server reports catalog?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 16:33:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/309924#M2474</guid>
      <dc:creator>FinditEZ</dc:creator>
      <dc:date>2017-11-23T16:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server dbo.Catalog table</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/309925#M2475</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14525"&gt;@v-yulgu-msft&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is the precise query that generates the error&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;is reporting.&amp;nbsp; &amp;nbsp;Note that the BOM for a Power BI document contents is different then the legacy SSRS reports, datasources and shared datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a different CASE WHEN clause to strip off the unique BOM characters used for Power BI contents stored in SQL Server reports catalog?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 16:36:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/309925#M2475</guid>
      <dc:creator>FinditEZ</dc:creator>
      <dc:date>2017-11-23T16:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server dbo.Catalog table</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/514733#M7858</link>
      <description>&lt;P&gt;I have some supplements:&lt;/P&gt;&lt;P&gt;1= Folder&lt;/P&gt;&lt;P&gt;3 = Templates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Kathrin&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 08:36:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/514733#M7858</guid>
      <dc:creator>KBO</dc:creator>
      <dc:date>2018-09-13T08:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server dbo.Catalog table</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/516056#M7891</link>
      <description>&lt;P&gt;It's worth remembering that the Binary in the Content&amp;nbsp;column for a PBIX file is actually the PBIX file itself, which is a ZIP file.&amp;nbsp;So I'm pretty sure you can't meaningfully parse it as XML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 10:47:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-dbo-Catalog-table/m-p/516056#M7891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-14T10:47:19Z</dc:date>
    </item>
  </channel>
</rss>

