<?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: View API response in copy activity in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/View-API-response-in-copy-activity/m-p/4138282#M5275</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Attaching the output from web activity&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 19:32:23 GMT</pubDate>
    <dc:creator>nkailasamurthy</dc:creator>
    <dc:date>2024-09-06T19:32:23Z</dc:date>
    <item>
      <title>View API response in copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/View-API-response-in-copy-activity/m-p/4138277#M5274</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So here is my situation&lt;/P&gt;&lt;P&gt;I'm using a copy activity(Data pipeline - Fabric) to make an api call which gives me a json response which has to be parsed and loaded to a table in lakehouse. I have tried creating a file and a table from the response but i keep getting this error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"ErrorCode=JsonInvalidDataFormat,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Error occurred when deserializing source JSON file&lt;BR /&gt;''. Check if the data is in valid JSON object format"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont know how to view the json response from this activity to see what is wrong with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I make this API call using Web activity and see the output from the run history, I see nothing wrong with it. I then created a json file in lakehouse with the json response from web activity and used this as input for copy activity and it parses it just fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my questions are&lt;/P&gt;&lt;P&gt;1. How do I view the JSON response from copy activity?&lt;/P&gt;&lt;P&gt;2. What is the best approach for this task prefereably without notebooks ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 19:27:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/View-API-response-in-copy-activity/m-p/4138277#M5274</guid>
      <dc:creator>nkailasamurthy</dc:creator>
      <dc:date>2024-09-06T19:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: View API response in copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/View-API-response-in-copy-activity/m-p/4138282#M5275</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Attaching the output from web activity&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 19:32:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/View-API-response-in-copy-activity/m-p/4138282#M5275</guid>
      <dc:creator>nkailasamurthy</dc:creator>
      <dc:date>2024-09-06T19:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: View API response in copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/View-API-response-in-copy-activity/m-p/4139258#M5284</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="802722" data-lia-user-login="nkailasamurthy" class="lia-mention lia-mention-user"&gt;nkailasamurthy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are your source and sink settings for the copy activity? Which connection type are you using (Web or Web v2 or another)?&lt;BR /&gt;&lt;BR /&gt;For the JSON response, you could use the Preview data in the source settings to view the input. You can see if anything is broken there.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 11:16:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/View-API-response-in-copy-activity/m-p/4139258#M5284</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2024-09-08T11:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: View API response in copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/View-API-response-in-copy-activity/m-p/4153895#M5421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="802722" data-lia-user-login="nkailasamurthy" class="lia-mention lia-mention-user"&gt;nkailasamurthy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Below are my thoughts.&lt;/P&gt;
&lt;P&gt;Firstly, to view the JSON response from a copy activity in Microsoft Fabric, you can follow these steps:&lt;/P&gt;
&lt;P&gt;1. Ensure that debugging is enabled for your pipeline. This will allow you to see detailed logs and outputs.&lt;/P&gt;
&lt;P&gt;2. Execute your pipeline with the copy activity.&lt;/P&gt;
&lt;P&gt;3. After the pipeline run, go to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Monitor&amp;nbsp;tab in the Data Factory. Here, you can see the run history of your pipeline.&lt;/P&gt;
&lt;P&gt;3. Click on the specific copy activity within the pipeline run. You should see detailed logs and outputs, including the JSON response if the activity was successful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly, best Approach for Parsing and Loading JSON to Lakehouse, you can follow theses steps:&lt;/P&gt;
&lt;P&gt;1. Web Activity: Use a web activity to make the API call and capture the JSON response.&lt;BR /&gt;2. Store JSON in Lakehouse: Save the JSON response to a file in your lakehouse.&lt;BR /&gt;3. Copy Activity: Use a copy activity to read the JSON file from the lakehouse and load it into your table.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 06:54:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/View-API-response-in-copy-activity/m-p/4153895#M5421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-17T06:54:19Z</dc:date>
    </item>
  </channel>
</rss>

