<?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 SDK for .NET: Service Code Retry Handling in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4710803#M61467</link>
    <description>&lt;P&gt;Hi Manikanteswara,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like there is some misunderstanding. I am looking for information regarding&amp;nbsp;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/dotnet/api/microsoft.powerbi.api?view=azure-dotnet" target="_blank" rel="noopener nofollow noreferrer"&gt;Microsoft.PowerBI.Api&lt;/A&gt;&lt;SPAN&gt;). This is not a .NET Graph SDK, and as far as I know this is not a NuGet Server API. I have not been able to find any documentation specifically about the Power BI SDK that states whether it has a retry mechanism. Given that the .NET Graph SDK comes with retry handling, I would not be surprised if that was indeed the case.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nelson Nyland&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2025 16:50:51 GMT</pubDate>
    <dc:creator>nelsonnyland</dc:creator>
    <dc:date>2025-05-28T16:50:51Z</dc:date>
    <item>
      <title>Power BI SDK for .NET: Service Code Retry Handling</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4703939#M61350</link>
      <description>&lt;P&gt;I have a .NET 8 app connecting to Power BI API using the provided SDK nuget package (&lt;A href="https://learn.microsoft.com/en-us/dotnet/api/microsoft.powerbi.api?view=azure-dotnet" target="_blank" rel="noopener"&gt;Microsoft.PowerBI.Api&lt;/A&gt;).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a provided retry handler for bad service codes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 16:01:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4703939#M61350</guid>
      <dc:creator>nelsonnyland</dc:creator>
      <dc:date>2025-05-22T16:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI SDK for .NET: Service Code Retry Handling</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4704701#M61362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1280239"&gt;@nelsonnyland&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thank you for reaching out to Microsoft Fabric Community Forum.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 12.0pt; color: #161616;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;&lt;SPAN&gt;Any &lt;/SPAN&gt;&lt;SPAN&gt;GET&lt;/SPAN&gt;&lt;SPAN&gt; request made to a API endpoint may return an HTTP redirect (301 or 302). Clients should gracefully handle such redirects by observing the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Location&lt;/SPAN&gt;&lt;SPAN&gt; header and issuing a subsequent &lt;/SPAN&gt;&lt;SPAN&gt;GET&lt;/SPAN&gt;&lt;SPAN&gt;. Documentation concerning specific endpoints will not explicitly call out where redirects may be used.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 12.0pt; color: #161616;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;&lt;SPAN&gt;In the case of a 500-level status code, the client can implement a reasonable retry mechanism. The official NuGet client retries three times when encountering any 500-level status code or TCP/DNS error.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 12.0pt; color: #161616;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 12.0pt; color: #161616;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;&lt;SPAN&gt;Please refer the below documents for better understanding.&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/nuget/api/overview" target="_blank"&gt;Overview of the NuGet Server API | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/nuget/nuget-org/nuget-org-faq" target="_blank"&gt;NuGet.org Frequently-Asked Questions | Microsoft Learn&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 12.0pt; color: #161616;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/answers/questions/1330236/net-graph-sdk-v5-retryhandler-question" target="_blank"&gt;.NET Graph SDK v5 RetryHandler question - Microsoft Q&amp;amp;A&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 12.0pt; color: #161616;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV style="direction: ltr;"&gt;
&lt;TABLE style="direction: ltr; border-collapse: collapse; border: 1pt solid #A3A3A3;" title="" border="1" summary="" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="background-color: #c5e0b3; vertical-align: top; width: 7.5284in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;
&lt;H4 style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;&lt;SPAN&gt;If this post helps, then please consider &lt;/SPAN&gt;&lt;FONT color="#003300"&gt;&lt;STRONG&gt;Accepting as solution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt; to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!&lt;/SPAN&gt;&lt;/H4&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P style="margin: 0in; margin-left: 3.0in; font-family: Arial; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;B Manikanteswara Reddy&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 07:24:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4704701#M61362</guid>
      <dc:creator>v-bmanikante</dc:creator>
      <dc:date>2025-05-23T07:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI SDK for .NET: Service Code Retry Handling</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4707381#M61420</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1280239"&gt;@nelsonnyland&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;If our response addressed, please mark it as &lt;FONT color="#008000"&gt;&lt;STRONG&gt;Accept as solution&lt;/STRONG&gt;&lt;/FONT&gt; and click Yes if you found it helpful.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="direction: ltr;"&gt;
&lt;TABLE style="direction: ltr; border-collapse: collapse; border: 1pt solid #A3A3A3;" title="" border="1" summary="" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="background-color: #c5e0b3; vertical-align: top; width: 7.7854in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;Please don't forget to give a "Kudos&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vbmanikante_0-1748259022250.png" style="width: 18px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1271340iCD72D24FE115CFEA/image-dimensions/18x18?v=v2" width="18" height="18" role="button" title="vbmanikante_0-1748259022250.png" alt="vbmanikante_0-1748259022250.png" /&gt;&lt;/span&gt;" – I’d truly appreciate it!&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P style="margin: 0in; margin-left: 3.0in; font-family: Arial; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;B Manikanteswara Reddy&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 10:21:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4707381#M61420</guid>
      <dc:creator>v-bmanikante</dc:creator>
      <dc:date>2025-05-27T10:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI SDK for .NET: Service Code Retry Handling</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4710803#M61467</link>
      <description>&lt;P&gt;Hi Manikanteswara,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like there is some misunderstanding. I am looking for information regarding&amp;nbsp;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/dotnet/api/microsoft.powerbi.api?view=azure-dotnet" target="_blank" rel="noopener nofollow noreferrer"&gt;Microsoft.PowerBI.Api&lt;/A&gt;&lt;SPAN&gt;). This is not a .NET Graph SDK, and as far as I know this is not a NuGet Server API. I have not been able to find any documentation specifically about the Power BI SDK that states whether it has a retry mechanism. Given that the .NET Graph SDK comes with retry handling, I would not be surprised if that was indeed the case.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nelson Nyland&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 16:50:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4710803#M61467</guid>
      <dc:creator>nelsonnyland</dc:creator>
      <dc:date>2025-05-28T16:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI SDK for .NET: Service Code Retry Handling</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4711730#M61483</link>
      <description>&lt;P&gt;Thank you for the follow-up, you're absolutely right to clarify that Microsoft.PowerBI.Api is not part of the .NET Graph SDK or a NuGet server API.The Power BI .NET SDK (Microsoft.PowerBI.Api) does not have built-in retry logic.&lt;/P&gt;
&lt;P&gt;Unlike the Graph SDK, which includes a built-in retry handler for throttling (like 429s or 5xx errors), the Power BI SDK is a more lightweight wrapper over the REST API. That means you’ll need to implement your own retry mechanism if you want to handle transient faults or throttling scenarios.&lt;/P&gt;
&lt;P&gt;A common approach is to use a library like &lt;STRONG&gt;Polly&lt;/STRONG&gt; to define a retry policy. Here’s an example of how that might look in C#:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var retryPolicy = Policy&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Handle&amp;lt;HttpRequestException&amp;gt;()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .OrResult&amp;lt;HttpResponseMessage&amp;gt;(r =&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (int)r.StatusCode == 429 || (int)r.StatusCode &amp;gt;= 500)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .WaitAndRetryAsync(3, retryAttempt =&amp;gt; TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)));&lt;/P&gt;
&lt;P&gt;var result = await retryPolicy.ExecuteAsync(() =&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; powerBIClient.Reports.GetReportInGroupAsync(groupId, reportId));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.documents.client.connectionpolicy.retryoptions?view=azure-dotnet" target="_blank"&gt;ConnectionPolicy.RetryOptions Property (Microsoft.Azure.Documents.Client) - Azure for .NET Developers | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/storage/blobs/storage-retry-policy" target="_blank"&gt;Implement a retry policy using the Azure Storage client library for .NET - Azure Storage | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="direction: ltr;"&gt;
&lt;TABLE style="direction: ltr; border-collapse: collapse; border: 1pt solid #A3A3A3;" title="" border="1" summary="" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="background-color: #c5e0b3; vertical-align: top; width: 7.5284in; padding: 4pt 4pt 4pt 4pt; border: 1pt solid #A3A3A3;"&gt;
&lt;H4 style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;&lt;SPAN&gt;If this post helps, then please consider &lt;/SPAN&gt;&lt;FONT color="#003300"&gt;&lt;STRONG&gt;Accepting as solution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt; to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!&lt;/SPAN&gt;&lt;/H4&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P style="margin: 0in; margin-left: 3.0in; font-family: Arial; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 11.0pt;"&gt;B Manikanteswara Reddy&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 08:44:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-SDK-for-NET-Service-Code-Retry-Handling/m-p/4711730#M61483</guid>
      <dc:creator>v-bmanikante</dc:creator>
      <dc:date>2025-05-29T08:44:51Z</dc:date>
    </item>
  </channel>
</rss>

