<?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: Adding R code bug in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4715944#M61552</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/107617"&gt;@jaryszek&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The issue arises because R script code was manually inserted into the .tmld file of your Power BI Project (PBIP), which is not the correct or supported way to integrate R in Power BI. This causes the error "Multiple SaveChanges without transaction" due to inconsistent or invalid metadata edits. To resolve the issue, remove the manually added R.Execute code from the .tmld file, and instead add your R script using the “Get Data &amp;gt; R Script” option within Power BI Desktop. This ensures that Power BI handles the metadata and transactional integrity correctly. If the project remains corrupted, revert to a previous working version of the PBIP project.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this information was helpful, kindly mark the response as accepted and give it a thumbs-up so it can assist others as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Prasanna Kumar&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jun 2025 05:07:59 GMT</pubDate>
    <dc:creator>v-pgoloju</dc:creator>
    <dc:date>2025-06-02T05:07:59Z</dc:date>
    <item>
      <title>Adding R code bug</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4713963#M61525</link>
      <description>&lt;P&gt;hi Guys,&lt;BR /&gt;&lt;BR /&gt;I am getting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaryszek_0-1748603281663.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1272655i2861F44B5CCEAD17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaryszek_0-1748603281663.png" alt="jaryszek_0-1748603281663.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;after implementing this R code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaryszek_1-1748603306515.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1272657i421501E099BF217F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaryszek_1-1748603306515.png" alt="jaryszek_1-1748603306515.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;why ? what is happening with my bpip project file?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;full error details:&lt;BR /&gt;&lt;A href="https://sharetext.io/75f510ff" target="_self"&gt;https://sharetext.io/75f510ff&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Jacek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 11:12:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4713963#M61525</guid>
      <dc:creator>jaryszek</dc:creator>
      <dc:date>2025-05-30T11:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding R code bug</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4715944#M61552</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/107617"&gt;@jaryszek&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The issue arises because R script code was manually inserted into the .tmld file of your Power BI Project (PBIP), which is not the correct or supported way to integrate R in Power BI. This causes the error "Multiple SaveChanges without transaction" due to inconsistent or invalid metadata edits. To resolve the issue, remove the manually added R.Execute code from the .tmld file, and instead add your R script using the “Get Data &amp;gt; R Script” option within Power BI Desktop. This ensures that Power BI handles the metadata and transactional integrity correctly. If the project remains corrupted, revert to a previous working version of the PBIP project.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this information was helpful, kindly mark the response as accepted and give it a thumbs-up so it can assist others as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Prasanna Kumar&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 05:07:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4715944#M61552</guid>
      <dc:creator>v-pgoloju</dc:creator>
      <dc:date>2025-06-02T05:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding R code bug</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4716329#M61561</link>
      <description>&lt;P&gt;What should be a format for my query then?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Source = R.Execute(
"env_value &amp;lt;- Sys.getenv('COSTMGMT_CONFIG_SOURCE_PATH')
df &amp;lt;- data.frame(Path = env_value)
output &amp;lt;- list(df = df)",
null
),&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Jun 2025 07:23:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4716329#M61561</guid>
      <dc:creator>jaryszek</dc:creator>
      <dc:date>2025-06-02T07:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding R code bug</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4717951#M61586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/107617"&gt;@jaryszek&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft Fabric Forum Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find below documentation link to get data from R script&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-r-scripts" target="_blank"&gt;Run R scripts in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this code:&lt;/P&gt;
&lt;P&gt;env_value &amp;lt;- Sys.getenv('COSTMGMT_CONFIG_SOURCE_PATH')&lt;BR /&gt;df &amp;lt;- data.frame(Path = env_value)&lt;BR /&gt;df&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this information was helpful, kindly mark the response as accepted and give it a thumbs-up, so it may assist others as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Prasanna Kumar&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 09:11:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4717951#M61586</guid>
      <dc:creator>v-pgoloju</dc:creator>
      <dc:date>2025-06-03T09:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding R code bug</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4722391#M61655</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/107617"&gt;@jaryszek&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just following up to see if the solution provided was helpful in resolving your issue. Please feel free to let us know if you need any further assistance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Prasanna Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 05:22:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4722391#M61655</guid>
      <dc:creator>v-pgoloju</dc:creator>
      <dc:date>2025-06-11T05:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding R code bug</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4725075#M61697</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/107617"&gt;@jaryszek&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We wanted to kindly check in to see if everything is working as expected after trying the suggested solution. If there’s anything else we can assist with, please don’t hesitate to ask.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards,&lt;/P&gt;
&lt;P&gt;Prasanna Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 05:21:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4725075#M61697</guid>
      <dc:creator>v-pgoloju</dc:creator>
      <dc:date>2025-06-11T05:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding R code bug</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4728528#M61742</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/107617"&gt;@jaryszek&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Just a gentle reminder has your issue been resolved? If so, feel free to share the solution that worked for you, or let us know if you found a different fix.&lt;/P&gt;
&lt;P&gt;This helps close the loop on your query and supports others in the community who might face similar challenges.&lt;/P&gt;
&lt;P&gt;Thank you for your time and feedback!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Prasanna Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 10:52:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-R-code-bug/m-p/4728528#M61742</guid>
      <dc:creator>v-pgoloju</dc:creator>
      <dc:date>2025-06-11T10:52:11Z</dc:date>
    </item>
  </channel>
</rss>

