<?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 The remote server returned an error: (404) not found error in powerBI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/The-remote-server-returned-an-error-404-not-found-error-in/m-p/130056#M4474</link>
    <description>&lt;P&gt;Hi There;&lt;BR /&gt;I try to impement the power bi solution located there; &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-register-app-with-azure-ad/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-register-app-with-azure-ad/&lt;/A&gt; My data resides at the power BI database (or cloud I am not sure about the location). Dataset is created successfully, however, there is a problem in &lt;EM&gt;addRowsToDataset&lt;/EM&gt; function. What am I missing? Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;class Program
{
    private static string token = string.Empty;

    static void Main(string[] args)
    {
        string datasetId = string.Empty;

        try
        {
            token = getAuthenticationToken();

            datasetId = getDatasetId();

            createDataset();

            addRowsToDataset(datasetId, "CorporationProduct");

            Console.ReadKey();
        }
        catch (Exception ex)
        {
            Console.WriteLine("An error occured in main function. ");
            Console.WriteLine(ex.Message);
        }

    }

    private static string getAuthenticationToken()
    {
        string token = null;


        // TODO: Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory -Version 2.21.301221612
        // and add using Microsoft.IdentityModel.Clients.ActiveDirectory
        try
        {

            //The client id that Azure AD created when you registered your client app.
            string clientID = "myclientid";

            //RedirectUri you used when you register your app.
            //For a client app, a redirect uri gives Azure AD more details on the application that it will authenticate.
            // You can use this redirect uri for your client app
            string redirectUri = "https://login.live.com/oauth20_desktop.srf";

            //Resource Uri for Power BI API
            string resourceUri = "https://analysis.windows.net/powerbi/api";

            //OAuth2 authority Uri
            string authorityUri = "https://login.windows.net/common/oauth2/authorize";

            //Get access token:
            // To call a Power BI REST operation, create an instance of AuthenticationContext and call AcquireToken
            // AuthenticationContext is part of the Active Directory Authentication Library NuGet package
            // To install the Active Directory Authentication Library NuGet package in Visual Studio,
            //  run "Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory" from the nuget Package Manager Console.

            // AcquireToken will acquire an Azure access token
            // Call AcquireToken to get an Azure token from Azure Active Directory token issuance endpoint
            AuthenticationContext authContext = new AuthenticationContext(authorityUri);

            token = authContext.AcquireToken(resourceUri, clientID, new Uri(redirectUri)).AccessToken;

            Console.WriteLine(token);
            Console.WriteLine("getAuthenticationToken operation is successfull.");
            Console.WriteLine("***");

        }
        catch (Exception ex)
        {
            Console.WriteLine("getAuthenticationToken encounters an error: ");
            Console.WriteLine(ex.Message);
        }


        return token;
    }

    /// &amp;lt;summary&amp;gt;
    /// Azure'de veri kümesi oluşturan yordam. 
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;remarks&amp;gt; System.Net ve using System.IO eklenmeli. &amp;lt;/remarks&amp;gt;
    private static void createDataset()
    {

        HttpWebRequest request = null;
        string datasetJson = null;
        //Push data into a Power BI dashboard
        try
        {

            string powerBIDatasetsApiUrl = "https://api.powerbi.com/v1.0/myorg/datasets";
            //POST web request to create a dataset.
            //To create a Dataset in a group, use the Groups uri: https://api.PowerBI.com/v1.0/myorg/groups/{group_id}/datasets

            request = System.Net.WebRequest.Create(powerBIDatasetsApiUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "POST";

            request.ContentType = "application/json";

            if(String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is null. ");
                return;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            //Create dataset JSON for POST request
            datasetJson = "{\"name\": \"CorporationProduct\", \"tables\": " +
                "[{\"name\": \"Product\", \"columns\": " +
                "[{ \"name\": \"ProductID\", \"dataType\": \"Int64\"}, " +
                "{ \"name\": \"Name\", \"dataType\": \"string\"}, " +
                "{ \"name\": \"Category\", \"dataType\": \"string\"}," +
                "{ \"name\": \"IsCompete\", \"dataType\": \"bool\"}," +
                "{ \"name\": \"ManufacturedOn\", \"dataType\": \"DateTime\"}" +
                "]}]}";

            request.ContentLength = datasetJson.Length;
            //POST web request
            byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(datasetJson);
            request.ContentLength = byteArray.Length;

            //Write JSON byte[] into a Stream
            using (Stream writer = request.GetRequestStream())
            {
                writer.Write(byteArray, 0, byteArray.Length);
                writer.Close();
                var response = (HttpWebResponse)request.GetResponse();

                Console.WriteLine(string.Format("Dataset {0}", response.StatusCode.ToString()));

                Console.WriteLine("createDataset operation is successfull.");
                Console.WriteLine("***");

            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("createDataset encounters an error: ");
            Console.WriteLine(ex.Message);
        }
    }

    private static string getDatasetId()
    {
        string datasetId = string.Empty;
        string powerBIDatasetsApiUrl = "https://api.powerbi.com/v1.0/myorg/datasets";

        try
        {

            //POST web request to create a dataset.
            //To create a Dataset in a group, use the Groups uri: https://api.PowerBI.com/v1.0/myorg/groups/{group_id}/datasets
            HttpWebRequest request = System.Net.WebRequest.Create(powerBIDatasetsApiUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "GET";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            if(String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is empty.");
                return null;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));


            //Get HttpWebResponse from GET request
            using (HttpWebResponse httpResponse = request.GetResponse() as System.Net.HttpWebResponse)
            {
                //Get StreamReader that holds the response stream
                using (StreamReader reader = new System.IO.StreamReader(httpResponse.GetResponseStream()))
                {
                    string responseContent = reader.ReadToEnd();

                    //TODO: Install NuGet Newtonsoft.Json package: Install-Package Newtonsoft.Json
                    //and add using Newtonsoft.Json
                    var results = JsonConvert.DeserializeObject&amp;lt;dynamic&amp;gt;(responseContent);

                    //Get the first id
                    datasetId = results["value"][0]["id"];

                    Console.WriteLine(String.Format("Dataset ID: {0}", datasetId));
                    Console.WriteLine("getDatasetId operation is successfull. ");
                    Console.WriteLine("***");

                }
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("getDatasetId encounters an error. ");
            Console.WriteLine(ex.Message);                
        }


        return datasetId;
    }

    private static void addRowsToDataset(string DatasetId, string TabloAdi)
    {
        string powerBIApiAddRowsUrl = null;
        HttpWebRequest request = null;

        try
        {

            powerBIApiAddRowsUrl = String.Format("https://api.powerbi.com/v1.0/myorg/datasets/{0}/tables/{1}/rows", DatasetId, TabloAdi);

            //POST web request to add rows.
            //To add rows to a dataset in a group, use the Groups uri: https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{dataset_id}/tables/{table_name}/rows
            //Change request method to "POST"
            request = System.Net.WebRequest.Create(powerBIApiAddRowsUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "POST";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            if(String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is empty");
                return;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            //JSON content for product row
            string rowsJson = "{\"rows\":" +
                "[{\"ProductID\":1,\"Name\":\"Adjustable Race\",\"Category\":\"Components\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}," +
                "{\"ProductID\":2,\"Name\":\"LL Crankarm\",\"Category\":\"Components\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}," +
                "{\"ProductID\":3,\"Name\":\"HL Mountain Frame - Silver\",\"Category\":\"Bikes\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}]}";

            //POST web request
            byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(rowsJson);
            request.ContentLength = byteArray.Length;

            //Write JSON byte[] into a Stream
            using (Stream writer = request.GetRequestStream())
            {
                writer.Write(byteArray, 0, byteArray.Length);

                //Here is the erroneous point: 
                var response = (HttpWebResponse)request.GetResponse();

            }

            Console.WriteLine("addRowsToDataset operation is successfull. ");
            Console.WriteLine("***");

        }
        catch (Exception ex)
        {
            Console.WriteLine("addRowsToDataset encounters an error.");
            Console.WriteLine(ex.Message);
            return;
        }


    }
}&lt;/PRE&gt;</description>
    <pubDate>Mon, 20 Feb 2017 13:26:58 GMT</pubDate>
    <dc:creator>tsozgen</dc:creator>
    <dc:date>2017-02-20T13:26:58Z</dc:date>
    <item>
      <title>The remote server returned an error: (404) not found error in powerBI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/The-remote-server-returned-an-error-404-not-found-error-in/m-p/130056#M4474</link>
      <description>&lt;P&gt;Hi There;&lt;BR /&gt;I try to impement the power bi solution located there; &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-register-app-with-azure-ad/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-register-app-with-azure-ad/&lt;/A&gt; My data resides at the power BI database (or cloud I am not sure about the location). Dataset is created successfully, however, there is a problem in &lt;EM&gt;addRowsToDataset&lt;/EM&gt; function. What am I missing? Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;class Program
{
    private static string token = string.Empty;

    static void Main(string[] args)
    {
        string datasetId = string.Empty;

        try
        {
            token = getAuthenticationToken();

            datasetId = getDatasetId();

            createDataset();

            addRowsToDataset(datasetId, "CorporationProduct");

            Console.ReadKey();
        }
        catch (Exception ex)
        {
            Console.WriteLine("An error occured in main function. ");
            Console.WriteLine(ex.Message);
        }

    }

    private static string getAuthenticationToken()
    {
        string token = null;


        // TODO: Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory -Version 2.21.301221612
        // and add using Microsoft.IdentityModel.Clients.ActiveDirectory
        try
        {

            //The client id that Azure AD created when you registered your client app.
            string clientID = "myclientid";

            //RedirectUri you used when you register your app.
            //For a client app, a redirect uri gives Azure AD more details on the application that it will authenticate.
            // You can use this redirect uri for your client app
            string redirectUri = "https://login.live.com/oauth20_desktop.srf";

            //Resource Uri for Power BI API
            string resourceUri = "https://analysis.windows.net/powerbi/api";

            //OAuth2 authority Uri
            string authorityUri = "https://login.windows.net/common/oauth2/authorize";

            //Get access token:
            // To call a Power BI REST operation, create an instance of AuthenticationContext and call AcquireToken
            // AuthenticationContext is part of the Active Directory Authentication Library NuGet package
            // To install the Active Directory Authentication Library NuGet package in Visual Studio,
            //  run "Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory" from the nuget Package Manager Console.

            // AcquireToken will acquire an Azure access token
            // Call AcquireToken to get an Azure token from Azure Active Directory token issuance endpoint
            AuthenticationContext authContext = new AuthenticationContext(authorityUri);

            token = authContext.AcquireToken(resourceUri, clientID, new Uri(redirectUri)).AccessToken;

            Console.WriteLine(token);
            Console.WriteLine("getAuthenticationToken operation is successfull.");
            Console.WriteLine("***");

        }
        catch (Exception ex)
        {
            Console.WriteLine("getAuthenticationToken encounters an error: ");
            Console.WriteLine(ex.Message);
        }


        return token;
    }

    /// &amp;lt;summary&amp;gt;
    /// Azure'de veri kümesi oluşturan yordam. 
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;remarks&amp;gt; System.Net ve using System.IO eklenmeli. &amp;lt;/remarks&amp;gt;
    private static void createDataset()
    {

        HttpWebRequest request = null;
        string datasetJson = null;
        //Push data into a Power BI dashboard
        try
        {

            string powerBIDatasetsApiUrl = "https://api.powerbi.com/v1.0/myorg/datasets";
            //POST web request to create a dataset.
            //To create a Dataset in a group, use the Groups uri: https://api.PowerBI.com/v1.0/myorg/groups/{group_id}/datasets

            request = System.Net.WebRequest.Create(powerBIDatasetsApiUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "POST";

            request.ContentType = "application/json";

            if(String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is null. ");
                return;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            //Create dataset JSON for POST request
            datasetJson = "{\"name\": \"CorporationProduct\", \"tables\": " +
                "[{\"name\": \"Product\", \"columns\": " +
                "[{ \"name\": \"ProductID\", \"dataType\": \"Int64\"}, " +
                "{ \"name\": \"Name\", \"dataType\": \"string\"}, " +
                "{ \"name\": \"Category\", \"dataType\": \"string\"}," +
                "{ \"name\": \"IsCompete\", \"dataType\": \"bool\"}," +
                "{ \"name\": \"ManufacturedOn\", \"dataType\": \"DateTime\"}" +
                "]}]}";

            request.ContentLength = datasetJson.Length;
            //POST web request
            byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(datasetJson);
            request.ContentLength = byteArray.Length;

            //Write JSON byte[] into a Stream
            using (Stream writer = request.GetRequestStream())
            {
                writer.Write(byteArray, 0, byteArray.Length);
                writer.Close();
                var response = (HttpWebResponse)request.GetResponse();

                Console.WriteLine(string.Format("Dataset {0}", response.StatusCode.ToString()));

                Console.WriteLine("createDataset operation is successfull.");
                Console.WriteLine("***");

            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("createDataset encounters an error: ");
            Console.WriteLine(ex.Message);
        }
    }

    private static string getDatasetId()
    {
        string datasetId = string.Empty;
        string powerBIDatasetsApiUrl = "https://api.powerbi.com/v1.0/myorg/datasets";

        try
        {

            //POST web request to create a dataset.
            //To create a Dataset in a group, use the Groups uri: https://api.PowerBI.com/v1.0/myorg/groups/{group_id}/datasets
            HttpWebRequest request = System.Net.WebRequest.Create(powerBIDatasetsApiUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "GET";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            if(String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is empty.");
                return null;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));


            //Get HttpWebResponse from GET request
            using (HttpWebResponse httpResponse = request.GetResponse() as System.Net.HttpWebResponse)
            {
                //Get StreamReader that holds the response stream
                using (StreamReader reader = new System.IO.StreamReader(httpResponse.GetResponseStream()))
                {
                    string responseContent = reader.ReadToEnd();

                    //TODO: Install NuGet Newtonsoft.Json package: Install-Package Newtonsoft.Json
                    //and add using Newtonsoft.Json
                    var results = JsonConvert.DeserializeObject&amp;lt;dynamic&amp;gt;(responseContent);

                    //Get the first id
                    datasetId = results["value"][0]["id"];

                    Console.WriteLine(String.Format("Dataset ID: {0}", datasetId));
                    Console.WriteLine("getDatasetId operation is successfull. ");
                    Console.WriteLine("***");

                }
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("getDatasetId encounters an error. ");
            Console.WriteLine(ex.Message);                
        }


        return datasetId;
    }

    private static void addRowsToDataset(string DatasetId, string TabloAdi)
    {
        string powerBIApiAddRowsUrl = null;
        HttpWebRequest request = null;

        try
        {

            powerBIApiAddRowsUrl = String.Format("https://api.powerbi.com/v1.0/myorg/datasets/{0}/tables/{1}/rows", DatasetId, TabloAdi);

            //POST web request to add rows.
            //To add rows to a dataset in a group, use the Groups uri: https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{dataset_id}/tables/{table_name}/rows
            //Change request method to "POST"
            request = System.Net.WebRequest.Create(powerBIApiAddRowsUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "POST";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            if(String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is empty");
                return;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            //JSON content for product row
            string rowsJson = "{\"rows\":" +
                "[{\"ProductID\":1,\"Name\":\"Adjustable Race\",\"Category\":\"Components\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}," +
                "{\"ProductID\":2,\"Name\":\"LL Crankarm\",\"Category\":\"Components\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}," +
                "{\"ProductID\":3,\"Name\":\"HL Mountain Frame - Silver\",\"Category\":\"Bikes\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}]}";

            //POST web request
            byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(rowsJson);
            request.ContentLength = byteArray.Length;

            //Write JSON byte[] into a Stream
            using (Stream writer = request.GetRequestStream())
            {
                writer.Write(byteArray, 0, byteArray.Length);

                //Here is the erroneous point: 
                var response = (HttpWebResponse)request.GetResponse();

            }

            Console.WriteLine("addRowsToDataset operation is successfull. ");
            Console.WriteLine("***");

        }
        catch (Exception ex)
        {
            Console.WriteLine("addRowsToDataset encounters an error.");
            Console.WriteLine(ex.Message);
            return;
        }


    }
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Feb 2017 13:26:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/The-remote-server-returned-an-error-404-not-found-error-in/m-p/130056#M4474</guid>
      <dc:creator>tsozgen</dc:creator>
      <dc:date>2017-02-20T13:26:58Z</dc:date>
    </item>
    <item>
      <title>The remote server returned an error: (404) not found error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/The-remote-server-returned-an-error-404-not-found-error-in/m-p/130060#M4482</link>
      <description>&lt;P&gt;Hi There;&lt;BR /&gt;I try to impement the power bi solution located there; &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-register-app-with-azure-ad/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-register-app-with-azure-ad/&lt;/A&gt; My data resides at the&amp;nbsp;azure cloud.&amp;nbsp;Dataset is created successfully, however, there is a problem in &lt;EM&gt;addRowsToDataset&lt;/EM&gt; function. What am I missing? Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;class Program
{
    private static string token = string.Empty;

    static void Main(string[] args)
    {
        string datasetId = string.Empty;

        try
        {
            token = getAuthenticationToken();

            datasetId = getDatasetId();

            createDataset();

            addRowsToDataset(datasetId, "CorporationProduct");

            Console.ReadKey();
        }
        catch (Exception ex)
        {
            Console.WriteLine("An error occured in main function. ");
            Console.WriteLine(ex.Message);
        }

    }

    private static string getAuthenticationToken()
    {
        string token = null;


        // TODO: Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory -Version 2.21.301221612
        // and add using Microsoft.IdentityModel.Clients.ActiveDirectory
        try
        {

            //The client id that Azure AD created when you registered your client app.
            string clientID = "myclientid";

            //RedirectUri you used when you register your app.
            //For a client app, a redirect uri gives Azure AD more details on the application that it will authenticate.
            // You can use this redirect uri for your client app
            string redirectUri = "https://login.live.com/oauth20_desktop.srf";

            //Resource Uri for Power BI API
            string resourceUri = "https://analysis.windows.net/powerbi/api";

            //OAuth2 authority Uri
            string authorityUri = "https://login.windows.net/common/oauth2/authorize";

            //Get access token:
            // To call a Power BI REST operation, create an instance of AuthenticationContext and call AcquireToken
            // AuthenticationContext is part of the Active Directory Authentication Library NuGet package
            // To install the Active Directory Authentication Library NuGet package in Visual Studio,
            //  run "Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory" from the nuget Package Manager Console.

            // AcquireToken will acquire an Azure access token
            // Call AcquireToken to get an Azure token from Azure Active Directory token issuance endpoint
            AuthenticationContext authContext = new AuthenticationContext(authorityUri);

            token = authContext.AcquireToken(resourceUri, clientID, new Uri(redirectUri)).AccessToken;

            Console.WriteLine(token);
            Console.WriteLine("getAuthenticationToken operation is successfull.");
            Console.WriteLine("***");

        }
        catch (Exception ex)
        {
            Console.WriteLine("getAuthenticationToken encounters an error: ");
            Console.WriteLine(ex.Message);
        }


        return token;
    }

    /// &amp;lt;summary&amp;gt;
    /// Azure'de veri kümesi oluşturan yordam. 
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;remarks&amp;gt; System.Net ve using System.IO eklenmeli. &amp;lt;/remarks&amp;gt;
    private static void createDataset()
    {

        HttpWebRequest request = null;
        string datasetJson = null;
        //Push data into a Power BI dashboard
        try
        {

            string powerBIDatasetsApiUrl = "https://api.powerbi.com/v1.0/myorg/datasets";
            //POST web request to create a dataset.
            //To create a Dataset in a group, use the Groups uri: https://api.PowerBI.com/v1.0/myorg/groups/{group_id}/datasets

            request = System.Net.WebRequest.Create(powerBIDatasetsApiUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "POST";

            request.ContentType = "application/json";

            if(String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is null. ");
                return;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            //Create dataset JSON for POST request
            datasetJson = "{\"name\": \"CorporationProduct\", \"tables\": " +
                "[{\"name\": \"Product\", \"columns\": " +
                "[{ \"name\": \"ProductID\", \"dataType\": \"Int64\"}, " +
                "{ \"name\": \"Name\", \"dataType\": \"string\"}, " +
                "{ \"name\": \"Category\", \"dataType\": \"string\"}," +
                "{ \"name\": \"IsCompete\", \"dataType\": \"bool\"}," +
                "{ \"name\": \"ManufacturedOn\", \"dataType\": \"DateTime\"}" +
                "]}]}";

            request.ContentLength = datasetJson.Length;
            //POST web request
            byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(datasetJson);
            request.ContentLength = byteArray.Length;

            //Write JSON byte[] into a Stream
            using (Stream writer = request.GetRequestStream())
            {
                writer.Write(byteArray, 0, byteArray.Length);
                writer.Close();
                var response = (HttpWebResponse)request.GetResponse();

                Console.WriteLine(string.Format("Dataset {0}", response.StatusCode.ToString()));

                Console.WriteLine("createDataset operation is successfull.");
                Console.WriteLine("***");

            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("createDataset encounters an error: ");
            Console.WriteLine(ex.Message);
        }
    }

    private static string getDatasetId()
    {
        string datasetId = string.Empty;
        string powerBIDatasetsApiUrl = "https://api.powerbi.com/v1.0/myorg/datasets";

        try
        {

            //POST web request to create a dataset.
            //To create a Dataset in a group, use the Groups uri: https://api.PowerBI.com/v1.0/myorg/groups/{group_id}/datasets
            HttpWebRequest request = System.Net.WebRequest.Create(powerBIDatasetsApiUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "GET";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            if(String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is empty.");
                return null;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));


            //Get HttpWebResponse from GET request
            using (HttpWebResponse httpResponse = request.GetResponse() as System.Net.HttpWebResponse)
            {
                //Get StreamReader that holds the response stream
                using (StreamReader reader = new System.IO.StreamReader(httpResponse.GetResponseStream()))
                {
                    string responseContent = reader.ReadToEnd();

                    //TODO: Install NuGet Newtonsoft.Json package: Install-Package Newtonsoft.Json
                    //and add using Newtonsoft.Json
                    var results = JsonConvert.DeserializeObject&amp;lt;dynamic&amp;gt;(responseContent);

                    //Get the first id
                    datasetId = results["value"][0]["id"];

                    Console.WriteLine(String.Format("Dataset ID: {0}", datasetId));
                    Console.WriteLine("getDatasetId operation is successfull. ");
                    Console.WriteLine("***");

                }
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("getDatasetId encounters an error. ");
            Console.WriteLine(ex.Message);                
        }


        return datasetId;
    }

    private static void addRowsToDataset(string DatasetId, string TabloAdi)
    {
        string powerBIApiAddRowsUrl = null;
        HttpWebRequest request = null;

        try
        {

            powerBIApiAddRowsUrl = String.Format("https://api.powerbi.com/v1.0/myorg/datasets/{0}/tables/{1}/rows", DatasetId, TabloAdi);

            //POST web request to add rows.
            //To add rows to a dataset in a group, use the Groups uri: https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{dataset_id}/tables/{table_name}/rows
            //Change request method to "POST"
            request = System.Net.WebRequest.Create(powerBIApiAddRowsUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "POST";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            if(String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is empty");
                return;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            //JSON content for product row
            string rowsJson = "{\"rows\":" +
                "[{\"ProductID\":1,\"Name\":\"Adjustable Race\",\"Category\":\"Components\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}," +
                "{\"ProductID\":2,\"Name\":\"LL Crankarm\",\"Category\":\"Components\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}," +
                "{\"ProductID\":3,\"Name\":\"HL Mountain Frame - Silver\",\"Category\":\"Bikes\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}]}";

            //POST web request
            byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(rowsJson);
            request.ContentLength = byteArray.Length;

            //Write JSON byte[] into a Stream
            using (Stream writer = request.GetRequestStream())
            {
                writer.Write(byteArray, 0, byteArray.Length);

                //Here is the erroneous point: 
                var response = (HttpWebResponse)request.GetResponse();

            }

            Console.WriteLine("addRowsToDataset operation is successfull. ");
            Console.WriteLine("***");

        }
        catch (Exception ex)
        {
            Console.WriteLine("addRowsToDataset encounters an error.");
            Console.WriteLine(ex.Message);
            return;
        }


    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 13:39:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/The-remote-server-returned-an-error-404-not-found-error-in/m-p/130060#M4482</guid>
      <dc:creator>tsozgen</dc:creator>
      <dc:date>2017-02-20T13:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: The remote server returned an error: (404) not found error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/The-remote-server-returned-an-error-404-not-found-error-in/m-p/130678#M4490</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/21995"&gt;@tsozgen&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The 404 error is because the passed table name is incorrect.&amp;nbsp;CorporationProduct is the dataset name, while in your case, the table name should be product.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;addRowsToDataset(datasetId, "&lt;STRONG&gt;CorporationProduct&lt;/STRONG&gt;");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should also use a foreach loop in the getDataSetID function, otherwise when there're already other datasets, you code would go to error as well.&lt;/P&gt;
&lt;PRE&gt;using Newtonsoft.Json;
using System;
using System.IO;
using System.Net;

class Program
{
    private static string token = string.Empty;

    static void Main(string[] args)
    {
        string datasetId = string.Empty;

        try
        {
            &lt;STRONG&gt;token = getAuthenticationToken();

            createDataset();

            datasetId = getDatasetId();

            

            addRowsToDataset(datasetId, "Product");

            Console.ReadKey();&lt;/STRONG&gt;
        }
        catch (Exception ex)
        {
            Console.WriteLine("An error occured in main function. ");
            Console.WriteLine(ex.Message);
        }

    }

    private static string getAuthenticationToken()
    {
        string token = null;


        // TODO: Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory -Version 2.21.301221612
        // and add using Microsoft.IdentityModel.Clients.ActiveDirectory
        try
        {

            //The client id that Azure AD created when you registered your client app.
            string clientID = "myclientid";

            //RedirectUri you used when you register your app.
            //For a client app, a redirect uri gives Azure AD more details on the application that it will authenticate.
            // You can use this redirect uri for your client app
            string redirectUri = "https://login.live.com/oauth20_desktop.srf";

            //Resource Uri for Power BI API
            string resourceUri = "https://analysis.windows.net/powerbi/api";

            //OAuth2 authority Uri
            string authorityUri = "https://login.windows.net/common/oauth2/authorize";

            //Get access token:
            // To call a Power BI REST operation, create an instance of AuthenticationContext and call AcquireToken
            // AuthenticationContext is part of the Active Directory Authentication Library NuGet package
            // To install the Active Directory Authentication Library NuGet package in Visual Studio,
            //  run "Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory" from the nuget Package Manager Console.

            // AcquireToken will acquire an Azure access token
            // Call AcquireToken to get an Azure token from Azure Active Directory token issuance endpoint
            AuthenticationContext authContext = new AuthenticationContext(authorityUri);

            token = authContext.AcquireToken(resourceUri, clientID, new Uri(redirectUri)).AccessToken;
            Console.WriteLine(token);
            Console.WriteLine("getAuthenticationToken operation is successfull.");
            Console.WriteLine("***");

        }
        catch (Exception ex)
        {
            Console.WriteLine("getAuthenticationToken encounters an error: ");
            Console.WriteLine(ex.Message);
        }


        return token;
    }

    /// &amp;lt;summary&amp;gt;
    /// Azure'de veri kümesi oluşturan yordam. 
    /// &amp;lt;/summary&amp;gt;
    /// &amp;lt;remarks&amp;gt; System.Net ve using System.IO eklenmeli. &amp;lt;/remarks&amp;gt;
    private static void createDataset()
    {

        HttpWebRequest request = null;
        string datasetJson = null;
        //Push data into a Power BI dashboard
        try
        {

            string powerBIDatasetsApiUrl = "https://api.powerbi.com/v1.0/myorg/datasets";
            //POST web request to create a dataset.
            //To create a Dataset in a group, use the Groups uri: https://api.PowerBI.com/v1.0/myorg/groups/{group_id}/datasets

            request = System.Net.WebRequest.Create(powerBIDatasetsApiUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "POST";

            request.ContentType = "application/json";

            if (String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is null. ");
                return;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            //Create dataset JSON for POST request
            datasetJson = "{\"name\": \"CorporationProduct\", \"tables\": " +
                "[{\"name\": \"Product\", \"columns\": " +
                "[{ \"name\": \"ProductID\", \"dataType\": \"Int64\"}, " +
                "{ \"name\": \"Name\", \"dataType\": \"string\"}, " +
                "{ \"name\": \"Category\", \"dataType\": \"string\"}," +
                "{ \"name\": \"IsCompete\", \"dataType\": \"bool\"}," +
                "{ \"name\": \"ManufacturedOn\", \"dataType\": \"DateTime\"}" +
                "]}]}";

            request.ContentLength = datasetJson.Length;
            //POST web request
            byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(datasetJson);
            request.ContentLength = byteArray.Length;

            //Write JSON byte[] into a Stream
            using (Stream writer = request.GetRequestStream())
            {
                writer.Write(byteArray, 0, byteArray.Length);
                writer.Close();
                var response = (HttpWebResponse)request.GetResponse();

                Console.WriteLine(string.Format("Dataset {0}", response.StatusCode.ToString()));

                Console.WriteLine("createDataset operation is successfull.");
                Console.WriteLine("***");

            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("createDataset encounters an error: ");
            Console.WriteLine(ex.Message);
        }
    }

    private static string getDatasetId()
    {
        string datasetId = string.Empty;
        string powerBIDatasetsApiUrl = "https://api.powerbi.com/v1.0/myorg/datasets";

        try
        {

            //POST web request to create a dataset.
            //To create a Dataset in a group, use the Groups uri: https://api.PowerBI.com/v1.0/myorg/groups/{group_id}/datasets
            HttpWebRequest request = System.Net.WebRequest.Create(powerBIDatasetsApiUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "GET";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            if (String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is empty.");
                return null;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));


            //Get HttpWebResponse from GET request
            using (HttpWebResponse httpResponse = request.GetResponse() as System.Net.HttpWebResponse)
            {
                //Get StreamReader that holds the response stream
                using (StreamReader reader = new System.IO.StreamReader(httpResponse.GetResponseStream()))
                {
                    string responseContent = reader.ReadToEnd();

                    //TODO: Install NuGet Newtonsoft.Json package: Install-Package Newtonsoft.Json
                    //and add using Newtonsoft.Json
                    var results = JsonConvert.DeserializeObject&amp;lt;dynamic&amp;gt;(responseContent);

                    //Get the first id
                    //datasetId = results["value"][0]["id"];

                    &lt;STRONG&gt;foreach (var result in results["value"]) {
                        if (result["name"] == "CorporationProduct") {

                            datasetId = result["id"];
                        }


                    }&lt;/STRONG&gt;


                    Console.WriteLine(String.Format("Dataset ID: {0}", datasetId));
                    Console.WriteLine("getDatasetId operation is successfull. ");
                    Console.WriteLine("***");

                }
            }
        }
        catch (Exception ex)
        {
            Console.WriteLine("getDatasetId encounters an error. ");
            Console.WriteLine(ex.Message);
        }


        return datasetId;
    }

    private static void addRowsToDataset(string DatasetId, string TabloAdi)
    {
        string powerBIApiAddRowsUrl = null;
        HttpWebRequest request = null;

        try
        {

            powerBIApiAddRowsUrl = String.Format("https://api.powerbi.com/v1.0/myorg/datasets/{0}/tables/{1}/rows", DatasetId, TabloAdi);

            //POST web request to add rows.
            //To add rows to a dataset in a group, use the Groups uri: https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{dataset_id}/tables/{table_name}/rows
            //Change request method to "POST"
            request = System.Net.WebRequest.Create(powerBIApiAddRowsUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "POST";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            if (String.IsNullOrEmpty(token))
            {
                Console.WriteLine("token is empty");
                return;
            }

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            //JSON content for product row
            string rowsJson = "{\"rows\":" +
                "[{\"ProductID\":1,\"Name\":\"Adjustable Race\",\"Category\":\"Components\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}," +
                "{\"ProductID\":2,\"Name\":\"LL Crankarm\",\"Category\":\"Components\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}," +
                "{\"ProductID\":3,\"Name\":\"HL Mountain Frame - Silver\",\"Category\":\"Bikes\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}]}";

            //POST web request
            byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(rowsJson);
            request.ContentLength = byteArray.Length;

            //Write JSON byte[] into a Stream
            using (Stream writer = request.GetRequestStream())
            {
                writer.Write(byteArray, 0, byteArray.Length);

                //Here is the erroneous point: 
                var response = (HttpWebResponse)request.GetResponse();

            }

            Console.WriteLine("addRowsToDataset operation is successfull. ");
            Console.WriteLine("***");

        }
        catch (Exception ex)
        {
            Console.WriteLine("addRowsToDataset encounters an error.");
            Console.WriteLine(ex.Message);
            return;
        }


    }
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 13:31:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/The-remote-server-returned-an-error-404-not-found-error-in/m-p/130678#M4490</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-02-21T13:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: The remote server returned an error: (404) not found error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/The-remote-server-returned-an-error-404-not-found-error-in/m-p/172095#M5651</link>
      <description>&lt;P&gt;I have almost the same code and I'm trying to follow this guide:&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-register-app-with-azure-ad/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-walkthrough-push-data-register-app-with-azure-ad/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get error on line 186&lt;/P&gt;&lt;PRE&gt;var response = (HttpWebResponse)request.GetResponse();&lt;/PRE&gt;&lt;P&gt;Error message: System.Net.WebException (404)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code seem to be a bit different than yours from the Add rows to a Power BI table part:&lt;/P&gt;&lt;PRE&gt;using System;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using System.Net;
using System.IO;
using Newtonsoft.Json;

namespace walkthrough_push_data
{
    class Program
    {
        private static string token = string.Empty;

        static void Main(string[] args)
        {

            //Get an authentication access token
            token = GetToken();

            //Create a dataset in Power BI
            CreateDataset();

            //Get a dataset to add rows into a Power BI table
            string datasetId = GetDataset();

            //Add rows to a Power BI table
            AddRows(datasetId, "Product");

        }

        #region Get an authentication access token
        private static string GetToken()
        {
            // TODO: Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory -Version 2.21.301221612
            // and add using Microsoft.IdentityModel.Clients.ActiveDirectory

            //The client id that Azure AD created when you registered your client app.
            string clientID = "mycliendID";

            //RedirectUri you used when you register your app.
            //For a client app, a redirect uri gives Azure AD more details on the application that it will authenticate.
            // You can use this redirect uri for your client app
            string redirectUri = "https://login.live.com/oauth20_desktop.srf";

            //Resource Uri for Power BI API
            string resourceUri = "https://analysis.windows.net/powerbi/api";

            //OAuth2 authority Uri
            string authorityUri = "https://login.windows.net/common/oauth2/authorize";

            //Get access token:
            // To call a Power BI REST operation, create an instance of AuthenticationContext and call AcquireToken
            // AuthenticationContext is part of the Active Directory Authentication Library NuGet package
            // To install the Active Directory Authentication Library NuGet package in Visual Studio,
            //  run "Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory" from the nuget Package Manager Console.

            // AcquireToken will acquire an Azure access token
            // Call AcquireToken to get an Azure token from Azure Active Directory token issuance endpoint
            AuthenticationContext authContext = new AuthenticationContext(authorityUri);
            string token = authContext.AcquireToken(resourceUri, clientID, new Uri(redirectUri)).AccessToken;

            Console.WriteLine(token);
            Console.ReadLine();

            return token;
        }

        #endregion

        #region Create a dataset in a Power BI
        private static void CreateDataset()
        {
            //TODO: Add using System.Net and using System.IO

            string powerBIDatasetsApiUrl = "https://api.powerbi.com/v1.0/myorg/datasets";
            //POST web request to create a dataset.
            //To create a Dataset in a group, use the Groups uri: https://api.PowerBI.com/v1.0/myorg/groups/{group_id}/datasets
            HttpWebRequest request = System.Net.WebRequest.Create(powerBIDatasetsApiUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "POST";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            //Create dataset JSON for POST request
            string datasetJson = "{\"name\": \"SalesMarketing\", \"tables\": " +
                "[{\"name\": \"Product\", \"columns\": " +
                "[{ \"name\": \"ProductID\", \"dataType\": \"Int64\"}, " +
                "{ \"name\": \"Name\", \"dataType\": \"string\"}, " +
                "{ \"name\": \"Category\", \"dataType\": \"string\"}," +
                "{ \"name\": \"IsCompete\", \"dataType\": \"bool\"}," +
                "{ \"name\": \"ManufacturedOn\", \"dataType\": \"DateTime\"}" +
                "]}]}";

            //POST web request
            byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(datasetJson);
            request.ContentLength = byteArray.Length;

            //Write JSON byte[] into a Stream
            using (Stream writer = request.GetRequestStream())
            {
                writer.Write(byteArray, 0, byteArray.Length);

                var response = (HttpWebResponse)request.GetResponse();

                Console.WriteLine(string.Format("Dataset {0}", response.StatusCode.ToString()));

                Console.ReadLine();
            }
        }
        #endregion

        #region Get a dataset to add rows into a Power BI table
        private static string GetDataset()
        {
            string powerBIDatasetsApiUrl = "https://api.powerbi.com/v1.0/myorg/datasets";
            //POST web request to create a dataset.
            //To create a Dataset in a group, use the Groups uri: https://api.PowerBI.com/v1.0/myorg/groups/{group_id}/datasets
            HttpWebRequest request = System.Net.WebRequest.Create(powerBIDatasetsApiUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "GET";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            string datasetId = string.Empty;
            //Get HttpWebResponse from GET request
            using (HttpWebResponse httpResponse = request.GetResponse() as System.Net.HttpWebResponse)
            {
                //Get StreamReader that holds the response stream
                using (StreamReader reader = new System.IO.StreamReader(httpResponse.GetResponseStream()))
                {
                    string responseContent = reader.ReadToEnd();

                    //TODO: Install NuGet Newtonsoft.Json package: Install-Package Newtonsoft.Json
                    //and add using Newtonsoft.Json
                    var results = JsonConvert.DeserializeObject&amp;lt;dynamic&amp;gt;(responseContent);

                    //Get the first id
                    datasetId = results["value"][0]["id"];

                    Console.WriteLine(String.Format("Dataset ID: {0}", datasetId));
                    Console.ReadLine();

                    return datasetId;
                }
            }
        }
        #endregion

        #region Add rows to a Power BI table
        private static void AddRows(string datasetId, string tableName)
        {
            string powerBIApiAddRowsUrl = String.Format("https://api.powerbi.com/v1.0/myorg/datasets/{0}/tables/{1}/rows", datasetId, tableName);

            //POST web request to add rows.
            //To add rows to a dataset in a group, use the Groups uri: https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{dataset_id}/tables/{table_name}/rows
            //Change request method to "POST"
            HttpWebRequest request = System.Net.WebRequest.Create(powerBIApiAddRowsUrl) as System.Net.HttpWebRequest;
            request.KeepAlive = true;
            request.Method = "POST";
            request.ContentLength = 0;
            request.ContentType = "application/json";

            //Add token to the request header
            request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

            //JSON content for product row
            string rowsJson = "{\"rows\":" +
                "[{\"ProductID\":1,\"Name\":\"Adjustable Race\",\"Category\":\"Components\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}," +
                "{\"ProductID\":2,\"Name\":\"LL Crankarm\",\"Category\":\"Components\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}," +
                "{\"ProductID\":3,\"Name\":\"HL Mountain Frame - Silver\",\"Category\":\"Bikes\",\"IsCompete\":true,\"ManufacturedOn\":\"07/30/2014\"}]}";

            //POST web request
            byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(rowsJson);
            request.ContentLength = byteArray.Length;

            //Write JSON byte[] into a Stream
            using (Stream writer = request.GetRequestStream())
            {
                writer.Write(byteArray, 0, byteArray.Length);

                var response = (HttpWebResponse)request.GetResponse();

                Console.WriteLine("Rows Added");

                Console.ReadLine();
            }
        }

        #endregion
    }
}&lt;/PRE&gt;&lt;P&gt;I have copied this code from step5 page. Everything seems to be working correctly until this step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 08:20:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/The-remote-server-returned-an-error-404-not-found-error-in/m-p/172095#M5651</guid>
      <dc:creator>tondeli</dc:creator>
      <dc:date>2017-05-09T08:20:30Z</dc:date>
    </item>
  </channel>
</rss>

