<?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: Use iteration object in data copy mapping in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473297#M810</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="629400" data-lia-user-login="PanuO" class="lia-mention lia-mention-user"&gt;PanuO&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Can you please add column type to int (or respective type) and try to rerun the pipeline, let me know if you are still facing the same issue.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Add on - Please refer these videos that might help you with your issue.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=EbURwy2a8dM" target="_blank"&gt;32. Copy data from REST API which sends response in Pages using Azure data factory - YouTube&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=b27gmOufge4" target="_blank"&gt;21. Dynamic Column mapping in Copy Activity in Azure Data Factory - YouTube&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 11:17:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-12T11:17:36Z</dc:date>
    <item>
      <title>Use iteration object in data copy mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3471280#M789</link>
      <description>&lt;P&gt;I have dataflow which makes REST call to get different courses from API. For each course I need to get more detailed content. I have dataflow that uses Data Copy action to get all the courses and then I have For Each action that iterates every item received from API. I am able to do an another REST API call to get detailed course information, but the API response does not have the course identifier. I have it in the iteration item, but I cannot use it in mapping section. If I try to put item().id or {item().id} it produces an error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ErrorCode=UserErrorSchemaMappingCannotInferSinkColumnType,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Data type of column 'id' can't be inferred from 1st row of data, please specify its data type in mappings of copy activity or structure of DataSet.,Source=Microsoft.DataTransfer.Common,'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to use iteration object in mapping / should I do my dataflow in some another way? I have used the item().id in relative path, so I know it works there.&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, 11 Oct 2023 13:29:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3471280#M789</guid>
      <dc:creator>PanuO</dc:creator>
      <dc:date>2023-10-11T13:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use iteration object in data copy mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473098#M805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="629400" data-lia-user-login="PanuO" class="lia-mention lia-mention-user"&gt;PanuO&lt;/a&gt;&amp;nbsp; - Thanks for using Fabric Community,&lt;BR /&gt;&lt;BR /&gt;As I understand you are trying to fetch data using API in Fabric Data Factory with the help of pipelines.&lt;BR /&gt;&lt;BR /&gt;Can you please confirm if your pipeline design is similar to below screen shot?&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Can you please share some details along with screenshots regarding your approach and issue.&lt;BR /&gt;I would be able to help you better if you can provide these details.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 09:37:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473098#M805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-12T09:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use iteration object in data copy mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473114#M806</link>
      <description>&lt;P&gt;That is quite close. I now have datalake as input, because it is faster to test that way (I have stored data in there so I don't want to fetch it all the time when I test this).&lt;/P&gt;&lt;P&gt;The foreach has following Items setting:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;activity(&lt;/SPAN&gt;&lt;SPAN&gt;'Get courses from datalake'&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;value&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is the pipeline:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 09:47:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473114#M806</guid>
      <dc:creator>PanuO</dc:creator>
      <dc:date>2023-10-12T09:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use iteration object in data copy mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473186#M807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="629400" data-lia-user-login="PanuO" class="lia-mention lia-mention-user"&gt;PanuO&lt;/a&gt;&amp;nbsp; - Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;Can you please share a complete screenshot of for loop settings and copy data activity settings.&lt;BR /&gt;&lt;BR /&gt;Eg:&lt;BR /&gt;For Loop -&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Copy Data -&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 10:26:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473186#M807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-12T10:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use iteration object in data copy mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473210#M808</link>
      <description>&lt;P&gt;Loop:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Copy Data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;(The API has result objects inside array called results, so thats why I need to use the collection reference in mapping)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 10:29:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473210#M808</guid>
      <dc:creator>PanuO</dc:creator>
      <dc:date>2023-10-12T10:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use iteration object in data copy mapping</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473297#M810</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="629400" data-lia-user-login="PanuO" class="lia-mention lia-mention-user"&gt;PanuO&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Can you please add column type to int (or respective type) and try to rerun the pipeline, let me know if you are still facing the same issue.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Add on - Please refer these videos that might help you with your issue.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=EbURwy2a8dM" target="_blank"&gt;32. Copy data from REST API which sends response in Pages using Azure data factory - YouTube&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=b27gmOufge4" target="_blank"&gt;21. Dynamic Column mapping in Copy Activity in Azure Data Factory - YouTube&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 11:17:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-iteration-object-in-data-copy-mapping/m-p/3473297#M810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-12T11:17:36Z</dc:date>
    </item>
  </channel>
</rss>

