<?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 Handling Output Parameter for Identity Field in Stored Procedure with ADF in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Handling-Output-Parameter-for-Identity-Field-in-Stored-Procedure/m-p/4067305#M4770</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm currently working on a data migration task using Azure Data Factory (ADF) and encountering an issue with handling an output parameter that is also an identity field in a SQL Server stored procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Objective:&lt;/P&gt;&lt;P&gt;Migrate data from a JSON file stored in Azure Blob Storage to a SQL Server table using a stored procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Context:&lt;/P&gt;&lt;P&gt;Source: JSON file stored in Azure Blob Storage.&lt;/P&gt;&lt;P&gt;ADF Activities:Lookup1 Activity:&lt;/P&gt;&lt;P&gt;Successfully fetches data from the JSON file.&lt;/P&gt;&lt;P&gt;Stored Procedure Activity: Uses a stored procedure ([dbo].[Trip]) to insert data into the SQL Server table.&lt;/P&gt;&lt;P&gt;Stored Procedure Details:The stored procedure inserts records into the table and generates an ID field as an identity column.&lt;/P&gt;&lt;P&gt;The ID field is also defined as an output parameter in the stored procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue: The Stored Procedure activity fails due to the output parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I handle the output parameter (which is also an identity field) in the stored procedure when using Azure Data Factory? Is there a workaround to successfully execute the stored procedure and retrieve the generated identity value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insights or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 15:06:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-29T15:06:47Z</dc:date>
    <item>
      <title>Handling Output Parameter for Identity Field in Stored Procedure with ADF</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Handling-Output-Parameter-for-Identity-Field-in-Stored-Procedure/m-p/4067305#M4770</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm currently working on a data migration task using Azure Data Factory (ADF) and encountering an issue with handling an output parameter that is also an identity field in a SQL Server stored procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Objective:&lt;/P&gt;&lt;P&gt;Migrate data from a JSON file stored in Azure Blob Storage to a SQL Server table using a stored procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Context:&lt;/P&gt;&lt;P&gt;Source: JSON file stored in Azure Blob Storage.&lt;/P&gt;&lt;P&gt;ADF Activities:Lookup1 Activity:&lt;/P&gt;&lt;P&gt;Successfully fetches data from the JSON file.&lt;/P&gt;&lt;P&gt;Stored Procedure Activity: Uses a stored procedure ([dbo].[Trip]) to insert data into the SQL Server table.&lt;/P&gt;&lt;P&gt;Stored Procedure Details:The stored procedure inserts records into the table and generates an ID field as an identity column.&lt;/P&gt;&lt;P&gt;The ID field is also defined as an output parameter in the stored procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue: The Stored Procedure activity fails due to the output parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I handle the output parameter (which is also an identity field) in the stored procedure when using Azure Data Factory? Is there a workaround to successfully execute the stored procedure and retrieve the generated identity value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insights or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 15:06:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Handling-Output-Parameter-for-Identity-Field-in-Stored-Procedure/m-p/4067305#M4770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-29T15:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Output Parameter for Identity Field in Stored Procedure with ADF</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Handling-Output-Parameter-for-Identity-Field-in-Stored-Procedure/m-p/4067432#M4772</link>
      <description>&lt;P&gt;You can use Lookup activity or script activity to execute a Stored procedure with an output value.&lt;/P&gt;
&lt;P&gt;SP activity is only for SP execution with no output value&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 16:13:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Handling-Output-Parameter-for-Identity-Field-in-Stored-Procedure/m-p/4067432#M4772</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-07-29T16:13:32Z</dc:date>
    </item>
  </channel>
</rss>

