<?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: Unable to configure 'Copy data' activity for csv output from API - Marketo in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4001865#M4097</link>
    <description>&lt;P&gt;Thanks for the responses&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608020" data-lia-user-login="v-cboorla-msft" class="lia-mention lia-mention-user"&gt;v-cboorla-msft&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still don't quite understand how the ForEach approach in 2) can be implemented, as doesn't the restriction you call out in 3) still apply?&amp;nbsp;&lt;EM&gt;It's important to note that the Copy data activity in Microsoft Fabric cannot&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;directly accept output from an activity (like a variable) as its source&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;The CopyData within the Foreach Loop still appears to require a Fabric object (lakehouse) as a source?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Perhaps easier to understand the output if I save off just the 'Response' off the call in a variable.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;{ "name": "CSVResponse",&lt;BR /&gt;"value": "email,firstName,lastName,company,leadScore\npmcmcmonag@microsoft.com,Pat,McMonag,Microsoft,null\n&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;But this still makes it no easier to use CopyData within a ForEach?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2024 11:59:47 GMT</pubDate>
    <dc:creator>pmcmonag2</dc:creator>
    <dc:date>2024-06-20T11:59:47Z</dc:date>
    <item>
      <title>Unable to configure 'Copy data' activity for csv output from API - Marketo</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4000097#M4068</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt;&lt;BR /&gt;I am trying to download a csv file in a pipeline but due to the schema of the response being csv (not json) a Copy Activity fails with the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;BR /&gt;Error occurred when deserializing source JSON file ''. Check if the data is in valid JSON object format.&lt;BR /&gt;Unexpected character encountered while parsing value: e. Path '', line 0, position 0.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this is due to the file in the response actually being csv format. In postman the csv delimited response returns fine. In the format:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workarounds attempted:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Tried to add an accept header in the call in the Copy Data Activity. This does not work/allowed.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. a Added a web activity to parse the response instead. Insepcting the output on running the pipeline looks like, where #### is the csv response including headers as in postman response.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"Response":{#######}&lt;BR /&gt;"ResponseHeaders": {&lt;BR /&gt;"Connection": "keep-alive",&lt;BR /&gt;"Date": "Thu, 13 Jun 2024 13:16:10 GMT",&lt;BR /&gt;"Server": "nginx",&lt;BR /&gt;"Content-Length": "917457",&lt;BR /&gt;"Content-Disposition": "attachment; filename=file",&lt;BR /&gt;"Content-Type": "text/csv; charset=UTF-8"&lt;BR /&gt;},&lt;BR /&gt;"executionDuration": 1&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue here is there is no option in Fabric to add a sink for this output, or as in ADF created an inline dataset linked to blob storage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible to add a setVariable activity and just get the .Response array which contains the csv, but as above it cannot be output anywhere.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 b) adding a new Copy Data Activity after the set variable there is no the option to have the input as a dynamic output (inline), the source must be a Fabric object:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Can the Copy data activity be configured to take a csv response (rather than json)?&lt;/P&gt;&lt;P&gt;2. What is the Fabric alternative to creating a linked dataset to output a response or variable? (to output web activity response)&lt;/P&gt;&lt;P&gt;3. Can the Copy data activity be configured to accept output from an activity (like a variable)? (rather than a fabric entity like a warehouse/lakehouse)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 12:05:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4000097#M4068</guid>
      <dc:creator>pmcmonag2</dc:creator>
      <dc:date>2024-06-19T12:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure 'Copy data' activity for csv output from API - Marketo</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4001795#M4090</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="762586" data-lia-user-login="pmcmonag2" class="lia-mention lia-mention-user"&gt;pmcmonag2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Can the Copy data activity be configured to take a csv response (rather than json)?&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Currently, the Microsoft Fabric Copy data activity is not directly configured to take a CSV response from a REST API call. While the Copy data activity can work with structured data formats like CSV (typically delimited text formats), it requires the data to be presented in a way it can parse. Directly interpreting a raw CSV response from a web activity might necessitate additional processing.&amp;nbsp;However, it can handle delimited text files (like CSV) stored in Azure Blob Storage.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;2. What is the Fabric alternative to creating a linked dataset to output a response or variable? (to output web activity response)&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In Microsoft Fabric, you can leverage the "For Each" activity to iterate through the array of responses obtained from the Web activity. Within this loop, you can utilize a nested "Copy data" activity to process each individual CSV response as a dataset. This approach allows you to handle the CSV data effectively.&amp;nbsp;This approach allows you to treat the CSV data as a dataset within the Copy data activity.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;3. Can the Copy data activity be configured to accept output from an activity (like a variable)? (rather than a fabric entity like a warehouse/lakehouse)&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;It's important to note that the Copy data activity in Microsoft Fabric cannot directly accept output from an activity (like a variable) as its source. It requires a Fabric object (warehouse, lakehouse) as the input. Therefore, an intermediate approach like the "For Each" activity becomes necessary to process the CSV data retrieved from the Web activity.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope this information helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 11:01:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4001795#M4090</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-06-20T11:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure 'Copy data' activity for csv output from API - Marketo</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4001865#M4097</link>
      <description>&lt;P&gt;Thanks for the responses&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608020" data-lia-user-login="v-cboorla-msft" class="lia-mention lia-mention-user"&gt;v-cboorla-msft&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still don't quite understand how the ForEach approach in 2) can be implemented, as doesn't the restriction you call out in 3) still apply?&amp;nbsp;&lt;EM&gt;It's important to note that the Copy data activity in Microsoft Fabric cannot&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;directly accept output from an activity (like a variable) as its source&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;The CopyData within the Foreach Loop still appears to require a Fabric object (lakehouse) as a source?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Perhaps easier to understand the output if I save off just the 'Response' off the call in a variable.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;{ "name": "CSVResponse",&lt;BR /&gt;"value": "email,firstName,lastName,company,leadScore\npmcmcmonag@microsoft.com,Pat,McMonag,Microsoft,null\n&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;But this still makes it no easier to use CopyData within a ForEach?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 11:59:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4001865#M4097</guid>
      <dc:creator>pmcmonag2</dc:creator>
      <dc:date>2024-06-20T11:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure 'Copy data' activity for csv output from API - Marketo</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4026152#M4409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="762586" data-lia-user-login="pmcmonag2" class="lia-mention lia-mention-user"&gt;pmcmonag2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies for the inconvenience and the delay in reponse.&lt;/P&gt;
&lt;P&gt;Please reach out to our support team to gain deeper insights and explore potential solutions. It's highly recommended that you reach out to our support team. Their expertise will be invaluable in suggesting the most appropriate approach.&lt;/P&gt;
&lt;P&gt;Please go ahead and raise a support ticket to reach our support team:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.fabric.microsoft.com/support" target="_blank"&gt;https://support.fabric.microsoft.com/support&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;After creating a Support ticket please provide the ticket number as it would help us to track for more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 04:20:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4026152#M4409</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-07-05T04:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure 'Copy data' activity for csv output from API - Marketo</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4029295#M4445</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="762586" data-lia-user-login="pmcmonag2" class="lia-mention lia-mention-user"&gt;pmcmonag2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We haven’t heard from you on the last response and was just checking back to see if you've had a chance to submit a support ticket. If you have, a reference to the ticket number would be greatly appreciated. This will allow us to track the progress of your request and ensure you receive the most efficient support possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 04:34:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4029295#M4445</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-07-08T04:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure 'Copy data' activity for csv output from API - Marketo</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4034195#M4493</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608020" data-lia-user-login="v-cboorla-msft" class="lia-mention lia-mention-user"&gt;v-cboorla-msft&lt;/a&gt;&amp;nbsp;Support ticket now created - Case&amp;nbsp;2407100050001204 &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 08:58:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Unable-to-configure-Copy-data-activity-for-csv-output-from-API/m-p/4034195#M4493</guid>
      <dc:creator>pmcmonag2</dc:creator>
      <dc:date>2024-07-10T08:58:59Z</dc:date>
    </item>
  </channel>
</rss>

