<?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: consuming a variable in a copy data job? in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4266605#M6170</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="2495" data-lia-user-login="amien" class="lia-mention lia-mention-user"&gt;amien&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did &lt;STRONG&gt;KNP&lt;/STRONG&gt; reply solve your problem? If so, please mark it as the correct solution, and point out if the problem persists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Adamk Kong&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2024 08:18:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-01T08:18:03Z</dc:date>
    <item>
      <title>consuming a variable in a copy data job?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4264263#M6136</link>
      <description>&lt;P&gt;In a pipeline i run a notebook. In the end of this notebook i do a&amp;nbsp;&lt;SPAN&gt;mssparkutils.notebook.exit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the notebook is done, i have added a 'Set variable' with this setting :&amp;nbsp;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;activity(&lt;/SPAN&gt;&lt;SPAN&gt;'Notebook'&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;output&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;result&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;exitvalue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This all works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in my next step, i want to do a Copy data, using a query AND using the above mentioned variable. This part doesn't work.&lt;/P&gt;&lt;P&gt;I have this one in my query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT Week, Value FROM TableName WHERE Week =&amp;nbsp;&lt;SPAN&gt;@variables(&lt;/SPAN&gt;&lt;SPAN&gt;'Maxweek_'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this not correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 16:10:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4264263#M6136</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2024-10-30T16:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: consuming a variable in a copy data job?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4264376#M6137</link>
      <description>&lt;P&gt;I think the syntax should be something like...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@concat(
'select week, value from TableName where week = '
, variables('Maxweek_')
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;depending on how you've written your variable, you may need to enclose it in quotes, and the escaping of quotes can be confusing...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;@concat(
'select week, value from TableName where week = '
, ''''
, variables('Maxweek_')
, ''''
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So that '''' is surrounding the concat item in '' and then another '' one to escape the other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 17:41:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4264376#M6137</guid>
      <dc:creator>KNP</dc:creator>
      <dc:date>2024-10-30T17:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: consuming a variable in a copy data job?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4264425#M6139</link>
      <description>&lt;P&gt;it does work (first option) .. only thing is that it will remove the 'edit' button &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 18:31:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4264425#M6139</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2024-10-30T18:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: consuming a variable in a copy data job?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4264450#M6140</link>
      <description>&lt;P&gt;Yeah, you need to use the add dynamic content option for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 18:57:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4264450#M6140</guid>
      <dc:creator>KNP</dc:creator>
      <dc:date>2024-10-30T18:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: consuming a variable in a copy data job?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4266605#M6170</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="2495" data-lia-user-login="amien" class="lia-mention lia-mention-user"&gt;amien&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did &lt;STRONG&gt;KNP&lt;/STRONG&gt; reply solve your problem? If so, please mark it as the correct solution, and point out if the problem persists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Adamk Kong&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 08:18:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/consuming-a-variable-in-a-copy-data-job/m-p/4266605#M6170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-01T08:18:03Z</dc:date>
    </item>
  </channel>
</rss>

