<?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 Failure with R script data access in power BI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Failure-with-R-script-data-access-in-power-BI/m-p/1969657#M30621</link>
    <description>&lt;P&gt;Create the following script that is below in R, where I can visualize the data of the table without problems, when trying to execute the same script in Power BI it does not show me data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Script in R&lt;/P&gt;&lt;P&gt;library (httr)&lt;/P&gt;&lt;P&gt;library (rvest)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;url_params &amp;lt;- parse_url ("&lt;A href="https://colombiacompra.gov.co/tienda-virtual-del-estado-colombiano/ordenes-compra" target="_blank"&gt;https://colombiacompra.gov.co/tienda-virtual-del-estado-colombiano/ordenes-compra&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;page = 1 &amp;amp; number_order = &amp;amp; state = &amp;amp; entity = &amp;amp; tool = IAD% 20Software% 20I% 20-% 20Microsoft &amp;amp; date_to _ =% 20 &amp;amp; date_from_ = ")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pages &amp;lt;-&lt;BR /&gt;lapply (0:11, function (x) {&lt;BR /&gt;data frame (&lt;BR /&gt;html_table (&lt;BR /&gt;read_html (x = paste0 ("&lt;A href="https://colombiacompra.gov.co/tienda-virtual-del-estado-colombiano/ordenes-compra" target="_blank"&gt;https://colombiacompra.gov.co/tienda-virtual-del-estado-colombiano/ordenes-compra&lt;/A&gt;? page =",&lt;BR /&gt;X,&lt;BR /&gt;"&amp;amp; number_order = &amp;amp; state = &amp;amp; entity = &amp;amp; tool = IAD% 20Software% 20I% 20-% 20Microsoft &amp;amp; date_to _ =% 20 &amp;amp; date_from_ ="))&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;})&lt;/P&gt;&lt;P&gt;do.call (rbind, pages)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the results of the R script are as follows:&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="Alejanchav93_0-1626846131430.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/557412iCF709771DA51334B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alejanchav93_0-1626846131430.png" alt="Alejanchav93_0-1626846131430.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When running it in Power BI through the R connector the result is the following:&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="Alejanchav93_1-1626846160414.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/557413i457A765B2FD56AEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alejanchav93_1-1626846160414.png" alt="Alejanchav93_1-1626846160414.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how I can fix it?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jul 2021 05:42:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-21T05:42:49Z</dc:date>
    <item>
      <title>Failure with R script data access in power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Failure-with-R-script-data-access-in-power-BI/m-p/1969657#M30621</link>
      <description>&lt;P&gt;Create the following script that is below in R, where I can visualize the data of the table without problems, when trying to execute the same script in Power BI it does not show me data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Script in R&lt;/P&gt;&lt;P&gt;library (httr)&lt;/P&gt;&lt;P&gt;library (rvest)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;url_params &amp;lt;- parse_url ("&lt;A href="https://colombiacompra.gov.co/tienda-virtual-del-estado-colombiano/ordenes-compra" target="_blank"&gt;https://colombiacompra.gov.co/tienda-virtual-del-estado-colombiano/ordenes-compra&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;page = 1 &amp;amp; number_order = &amp;amp; state = &amp;amp; entity = &amp;amp; tool = IAD% 20Software% 20I% 20-% 20Microsoft &amp;amp; date_to _ =% 20 &amp;amp; date_from_ = ")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pages &amp;lt;-&lt;BR /&gt;lapply (0:11, function (x) {&lt;BR /&gt;data frame (&lt;BR /&gt;html_table (&lt;BR /&gt;read_html (x = paste0 ("&lt;A href="https://colombiacompra.gov.co/tienda-virtual-del-estado-colombiano/ordenes-compra" target="_blank"&gt;https://colombiacompra.gov.co/tienda-virtual-del-estado-colombiano/ordenes-compra&lt;/A&gt;? page =",&lt;BR /&gt;X,&lt;BR /&gt;"&amp;amp; number_order = &amp;amp; state = &amp;amp; entity = &amp;amp; tool = IAD% 20Software% 20I% 20-% 20Microsoft &amp;amp; date_to _ =% 20 &amp;amp; date_from_ ="))&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;})&lt;/P&gt;&lt;P&gt;do.call (rbind, pages)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the results of the R script are as follows:&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="Alejanchav93_0-1626846131430.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/557412iCF709771DA51334B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alejanchav93_0-1626846131430.png" alt="Alejanchav93_0-1626846131430.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When running it in Power BI through the R connector the result is the following:&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="Alejanchav93_1-1626846160414.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/557413i457A765B2FD56AEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alejanchav93_1-1626846160414.png" alt="Alejanchav93_1-1626846160414.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how I can fix it?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 05:42:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Failure-with-R-script-data-access-in-power-BI/m-p/1969657#M30621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-21T05:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Failure with R script data access in power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Failure-with-R-script-data-access-in-power-BI/m-p/1975381#M30676</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found some blogs about R script as data source in Power BI Desktop.&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/R-script-as-data-source-in-Power-BI-Desktop/ba-p/43341" target="_self"&gt;R script as data source in Power BI Desktop&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-r-scripts" target="_self"&gt;Run R scripts in Power BI Desktop&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This may be the same issue like yours, I hope it can help you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/R-Script-returning-empty-table/td-p/310088" target="_self"&gt;&lt;SPAN&gt;R Script returning empty table&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rico Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 09:26:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Failure-with-R-script-data-access-in-power-BI/m-p/1975381#M30676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-23T09:26:56Z</dc:date>
    </item>
  </channel>
</rss>

