<?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: Transaction (Process ID) was deadlocked on lock resources with another process in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4252652#M38301</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828931" data-lia-user-login="3hungdc" class="lia-mention lia-mention-user"&gt;3hungdc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given the context,&amp;nbsp;deadlocks can be more likely due to high resource contention during data retrieval. Refreshing data create connection to SQL and picks latest data so probably your server has resource intensive operations running (Some DMLs probably).You have already tried usual methods (query optimization, reduction, less joins , parallel processing , reducing data volume etc), you can do some additional steps :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Use &lt;STRONG&gt;NOLOCK&lt;/STRONG&gt; (to read data ignoring locks) in your select queries whereever applied.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;STRONG&gt;Pre-Aggregate Data&lt;/STRONG&gt;: Instead of applying complex filters and joins in the Power BI query, consider pre-aggregating the data in SQL Server or a staging table.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;STRONG&gt;DirectQuery Mode&lt;/STRONG&gt;: If the data is too large and frequent updates are necessary, consider switching from Import to &lt;STRONG&gt;DirectQuery&lt;/STRONG&gt; mode, which queries the database in real-time, avoiding memory overload during data import. This will be slower than import but you will save data refresh.&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;&lt;STRONG&gt;Monitor Lock Contention&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Use can use below query in ssms to check potential locking&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;SELECT *&lt;BR /&gt;&amp;nbsp; FROM sys.dm_exec_requests&lt;BR /&gt;&amp;nbsp; WHERE blocking_session_id &amp;lt;&amp;gt; 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;blocking_session_id AS BlockingSessionID,&lt;BR /&gt;session_id AS VictimSessionID,&lt;BR /&gt;wait_type, wait_time, wait_resource,&lt;BR /&gt;[status], command, blocking_session_id,&lt;BR /&gt;(SELECT text FROM sys.dm_exec_sql_text(request_sql_handle)) AS QueryText&lt;BR /&gt;FROM&lt;BR /&gt;sys.dm_exec_requests&lt;BR /&gt;WHERE&lt;BR /&gt;blocking_session_id &amp;lt;&amp;gt; 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. You can use &lt;STRONG&gt;extended events&lt;/STRONG&gt; or &lt;STRONG&gt;profilers&lt;/STRONG&gt; to find more details about deadlock and can take action accordingly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your query ? Please mark this as solution if this helps. Appreciate your Kudos &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 13:26:04 GMT</pubDate>
    <dc:creator>divyed</dc:creator>
    <dc:date>2024-10-22T13:26:04Z</dc:date>
    <item>
      <title>Transaction (Process ID) was deadlocked on lock resources with another process</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4252496#M38298</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm encountering a &lt;STRONG&gt;deadlock issue&lt;/STRONG&gt; in Power BI Report Server, and I'm not sure how to resolve it. When refreshing my dataset, I receive the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SessionID: 6b031eca-c092-45d9-b5f4-f0ebdb551880
[0] 0: Transaction (Process ID 59) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried refreshing the dataset multiple times, but the problem still persists. I understand that deadlocks typically occur due to conflicts between transactions in SQL Server. However, I am unable to identify the specific cause in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some additional details:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am using Import mode to retrieve data from a SQL Server database.&lt;/LI&gt;&lt;LI&gt;The dataset is quite large, and there are several joins and filters applied in the queries.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;What I've tried so far:&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;Refreshing the data at different times.&lt;/LI&gt;&lt;LI&gt;Optimizing my queries by reducing the number of joins and filtering data as much as possible.&lt;/LI&gt;&lt;LI&gt;I looked into Turned off &lt;STRONG&gt;Parrallel&lt;/STRONG&gt; &lt;STRONG&gt;loading&lt;/STRONG&gt;&amp;nbsp;, but the issue still occurs.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Are there any recommended best practices to avoid deadlocks in Power BI, How to fix this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 11:03:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4252496#M38298</guid>
      <dc:creator>3hungdc</dc:creator>
      <dc:date>2024-10-22T11:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction (Process ID) was deadlocked on lock resources with another process</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4252652#M38301</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828931" data-lia-user-login="3hungdc" class="lia-mention lia-mention-user"&gt;3hungdc&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given the context,&amp;nbsp;deadlocks can be more likely due to high resource contention during data retrieval. Refreshing data create connection to SQL and picks latest data so probably your server has resource intensive operations running (Some DMLs probably).You have already tried usual methods (query optimization, reduction, less joins , parallel processing , reducing data volume etc), you can do some additional steps :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Use &lt;STRONG&gt;NOLOCK&lt;/STRONG&gt; (to read data ignoring locks) in your select queries whereever applied.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;STRONG&gt;Pre-Aggregate Data&lt;/STRONG&gt;: Instead of applying complex filters and joins in the Power BI query, consider pre-aggregating the data in SQL Server or a staging table.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;STRONG&gt;DirectQuery Mode&lt;/STRONG&gt;: If the data is too large and frequent updates are necessary, consider switching from Import to &lt;STRONG&gt;DirectQuery&lt;/STRONG&gt; mode, which queries the database in real-time, avoiding memory overload during data import. This will be slower than import but you will save data refresh.&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;&lt;STRONG&gt;Monitor Lock Contention&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Use can use below query in ssms to check potential locking&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;SELECT *&lt;BR /&gt;&amp;nbsp; FROM sys.dm_exec_requests&lt;BR /&gt;&amp;nbsp; WHERE blocking_session_id &amp;lt;&amp;gt; 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;blocking_session_id AS BlockingSessionID,&lt;BR /&gt;session_id AS VictimSessionID,&lt;BR /&gt;wait_type, wait_time, wait_resource,&lt;BR /&gt;[status], command, blocking_session_id,&lt;BR /&gt;(SELECT text FROM sys.dm_exec_sql_text(request_sql_handle)) AS QueryText&lt;BR /&gt;FROM&lt;BR /&gt;sys.dm_exec_requests&lt;BR /&gt;WHERE&lt;BR /&gt;blocking_session_id &amp;lt;&amp;gt; 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. You can use &lt;STRONG&gt;extended events&lt;/STRONG&gt; or &lt;STRONG&gt;profilers&lt;/STRONG&gt; to find more details about deadlock and can take action accordingly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your query ? Please mark this as solution if this helps. Appreciate your Kudos &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 13:26:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4252652#M38301</guid>
      <dc:creator>divyed</dc:creator>
      <dc:date>2024-10-22T13:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction (Process ID) was deadlocked on lock resources with another process</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4253374#M38318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/826012" target="_blank"&gt;@divyed&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already set NO LOCK for the query that I think it make Deadlock. But it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I set NO LOCK for all tables query in the report ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also. When I check extended events. I saw this message, tell which process got locked. But I still cannot find the solution. Can you help ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;UPDATE
        [dbo].[CatalogItemExtendedContent]
    SET
        ModifiedDate = @ModifiedDate
    WHERE
        ItemID = @CatalogItemID AND
        ContentType = @ContentType AND&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;process id="process224256b1468"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 02:25:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4253374#M38318</guid>
      <dc:creator>3hungdc</dc:creator>
      <dc:date>2024-10-23T02:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction (Process ID) was deadlocked on lock resources with another process</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4253474#M38320</link>
      <description>&lt;P&gt;I already found the problem.&amp;nbsp;&lt;BR /&gt;When I checked&amp;nbsp;&lt;SPAN&gt;System_health in&amp;nbsp;&lt;STRONG&gt;extended events.&lt;BR /&gt;&lt;/STRONG&gt;I see the details of deadlock as you said.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But there, it's not problem about my code. It's about PowerBI Report Server bug.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After translate all these hard-to-understand-xml. I found out that have a problem with table CatalogItemExtendedContent . Made by PowerBI Report Server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Finally, the deadlock is from sp: InitializeCatalogExtendedContentWrite&lt;BR /&gt;The code here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It deadlock because of that UPDATE.&lt;/P&gt;&lt;P&gt;Now I just need add WITH (ROWLOCK, UPDLOCK).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;UPDATE [dbo].[CatalogItemExtendedContent] WITH (ROWLOCK, UPDLOCK)
SET Content = 0x
WHERE ItemID = @CatalogItemID AND ContentType = @ContentType;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Voila . It no longer deadlock in my situation&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 03:42:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4253474#M38320</guid>
      <dc:creator>3hungdc</dc:creator>
      <dc:date>2024-10-23T03:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction (Process ID) was deadlocked on lock resources with another process</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4253483#M38321</link>
      <description>&lt;P&gt;I already found the solution is in the stored procedure name: "InitializeCatalogExtendedContentWrite"&lt;/P&gt;&lt;P&gt;This sp created bug is not from us. It from PBIRS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just go to the Server where PowerBI located.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And add " WITH (ROWLOCK, UPDLOCK)" after the UPDATE command.&lt;/P&gt;&lt;P&gt;It will lock the rows instead of entire table.&lt;BR /&gt;And Voila, The deadlock does not appear again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 03:40:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/4253483#M38321</guid>
      <dc:creator>3hungdc</dc:creator>
      <dc:date>2024-10-23T03:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction (Process ID) was deadlocked on lock resources with another process</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/5194972#M43551</link>
      <description>&lt;P&gt;i also run in this problem sometimes. I guess I understand your fix, but I am wondering if there is no official fix for that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 11:03:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/5194972#M43551</guid>
      <dc:creator>stefanp2</dc:creator>
      <dc:date>2026-06-09T11:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction (Process ID) was deadlocked on lock resources with another process</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/5195340#M43555</link>
      <description>&lt;P&gt;Deadlocks are typically caused by SQL Server locking conflicts during refresh. I'd recommend capturing a deadlock graph (Extended Events) to identify the queries involved, reviewing indexes, and checking for concurrent database activity during refresh.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2026 04:13:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/5195340#M43555</guid>
      <dc:creator>masonreed11t</dc:creator>
      <dc:date>2026-06-10T04:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction (Process ID) was deadlocked on lock resources with another process</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/5196138#M43560</link>
      <description>&lt;P&gt;Deadlock SQL Server side issue hai, Power BI ka direct problem nahi.&lt;/P&gt;&lt;P&gt;Simple fixes try karo:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Tables par indexes add/verify karo (join/filter columns)&lt;/LI&gt;&lt;LI&gt;Query ko simple karo ya SQL view bana lo&lt;/LI&gt;&lt;LI&gt;Refresh ko off-peak time pe chalao&lt;/LI&gt;&lt;LI&gt;Agar possible ho to enable karo READ_COMMITTED_SNAPSHOT&lt;/LI&gt;&lt;LI&gt;Large tables ki statistics update karo&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Parallel load off karna enough nahi hota—real issue DB locking hota hai.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2026 13:21:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Transaction-Process-ID-was-deadlocked-on-lock-resources-with/m-p/5196138#M43560</guid>
      <dc:creator>carter_gray705</dc:creator>
      <dc:date>2026-06-11T13:21:58Z</dc:date>
    </item>
  </channel>
</rss>

