<?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 bind to gateway API returning false success. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/341489#M10171</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried to bind the dataset to gateway using API,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/mt784650.aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/mt784650.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunately it is returning false success. (dataset is not binded to gateway).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BG&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2018 08:49:42 GMT</pubDate>
    <dc:creator>bharamagouda</dc:creator>
    <dc:date>2018-01-19T08:49:42Z</dc:date>
    <item>
      <title>bind to gateway API returning false success.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/341489#M10171</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried to bind the dataset to gateway using API,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/mt784650.aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/mt784650.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunately it is returning false success. (dataset is not binded to gateway).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BG&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 08:49:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/341489#M10171</guid>
      <dc:creator>bharamagouda</dc:creator>
      <dc:date>2018-01-19T08:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: bind to gateway API returning false success.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/344397#M10215</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Strange. Can you please post here the response to that binding request?&lt;/P&gt;&lt;P&gt;Also, if dataset is not bounded to the Gateway, then some later operation (e.g., refresh) should fail, right? Can you also post here the details of such a failure (the response if Via the API, or if via PBI portal UI, the picture of the pop up of failure, opened to show failure details)?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 10:25:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/344397#M10215</guid>
      <dc:creator>yoavo</dc:creator>
      <dc:date>2018-01-24T10:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: bind to gateway API returning false success.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/568886#M17645</link>
      <description>&lt;P&gt;I'm trying similar thing through powershell using the Invoke-PowerBiRestMethod cmdlet.&amp;nbsp; I've used this successfully to show the gateways a dataset could be bound to so I know the cmdlet works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Invoke-PowerBiRestMethod -Url 'datasets/02e5300c-7414-4f67-b93f-aaa2a93$$$$$/Default.DiscoverGateways' -Method Get&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;apon selecting one of the gatewayID's that are output above, I run the following :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Invoke-PowerBiRestMethod -Url 'datasets/02e5300c-7414-4f67-b93f-aaa2a93$$$$$/Default.BindToGateway' -Body bd3c507e-a56c-4ec1-ba8f-7b31cbb##### -Method Post&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Invoke-PowerBiRestMethod : One or more errors occurred.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;At line:1 char:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;+ Invoke-PowerBiRestMethod -Url 'datasets/02e5300c-7414-4f67-b93f-aaa2a ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;+ CategoryInfo : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMethod], Aggrega &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;teException&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;+ FullyQualifiedErrorId : One or more errors occurred.,Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then for more context :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Write-Host $error[0].Exception&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;System.AggregateException: One or more errors occurred. ---&amp;gt; System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.&amp;lt;InvokeRestMethod&amp;gt;d__31.MoveNext()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;--- End of inner exception stack trace ---&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.ExecuteCmdlet()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;at Microsoft.PowerBI.Commands.Common.PowerBICmdlet.ProcessRecord()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;---&amp;gt; (Inner Exception #0) System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.&amp;lt;InvokeRestMethod&amp;gt;d__31.MoveNext()&amp;lt;---&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why would this be reporting &lt;FONT face="courier new,courier"&gt;Bad Request&lt;/FONT&gt;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;please advice, thank you !&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 22:56:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/568886#M17645</guid>
      <dc:creator>Brown1MR</dc:creator>
      <dc:date>2018-11-19T22:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: bind to gateway API returning false success.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/571276#M17693</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there are&amp;nbsp;no details in your question except for the dataset Id, and the error you posted is way above what PowerBI returned,&amp;nbsp;So&amp;nbsp;without PowerBi's error message (or at least the requestId with which we can investigate, it's really &amp;nbsp;hard to know why your request&amp;nbsp;failed.&lt;/P&gt;&lt;P&gt;But I looked at your dataset activities 11/19-20&amp;nbsp; and I see many errors. Half are of invalid requests and the rest is because you send too many request in a short period, so some where rejected with a meassage asking to try a bit later.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Yoav (PBI staff)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 17:45:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/571276#M17693</guid>
      <dc:creator>yoavo</dc:creator>
      <dc:date>2018-11-22T17:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: bind to gateway API returning false success.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/611325#M18397</link>
      <description>&lt;P&gt;I am having the same exact error.&amp;nbsp; I am building a powershell script to automate publishing.&amp;nbsp; I have enabled Fiddler and I can catch the 400 bad request, but when I repeat, the same exact request via fiddler...it works.&amp;nbsp; Is there indeed a timing thing?&amp;nbsp; I am doing a few API calls, pretty much back to back. I am getting an AAD token, followed by getting the groupid, then the reportid based on the name of the pbix file, to make sure the workspace and report exist and if so, need to be overwritten.&amp;nbsp; I then publish the pbix, followed by taking ownership of the dataset and setting parameters.&amp;nbsp; I then am trying to bind the dataset to a gateway using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.powerbi.com/v1.0/myorg/groups/GroupId/datasets/DatasetId/BindToGateway&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To it I use&amp;nbsp;the following body:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{"gatewayObjectId": "GatewayId"}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First attempt as part of the script I get a:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 400 Bad Request
Cache-Control: no-store, must-revalidate, no-cache
Content-Type: application/json; charset=utf-8
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: deny
X-Content-Type-Options: nosniff
RequestId: 1507f40e-c4d3-4505-b18c-08d756c68599
Date: Tue, 29 Jan 2019 05:10:55 GMT
Content-Length: 189

{"error":{"code":"DMTS_CanNotFindMatchingDatasourceInGatewayError","pbi.error":{"code":"DMTS_CanNotFindMatchingDatasourceInGatewayError","parameters":{},"details":[],"exceptionCulprit":1}}}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But using Fiddler's Composer I clone the same EXACT request and get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 200 OK
Cache-Control: no-store, must-revalidate, no-cache
Content-Type: application/octet-stream
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: deny
X-Content-Type-Options: nosniff
RequestId: b8ce9e60-298d-4054-ae41-78d97c273898
Date: Tue, 29 Jan 2019 05:15:46 GMT
Content-Length: 0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help. I am actually setting up an Azure DevOps Release pipeline to automate this process for my developers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have noticed that a 2 second sleep seems to help, but now I am getting this on the update parameters request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 429
Cache-Control: no-store, must-revalidate, no-cache
Transfer-Encoding: chunked
Content-Type: application/json; charset=utf-8
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: deny
X-Content-Type-Options: nosniff
RequestId: e63505f6-bf41-4d22-94d8-d883188b4923
Date: Tue, 29 Jan 2019 06:02:01 GMT

7F
{"error":{"code":"ActivityLimitReached","message":"UpdateDatasetParameters on c629a2a9-3932-4ce6-a5f6-1de659406843 throttled"}}
0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it is self explanatory.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 06:04:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/611325#M18397</guid>
      <dc:creator>jburbano</dc:creator>
      <dc:date>2019-01-29T06:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: bind to gateway API returning false success.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/3996021#M53453</link>
      <description>&lt;P&gt;I am also getting similar respnse ie false success&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 11:54:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/bind-to-gateway-API-returning-false-success/m-p/3996021#M53453</guid>
      <dc:creator>Sukhjeevan</dc:creator>
      <dc:date>2024-06-17T11:54:01Z</dc:date>
    </item>
  </channel>
</rss>

