<?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: Uploading PBIX File in C# sample (HELP!) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/768286#M20392</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/13974"&gt;@brunozanoelo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the same thing it works for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here some few tips&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Check whether you user credentials (user name/password) having access to the workspace.&lt;/LI&gt;&lt;LI&gt;Using the fiddler find what API is exactly calling and whether you are getting any error in the fiddler&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I see that this is calling&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/groups/getgroups" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/groups/getgroups&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It requires the scope of&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Workspace.Read.All or Workspace.ReadWrite.All &lt;/STRONG&gt;but from the screenshot you also having that&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 893px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185486i31968421AD06E1E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2019 06:47:23 GMT</pubDate>
    <dc:creator>Jayendran</dc:creator>
    <dc:date>2019-08-16T06:47:23Z</dc:date>
    <item>
      <title>Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/766570#M20356</link>
      <description>&lt;P&gt;Good morning everyone,&lt;BR /&gt;&lt;BR /&gt;For centuries I'm looking to upload pbix files automatically in my workspace locate into the PowerBI Service. I&lt;BR /&gt;&lt;BR /&gt;The best example is this one:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Webinars-and-Video-Gallery/Publishing-PBIX-Files-with-the-Power-BI-REST-API/td-p/153034" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Webinars-and-Video-Gallery/Publishing-PBIX-Files-with-the-Power-BI-REST-API/td-p/153034 &lt;/A&gt;&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&lt;BR /&gt;(This video demonstrates developing a C# console to automate uploading and publishing PBIX project files created with Power BI Desktop to PowerBI.com.)&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;I´ve found this article that explains how the C# works BUT when i select "Native App" it doesn't appear the "Redirect URL". The problem is that when I run the C# sample application , it requires the redirect URL.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 08-14-19 at 11.05 AM.PNG" style="width: 619px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185047i7BFB9BE7EE72F555/image-dimensions/619x350?v=v2" width="619" height="350" role="button" title="Screen Shot 08-14-19 at 11.05 AM.PNG" alt="Screen Shot 08-14-19 at 11.05 AM.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;There´s anyone here that knows about C# and can help me?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:16:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/766570#M20356</guid>
      <dc:creator>brunozanoelo</dc:creator>
      <dc:date>2019-08-14T14:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/766712#M20359</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/13974"&gt;@brunozanoelo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't really need redirect url for a native app. All you need to use the usercredential approach which is commented on the code you need to uncomment that. Because powerbi no longer support the client id with out Azure AD registration.&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;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; // create new ADAL authentication context 
      var authenticationContext =
        new AuthenticationContext(ProgramConstants.AzureAuthorizationEndpoint);

            //use authentication context to trigger user login and then acquire access token
            //var userAuthnResult =
            //  authenticationContext.AcquireTokenAsync(ProgramConstants.PowerBiServiceResourceUri,
            //                                          ProgramConstants.ClientID,
            //                                          new Uri(ProgramConstants.RedirectUri),
            //                                          new PlatformParameters(PromptBehavior.Auto)).Result;


            // use authentication context to trigger user sign-in and return access token 
            var userCreds = new UserPasswordCredential("UserName@MyTenent.onMicrosoft.com", "myEasyToCrackPassword");

            var userAuthnResult = authenticationContext.AcquireTokenAsync(ProgramConstants.PowerBiServiceResourceUri,
                                                                          ProgramConstants.ClientID,
                                                                          userCreds).Result;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update your username and password in the userpasswordcredentials&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185087i489E207BFE9B2EA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 16:19:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/766712#M20359</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-08-14T16:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/766766#M20362</link>
      <description>&lt;P&gt;Thank you so much for your reply.&lt;BR /&gt;&lt;BR /&gt;I´ve changed my code as u said but now is giving me this error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;System.AggregateException&lt;BR /&gt;HResult=0x80131500&lt;BR /&gt;Message=Um ou mais erros.&lt;BR /&gt;Source=mscorlib&lt;BR /&gt;StackTrace:&lt;BR /&gt;em System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)&lt;BR /&gt;em System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)&lt;BR /&gt;em System.Threading.Tasks.Task`1.get_Result()&lt;BR /&gt;em PbixInstallerForPowerBI.Program.AcquireAccessToken() em D:\Bitbucket\PowerBI\Integração REST\PbixInstallerForPowerBI-master\PbixInstallerForPowerBI\Program.cs:linha 54&lt;BR /&gt;em PbixInstallerForPowerBI.Program.Main() em D:\Bitbucket\PowerBI\Integração REST\PbixInstallerForPowerBI-master\PbixInstallerForPowerBI\Program.cs:linha 303&lt;/P&gt;&lt;P&gt;Exceção interna 1:&lt;BR /&gt;AdalServiceException: AADSTS65001: The user or administrator has not consented to use the application with ID '75d071b1-378d-4f76-bb68-da4e033cf646' named 'instalador'. Send an interactive authorization request for this user and resource.&lt;BR /&gt;Trace ID: 20ec587e-39c6-4afa-acbb-67dfe8c9c800&lt;BR /&gt;Correlation ID: a7f7e02e-ffde-453b-b331-89c2e89a3601&lt;BR /&gt;Timestamp: 2019-08-14 17:32:02Z&lt;/P&gt;&lt;P&gt;Exceção interna 2:&lt;BR /&gt;AdalServiceException: Response status code does not indicate success: 400 (BadRequest).&lt;BR /&gt;&lt;BR /&gt;What should be?&lt;BR /&gt;&lt;BR /&gt;BEST regards&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/766766#M20362</guid>
      <dc:creator>brunozanoelo</dc:creator>
      <dc:date>2019-08-14T17:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/767142#M20369</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/13974"&gt;@brunozanoelo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The admin needs to consent your application. You can do this from you Azure Active Directory for your application called&amp;nbsp;&lt;STRONG&gt;instalador&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185198i568EDA7D5D2314FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another little change in the code to force TLS1.2, pls update your code like below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt; System.Net.ServicePointManager.SecurityProtocol = System.Net.ServicePointManager.SecurityProtocol | System.Net.SecurityProtocolType.Tls12;&lt;/STRONG&gt;
            var userCreds = new UserPasswordCredential("UserName@MyTenent.onMicrosoft.com", "myEasyToCrackPassword");

            var userAuthnResult = authenticationContext.AcquireTokenAsync(ProgramConstants.PowerBiServiceResourceUri,
                                                                          ProgramConstants.ClientID,
                                                                          userCreds).Result;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Aug 2019 05:03:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/767142#M20369</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-08-15T05:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/767850#M20385</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100012"&gt;@Jayendran&lt;/a&gt;&amp;nbsp; Thank you for the help. I really appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked to authenticate but now I´m facing one problem in my workspace. I already set all the permissions to this app, including read/write workspaces.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Error (cannot find workspace)" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185352i589E992D5819D48C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 08-15-19 at 03.03 PM.PNG" alt="Error (cannot find workspace)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Error (cannot find workspace)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Workspace" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185353i2BE24272192F955B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 08-15-19 at 03.05 PM.PNG" alt="Workspace" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Workspace&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Permissons" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185359i25DC3ACA4D1AEAFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 08-15-19 at 03.10 PM.PNG" alt="Permissons" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Permissons&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;Any tip? I´m trying everything in Azure and nothing solve this problem.?&lt;BR /&gt;&lt;BR /&gt;Warm Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 18:12:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/767850#M20385</guid>
      <dc:creator>brunozanoelo</dc:creator>
      <dc:date>2019-08-15T18:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/768286#M20392</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/13974"&gt;@brunozanoelo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the same thing it works for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here some few tips&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Check whether you user credentials (user name/password) having access to the workspace.&lt;/LI&gt;&lt;LI&gt;Using the fiddler find what API is exactly calling and whether you are getting any error in the fiddler&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I see that this is calling&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/groups/getgroups" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/groups/getgroups&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It requires the scope of&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Workspace.Read.All or Workspace.ReadWrite.All &lt;/STRONG&gt;but from the screenshot you also having that&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 893px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185486i31968421AD06E1E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 06:47:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/768286#M20392</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-08-16T06:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/768724#M20403</link>
      <description>&lt;P&gt;Hello my friend,&lt;BR /&gt;&lt;BR /&gt;I´ve found that the problem is actually not in the workspace, but still in the authentication function.&lt;BR /&gt;&lt;BR /&gt;See the image bellow. I think my code is correct, isn't? The client ID it´s the correct one, I already checked!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Auth not passed" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185583iEB247E5BF1FE1415/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 08-16-19 at 11.49 AM.PNG" alt="Auth not passed" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Auth not passed&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 14:53:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/768724#M20403</guid>
      <dc:creator>brunozanoelo</dc:creator>
      <dc:date>2019-08-16T14:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/768728#M20404</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/13974"&gt;@brunozanoelo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes pls use the fiddler to find what was the failure from the API. Since it's not reproduce from my side. Fiddler will get the exact issue here&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 14:58:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/768728#M20404</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-08-16T14:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/768730#M20405</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Success using the fiddler" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185587i22F507D455C193B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 08-16-19 at 11.59 AM.PNG" alt="Success using the fiddler" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Success using the fiddler&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="More permissions" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185588i30825BF5538B1490/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 08-16-19 at 12.03 PM.PNG" alt="More permissions" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;More permissions&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But in the app, the errorstill persist.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 15:16:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/768730#M20405</guid>
      <dc:creator>brunozanoelo</dc:creator>
      <dc:date>2019-08-16T15:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/769045#M20408</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/13974"&gt;@brunozanoelo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously you said that autentication is &lt;STRONG&gt;not passed&amp;nbsp;&lt;/STRONG&gt;which means it should have a &lt;STRONG&gt;200 status code. &lt;/STRONG&gt;In such scenario you should see the error in fiddler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However you said that fiddler is successful. It doesn't make sense !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, Can you change your code to like the below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;HttpClient client = new HttpClient();
      client.DefaultRequestHeaders.Add("Authorization", "Bearer " + AccessToken);
      client.DefaultRequestHeaders.Add("Accept", "application/json");

      HttpResponseMessage response = client.GetAsync(restUri).Result;
     var content = response.Content.ReadAsStringAsync().Result;

     Console.WriteLine(content);&lt;/PRE&gt;&lt;P&gt;this way you can get what is the result of the API.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 07:33:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/769045#M20408</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-08-17T07:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/769744#M20434</link>
      <description>&lt;P&gt;I believe I'm getting an sucessfully authentication, since I get the IDToken from the&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Console.WriteLine(userAuthnResult.IdToken);&lt;/PRE&gt;&lt;P&gt;The consolewriteline result an empty string, BUT, take a look of this message when I debug... When the application uses the Workspace function, I get the status code 403 - Forbidden.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Status code 403??" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185860i820939BA3597CE9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 08-19-19 at 08.21 AM.PNG" alt="Status code 403??" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Status code 403??&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="empty string" style="width: 914px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185861iA227C3156787CE07/image-size/large?v=v2&amp;amp;px=999" role="button" title="Empty string.png" alt="empty string" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;empty string&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="403" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185862iB9872005AD8FC85D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 08-19-19 at 08.21 AM.PNG" alt="403" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;403&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I´m logging in with my PowerBI PRO account, I don´t have any embedded capacity in Azure portal, I need to create it and change my workspace to "dedicated capacity"?&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Service/PowerBI-Embedded-Service-403/td-p/71382" target="_blank"&gt;https://community.powerbi.com/t5/Service/PowerBI-Embedded-Service-403/td-p/71382&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:42:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/769744#M20434</guid>
      <dc:creator>brunozanoelo</dc:creator>
      <dc:date>2019-08-19T11:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/770002#M20436</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/13974"&gt;@brunozanoelo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't need dedicated capacity now. It has no connection with the autentication.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you running behind the code behind any proxy ? Which blocks your autentication ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try executing in Post man ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/185923iCF9D672871D0E639/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:34:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/770002#M20436</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-08-19T15:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/770198#M20440</link>
      <description>&lt;P&gt;Got it! I´ve found the problem!&lt;BR /&gt;&lt;BR /&gt;I will post this source in github in a few days. I just need to fix a few details. (I think this will help a lot of ppl too) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I´m facing one problem that when I send my dataset, he doesn't replace, even if is the same pbix name, there´s any possibility to replace the dataset? I need this because I have tons of configurations to auto refresh data.&lt;BR /&gt;&lt;BR /&gt;Thank you a lot my friend.&lt;BR /&gt;&lt;BR /&gt;Warm Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 19:58:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/770198#M20440</guid>
      <dc:creator>brunozanoelo</dc:creator>
      <dc:date>2019-08-19T19:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/770506#M20455</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/13974"&gt;@brunozanoelo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad you solved your problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes there is way to replace the dataset, using the&amp;nbsp;&lt;STRONG&gt;ImportConflictHandlerMode &lt;/STRONG&gt;by assigning&lt;STRONG&gt;&amp;nbsp;&lt;SPAN&gt;CreateOrOverwrite&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.powerbi.com/v1.0/myorg/imports?datasetDisplayName={datasetDisplayName}&amp;amp;nameConflict={nameConflict}&lt;/PRE&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimport#importconflicthandlermode" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimport#importconflicthandlermode&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 06:11:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/770506#M20455</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-08-20T06:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/771522#M20468</link>
      <description>&lt;P&gt;Looking forward to see how you solved this, please post the solution on github and share here. Thank you !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 06:43:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/771522#M20468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-21T06:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading PBIX File in C# sample (HELP!)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/771853#M20471</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100012"&gt;@Jayendran&lt;/a&gt;&amp;nbsp;, there´s no property in the dataset object to use the dataset/refresh history;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/announcing-data-refresh-apis-in-the-power-bi-service/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/blog/announcing-data-refresh-apis-in-the-power-bi-service/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I´m trying to implement this, will keep in touch...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 11:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Uploading-PBIX-File-in-C-sample-HELP/m-p/771853#M20471</guid>
      <dc:creator>brunozanoelo</dc:creator>
      <dc:date>2019-08-21T11:49:24Z</dc:date>
    </item>
  </channel>
</rss>

