<?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 Error retrieving data from a data source with stored procedure in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4613428#M7294</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Pipeline &amp;gt; Copy data activity &amp;gt; Source SQL Server &amp;gt; Use query = Stored procedure&lt;/P&gt;&lt;P&gt;(on-premises connection)&lt;/P&gt;&lt;P&gt;Procedure:&amp;nbsp;&lt;SPAN&gt;[PBI].[sp_Rergher_HI_AZIDV_OPK_Ipaasg] (if it matters)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Procedure is made by third party&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Preview data works correctly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error appears during pipeline Run process:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failure happened on 'Source' side. ErrorCode=SqlOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A database operation failed with the following error: 'Invalid object name '#AAADB_N_P'.',Source=,''Type=System.Data.SqlClient.SqlException,Message=Invalid object name '#AAADB_N_P'.,Source=.Net SqlClient Data Provider,SqlErrorNumber=208,Class=16,ErrorCode=-2146232060,State=0,Errors=[{Class=16,Number=208,State=0,Message=Invalid object name '#AAADB_N_P'.,},],'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess that #AAADB_N_P is a temporary table for the procedure on the server side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is a problem and how to solve it?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Mar 2025 06:14:53 GMT</pubDate>
    <dc:creator>JānisB</dc:creator>
    <dc:date>2025-03-18T06:14:53Z</dc:date>
    <item>
      <title>Error retrieving data from a data source with stored procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4613428#M7294</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Pipeline &amp;gt; Copy data activity &amp;gt; Source SQL Server &amp;gt; Use query = Stored procedure&lt;/P&gt;&lt;P&gt;(on-premises connection)&lt;/P&gt;&lt;P&gt;Procedure:&amp;nbsp;&lt;SPAN&gt;[PBI].[sp_Rergher_HI_AZIDV_OPK_Ipaasg] (if it matters)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Procedure is made by third party&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Preview data works correctly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error appears during pipeline Run process:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failure happened on 'Source' side. ErrorCode=SqlOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A database operation failed with the following error: 'Invalid object name '#AAADB_N_P'.',Source=,''Type=System.Data.SqlClient.SqlException,Message=Invalid object name '#AAADB_N_P'.,Source=.Net SqlClient Data Provider,SqlErrorNumber=208,Class=16,ErrorCode=-2146232060,State=0,Errors=[{Class=16,Number=208,State=0,Message=Invalid object name '#AAADB_N_P'.,},],'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess that #AAADB_N_P is a temporary table for the procedure on the server side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is a problem and how to solve it?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 06:14:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4613428#M7294</guid>
      <dc:creator>JānisB</dc:creator>
      <dc:date>2025-03-18T06:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error retrieving data from a data source with stored procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4613698#M7295</link>
      <description>&lt;P&gt;Rename your stored procedure to something less fancy, like 'AAADB-N-P'&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 23:23:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4613698#M7295</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-03-17T23:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error retrieving data from a data source with stored procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4614050#M7298</link>
      <description>&lt;P&gt;'AAADB_N_P' is not the name of a procedure.&lt;/P&gt;&lt;P&gt;I guess that #AAADB_N_P is the name of a temporary table for the procedure.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Procedure:&amp;nbsp;&lt;SPAN&gt;[PBI].[sp_Rergher_HI_AZIDV_OPK_Ipaasg]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Procedure is made by a third party&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 06:09:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4614050#M7298</guid>
      <dc:creator>JānisB</dc:creator>
      <dc:date>2025-03-18T06:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error retrieving data from a data source with stored procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4614495#M7303</link>
      <description>&lt;P&gt;Try running this with a SP in the default schema.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 10:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4614495#M7303</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-03-18T10:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error retrieving data from a data source with stored procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4615763#M7308</link>
      <description>&lt;P&gt;Using&amp;nbsp;&lt;SPAN&gt;[dbo].[sp_Rergher_HI_AZIDV_OPK_Ipaasg] the same error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 07:05:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4615763#M7308</guid>
      <dc:creator>JānisB</dc:creator>
      <dc:date>2025-03-19T07:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error retrieving data from a data source with stored procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4691940#M7795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="605451" data-lia-user-login="JānisB" class="lia-mention lia-mention-user"&gt;JānisB&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 07:30:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4691940#M7795</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-05-14T07:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error retrieving data from a data source with stored procedure</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4691986#M7796</link>
      <description>&lt;P&gt;The problem is using temporary tables for the procedure. This problem is not solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution is&amp;nbsp;using table variables instead of temporary tables.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 07:46:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-retrieving-data-from-a-data-source-with-stored-procedure/m-p/4691986#M7796</guid>
      <dc:creator>JānisB</dc:creator>
      <dc:date>2025-05-14T07:46:37Z</dc:date>
    </item>
  </channel>
</rss>

