<?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 Isolated variable inside loop iteration in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Isolated-variable-inside-loop-iteration/m-p/3936177#M2084</link>
    <description>&lt;P&gt;Is there a way to have a variable that is only affected by one iteration within a loop activity? I mean, I have a variable var1 and it is updated within a loop, but I want that variable to affect only the particular iteration. That is, if I run 3 iterations at the same time, as all iterations modify the same variable var1, their values are overlapping. However, what I need is an isolated variable in each iteration. Is this possible?&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 13:13:17 GMT</pubDate>
    <dc:creator>amaaiia</dc:creator>
    <dc:date>2024-05-21T13:13:17Z</dc:date>
    <item>
      <title>Isolated variable inside loop iteration</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Isolated-variable-inside-loop-iteration/m-p/3936177#M2084</link>
      <description>&lt;P&gt;Is there a way to have a variable that is only affected by one iteration within a loop activity? I mean, I have a variable var1 and it is updated within a loop, but I want that variable to affect only the particular iteration. That is, if I run 3 iterations at the same time, as all iterations modify the same variable var1, their values are overlapping. However, what I need is an isolated variable in each iteration. Is this possible?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 13:13:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Isolated-variable-inside-loop-iteration/m-p/3936177#M2084</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-05-21T13:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Isolated variable inside loop iteration</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Isolated-variable-inside-loop-iteration/m-p/3938248#M2091</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/686932"&gt;@amaaiia&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;Data Factory pipelines don't directly support loop-specific variables. However, you can try this:&lt;/P&gt;
&lt;P data-sourcepos="8:1-8:33"&gt;&lt;STRONG&gt;Use Set Variable Activity:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL data-sourcepos="10:1-13:0"&gt;
&lt;LI data-sourcepos="10:1-10:106"&gt;Inside your loop, include a "Set Variable" activity before your logic that modifies the original &lt;CODE&gt;var1&lt;/CODE&gt;.&lt;/LI&gt;
&lt;LI data-sourcepos="11:1-11:185"&gt;Within the "Set Variable" activity, define a new variable specific to the iteration.&amp;nbsp;&lt;/LI&gt;
&lt;LI data-sourcepos="12:1-13:0"&gt;Modify this newly created variable within the loop.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This might be helpful in your case. You can refer to this link for more help:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/63316284/how-to-create-iteration-scoped-variables-inside-foreach-activities-in-azure-data" target="_blank"&gt;How to create iteration scoped variables inside ForEach activities in Azure Data Factory - Stack Overflow&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please let me know if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 06:44:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Isolated-variable-inside-loop-iteration/m-p/3938248#M2091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-22T06:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Isolated variable inside loop iteration</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Isolated-variable-inside-loop-iteration/m-p/3938485#M2093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand. If I define new variable inside loop, imagine var2, var2 will be updated in each iteration too.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 07:43:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Isolated-variable-inside-loop-iteration/m-p/3938485#M2093</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-05-22T07:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Isolated variable inside loop iteration</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Isolated-variable-inside-loop-iteration/m-p/3938583#M2094</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/686932"&gt;@amaaiia&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Data Factory pipelines don't directly support loop-specific variables.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 08:18:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Isolated-variable-inside-loop-iteration/m-p/3938583#M2094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-22T08:18:17Z</dc:date>
    </item>
  </channel>
</rss>

