<?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: API - Keyblocker in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/958181#M22572</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;Ofcourse, what I do have today is a powershell script that runs a api call to our ticket system, collecting all tickets into a PowerShell variable, from here I wanted to post one and one ticket to a PowerBI dataset trough the API - thats where I got rate limited by Microsoft and got the Keyblocker error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did from here was to instead of posting each ticket with a api call I added a append to variable inside the foreach loop, and then posted everything inside this variable to the PowerBI dataset. This can only contain 10 000 objects, so I had to split it into two api calls. Does this help a bit?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 07:35:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-04T07:35:14Z</dc:date>
    <item>
      <title>API - Keyblocker</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/805652#M20926</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a powershell script to call the API for our ticket system, and then post hit to PowerBI with a foreach loop for every ticket, total is about 17k tickets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the message I am recieving when trying to my script.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Invoke-RestMethod : {"error":{"message":"The request was blocked by KeyBlocker "}}
At line:9 char:1
+ Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/PRE&gt;&lt;P&gt;Has anyone seen this, and is there a workaround?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 12:55:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/805652#M20926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-30T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: API - Keyblocker</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/806554#M20936</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you invoking this behind any corporate firewall ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also make sure that you have run this using TLS 1.2 in your script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Oct 2019 07:17:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/806554#M20936</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-10-01T07:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: API - Keyblocker</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/813438#M21037</link>
      <description>&lt;P&gt;Sorry for the late reply, I solved this by putting every ticket into one foreach loop.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 08:42:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/813438#M21037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-09T08:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: API - Keyblocker</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/957325#M22568</link>
      <description>&lt;P&gt;Can you please share with us a little bit more details on the workaround you've used?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 17:02:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/957325#M22568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-03T17:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: API - Keyblocker</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/958181#M22572</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;Ofcourse, what I do have today is a powershell script that runs a api call to our ticket system, collecting all tickets into a PowerShell variable, from here I wanted to post one and one ticket to a PowerBI dataset trough the API - thats where I got rate limited by Microsoft and got the Keyblocker error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did from here was to instead of posting each ticket with a api call I added a append to variable inside the foreach loop, and then posted everything inside this variable to the PowerBI dataset. This can only contain 10 000 objects, so I had to split it into two api calls. Does this help a bit?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 07:35:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/958181#M22572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-04T07:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: API - Keyblocker</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/1608552#M27344</link>
      <description>&lt;P&gt;HI&lt;BR /&gt;Im new to powershell and I keep on getting the key Blocker message.&lt;BR /&gt;Please could you assist in sending your sample code please.&lt;/P&gt;&lt;P&gt;Data is extracted from SQL server. Ho do you add all the records and pass the result once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;section of the code that im bateling with&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;while ($dataset.Read()) {&lt;BR /&gt;$payload = @{&lt;BR /&gt;"PLR_Description" =$dataset['PLR_Description']&lt;BR /&gt;"Snap" =$dataset['Snap']&lt;BR /&gt;"LastCreated" =$dataset['LastCreated']&lt;BR /&gt;"Total" =$dataset['Total']&lt;BR /&gt;"Success" =$dataset['Success']&lt;BR /&gt;"Failure" =$dataset['Failure']&lt;BR /&gt;"e Disconnect" =$dataset['e Disconnect']&lt;BR /&gt;"e CRC Failed" =$dataset['e CRC Failed']&lt;BR /&gt;"e Resent count exceeded" =$dataset['e Resent count exceeded']&lt;BR /&gt;"e Invalid Tag" =$dataset['e Invalid Tag']&lt;BR /&gt;"e PLR: no space for message" =$dataset['e PLR: no space for message']&lt;BR /&gt;"e PLR: old pocsag timestamp" =$dataset['e PLR: old pocsag timestamp']&lt;BR /&gt;"e PLR: RTC Invalid" =$dataset['e PLR: RTC Invalid']&lt;BR /&gt;"e GW: ReceivedByteCount" =$dataset['e GW: ReceivedByteCount']&lt;BR /&gt;"Type" =$dataset['Type']&lt;BR /&gt;"Diff" =$dataset['Diff']&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json @($payload))&lt;BR /&gt;}&lt;BR /&gt;$connection.Close();&lt;BR /&gt;$connection.Dispose();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 12:22:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/1608552#M27344</guid>
      <dc:creator>Seanv</dc:creator>
      <dc:date>2021-01-19T12:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: API - Keyblocker</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/2886122#M39575</link>
      <description>&lt;P&gt;Do you happen to still have this code and is so, would you be willing to share? I am running into this same issue and am having trouble fixing it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 16:13:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Keyblocker/m-p/2886122#M39575</guid>
      <dc:creator>villasenorbritt</dc:creator>
      <dc:date>2022-11-04T16:13:45Z</dc:date>
    </item>
  </channel>
</rss>

