<?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: Randomly receiving 503, server unavailable, when retrieving activities? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3054709#M40997</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I do no believe the problem is, exceeding the limitations. Take yesterday as an example… The job that runs the power shell scripts, failed at 6 AM. I then had to run the job, a couple of hours later, 7 times before the job ran successfully.&lt;/P&gt;&lt;P&gt;It appears to be failing on retrieving activities and I should point out that only last 24 hours of activities are being executed.&lt;/P&gt;&lt;P&gt;It is using the service principal to login&lt;BR /&gt;$pbiAccount = Connect-PowerBIServiceAccount -ServicePrincipal -Tenant $config.ServicePrincipal.TenantId -Credential $credential -Environment $config.ServicePrincipal.Environment&lt;/P&gt;&lt;P&gt;Part of the code that retrieves the activities is&lt;BR /&gt;$activityAPIUrl = "admin/activityevents?startDateTime='$($pivotDate.ToString("s"))'&amp;amp;endDateTime='$($pivotDate.AddHours(24).AddSeconds(-1).ToString("s"))'"&lt;/P&gt;&lt;P&gt;$audits = @()&lt;BR /&gt;$pageIndex = 1&lt;BR /&gt;$flagNoActivity = $true&lt;/P&gt;&lt;P&gt;do&lt;BR /&gt;{&lt;BR /&gt;if (!$result.continuationUri)&lt;BR /&gt;{&lt;BR /&gt;$result = Invoke-PowerBIRestMethod -Url $activityAPIUrl -method Get | ConvertFrom-Json&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;$result = Invoke-PowerBIRestMethod -Url $result.continuationUri -method Get | ConvertFrom-Json&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;surely if it was a limitation issue, it would not work after seven attempts (or two attempts this morning).&lt;/P&gt;&lt;P&gt;An example of the error I am getting is below&lt;/P&gt;&lt;P&gt;31/01/2023 16:21:46&lt;BR /&gt;3&lt;BR /&gt;&amp;nbsp; Next execute .\Fetch - Activity.ps1&lt;BR /&gt;next activity call&lt;BR /&gt;&amp;nbsp;next activity continuation call&lt;BR /&gt;Script error on '.\Fetch - Activity.ps1' - System.AggregateException: One or more errors occurred. ---&amp;gt; System.Net.Http.HttpRequestException: An error occurred while sending the request. ---&amp;gt; System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---&amp;gt; System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---&amp;gt; System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.&amp;lt;InvokeRestMethod&amp;gt;d__35.MoveNext()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.ExecuteCmdlet()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.PowerBI.Commands.Common.PowerBICmdlet.ProcessRecord()&lt;BR /&gt;---&amp;gt; (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---&amp;gt; System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---&amp;gt; System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---&amp;gt; System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.&amp;lt;InvokeRestMethod&amp;gt;d__35.MoveNext()&amp;lt;---&lt;/P&gt;&lt;P&gt;3&lt;BR /&gt;&amp;nbsp; Next execute .\Fetch - Catalog.ps1&lt;BR /&gt;&amp;nbsp; successfully executed .\Fetch - Catalog.ps1&lt;BR /&gt;3&lt;BR /&gt;&amp;nbsp; Next execute .\Fetch - Graph.ps1&lt;BR /&gt;&amp;nbsp; successfully executed .\Fetch - Graph.ps1&lt;/P&gt;&lt;P&gt;Please note, the numbers and comments simply allowed me to see how far the code is reaching.&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 09:03:43 GMT</pubDate>
    <dc:creator>Dragon496</dc:creator>
    <dc:date>2023-02-01T09:03:43Z</dc:date>
    <item>
      <title>Randomly receiving 503, server unavailable, when retrieving activities?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3038170#M40867</link>
      <description>&lt;P&gt;We have some power shell scripts that retrieves details regarding our Power BI tenant.&lt;/P&gt;&lt;P&gt;The actual lines that retrieves the activity details are:-&lt;BR /&gt;if (!$result.continuationUri)&lt;BR /&gt;{&lt;BR /&gt;$result = Invoke-PowerBIRestMethod -Url $activityAPIUrl -method Get | ConvertFrom-Json&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;$result = Invoke-PowerBIRestMethod -Url $result.continuationUri -method Get | ConvertFrom-Json&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if ($result.activityEventEntities)&lt;BR /&gt;{&lt;BR /&gt;$audits += @($result.activityEventEntities)&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;These scripts were downloaded from Internet that have been amended for our own purposes. When I was developing the changes, I quite often received errors about the server being unavailable. I put this down to run the scripts, too much while developing them.&lt;/P&gt;&lt;P&gt;I deployed as a schedule task, last Tuesday. Everything was fine until this morning when I received the usual error (even though it would have only been trying to retrieve the activities in the previous 24 hours). The error is shown below, can anybody advise?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Error on '.\Fetch - Activity.ps1' - System.AggregateException: One or more errors occurred. ---&amp;gt;&lt;BR /&gt;System.Net.Http.HttpRequestException: An error occurred while sending the request. ---&amp;gt; System.Net.WebException: The remote server returned an error: (503)&lt;BR /&gt;Server Unavailable.&lt;BR /&gt;at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)&lt;BR /&gt;at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.&amp;lt;InvokeRestMethod&amp;gt;d__35.MoveNext()&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)&lt;BR /&gt;at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)&lt;BR /&gt;at System.Threading.Tasks.Task`1.get_Result()&lt;BR /&gt;at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.ExecuteCmdlet()&lt;BR /&gt;at Microsoft.PowerBI.Commands.Common.PowerBICmdlet.ProcessRecord()&lt;BR /&gt;---&amp;gt; (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---&amp;gt; System.Net.WebException: The remote server&lt;BR /&gt;returned an error: (503) Server Unavailable.&lt;BR /&gt;at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)&lt;BR /&gt;at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.&amp;lt;InvokeRestMethod&amp;gt;d__35.MoveNext()&amp;lt;---&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException&lt;BR /&gt;+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Fetch - Run.ps1&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 15:38:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3038170#M40867</guid>
      <dc:creator>Dragon496</dc:creator>
      <dc:date>2023-01-23T15:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Randomly receiving 503, server unavailable, when retrieving activities?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3046429#M40917</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/263656"&gt;@Dragon496&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;What type of authorizations methods are you used with rest API? OAuth, token or service principal?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If you mean the service principal mode, it requires you to re-invoke the authorization step with service principal every time before the API usages when you work with powershell scripts.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 02:33:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3046429#M40917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-27T02:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Randomly receiving 503, server unavailable, when retrieving activities?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3046769#M40919</link>
      <description>&lt;P&gt;As far as I can see, the scripts are using the oAuth method.&lt;/P&gt;&lt;P&gt;It appears to fail at random. For example, the scripts are executed by a scheduled task in the morning and it has failed twice this week and succeeded twice this week. One of the failures, I had to rerun once and the other needed five attempts.&lt;/P&gt;&lt;P&gt;Please note, the issue is not the schedule task. Random failures are generated, when I run the script, within Windows PowerShell ISE.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 08:42:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3046769#M40919</guid>
      <dc:creator>Dragon496</dc:creator>
      <dc:date>2023-01-27T08:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Randomly receiving 503, server unavailable, when retrieving activities?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3049796#M40958</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/263656"&gt;@Dragon496&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Perhaps you can take a look at the rest API limitation if your scenario meets to these limitations, the remote server will reject or not respond with these requests which exceed to the limitations.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/push-datasets-limitations" target="_blank"&gt;Power BI REST APIs push datasets limitations - Power BI | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 08:17:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3049796#M40958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-30T08:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Randomly receiving 503, server unavailable, when retrieving activities?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3054709#M40997</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I do no believe the problem is, exceeding the limitations. Take yesterday as an example… The job that runs the power shell scripts, failed at 6 AM. I then had to run the job, a couple of hours later, 7 times before the job ran successfully.&lt;/P&gt;&lt;P&gt;It appears to be failing on retrieving activities and I should point out that only last 24 hours of activities are being executed.&lt;/P&gt;&lt;P&gt;It is using the service principal to login&lt;BR /&gt;$pbiAccount = Connect-PowerBIServiceAccount -ServicePrincipal -Tenant $config.ServicePrincipal.TenantId -Credential $credential -Environment $config.ServicePrincipal.Environment&lt;/P&gt;&lt;P&gt;Part of the code that retrieves the activities is&lt;BR /&gt;$activityAPIUrl = "admin/activityevents?startDateTime='$($pivotDate.ToString("s"))'&amp;amp;endDateTime='$($pivotDate.AddHours(24).AddSeconds(-1).ToString("s"))'"&lt;/P&gt;&lt;P&gt;$audits = @()&lt;BR /&gt;$pageIndex = 1&lt;BR /&gt;$flagNoActivity = $true&lt;/P&gt;&lt;P&gt;do&lt;BR /&gt;{&lt;BR /&gt;if (!$result.continuationUri)&lt;BR /&gt;{&lt;BR /&gt;$result = Invoke-PowerBIRestMethod -Url $activityAPIUrl -method Get | ConvertFrom-Json&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;$result = Invoke-PowerBIRestMethod -Url $result.continuationUri -method Get | ConvertFrom-Json&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;surely if it was a limitation issue, it would not work after seven attempts (or two attempts this morning).&lt;/P&gt;&lt;P&gt;An example of the error I am getting is below&lt;/P&gt;&lt;P&gt;31/01/2023 16:21:46&lt;BR /&gt;3&lt;BR /&gt;&amp;nbsp; Next execute .\Fetch - Activity.ps1&lt;BR /&gt;next activity call&lt;BR /&gt;&amp;nbsp;next activity continuation call&lt;BR /&gt;Script error on '.\Fetch - Activity.ps1' - System.AggregateException: One or more errors occurred. ---&amp;gt; System.Net.Http.HttpRequestException: An error occurred while sending the request. ---&amp;gt; System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---&amp;gt; System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---&amp;gt; System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.&amp;lt;InvokeRestMethod&amp;gt;d__35.MoveNext()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.ExecuteCmdlet()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.PowerBI.Commands.Common.PowerBICmdlet.ProcessRecord()&lt;BR /&gt;---&amp;gt; (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---&amp;gt; System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---&amp;gt; System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---&amp;gt; System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; --- End of inner exception stack trace ---&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.&amp;lt;InvokeRestMethod&amp;gt;d__35.MoveNext()&amp;lt;---&lt;/P&gt;&lt;P&gt;3&lt;BR /&gt;&amp;nbsp; Next execute .\Fetch - Catalog.ps1&lt;BR /&gt;&amp;nbsp; successfully executed .\Fetch - Catalog.ps1&lt;BR /&gt;3&lt;BR /&gt;&amp;nbsp; Next execute .\Fetch - Graph.ps1&lt;BR /&gt;&amp;nbsp; successfully executed .\Fetch - Graph.ps1&lt;/P&gt;&lt;P&gt;Please note, the numbers and comments simply allowed me to see how far the code is reaching.&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 09:03:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Randomly-receiving-503-server-unavailable-when-retrieving/m-p/3054709#M40997</guid>
      <dc:creator>Dragon496</dc:creator>
      <dc:date>2023-02-01T09:03:43Z</dc:date>
    </item>
  </channel>
</rss>

