<?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: I can preview data of a stored procedure from SQL Server on-prem but error when trying to write it in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026828#M4423</link>
    <description>&lt;P&gt;I think the problem is that my stored procedure returns one schema or another depending on the parameter is passed. I understand that Data Pipeline is interpreting a schema because it doesn't look at the parameter that is being passed when defining the schema, and then it actually receives the data with the other schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this is what is happening because I have modified the stored procedure so that only one parameter can be passed and it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's quite frustrating that. Data pipeline should check which parameter is being sent in order to define target schema...&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 10:09:03 GMT</pubDate>
    <dc:creator>amaaiia</dc:creator>
    <dc:date>2024-07-05T10:09:03Z</dc:date>
    <item>
      <title>I can preview data of a stored procedure from SQL Server on-prem but error when trying to write it</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4024301#M4390</link>
      <description>&lt;P&gt;I have some stored procedures in a SQL Server. I ingest this data with Data Pipeline &amp;gt;COPY activity. I have an on-prem data gateway to access the data. I can ingest the data from most of the stored procedures and write it into a lakehouse table (destination). However, I'm having issues with one of them, that I can't write it into a Lakehouse table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can PREVIEW this problematic stored procedure, that is, in SOURCE tab, I click on preview and I can see tha data at source. However, when I save+run the Data pipeline, I get an error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ErrorCode=SourceColumnIsNotDefinedInDeltaMetadata,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Source column is not defined in delta metadata. Column name: Id, file name: .,Source=Microsoft.DataTransfer.ClientLibrary,'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The destination table IS NEW. It's not and old table. I'm creating a table from start, so it doesn't exist at the begining.&lt;/P&gt;&lt;P&gt;Any ideas about why is happening this?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 06:52:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4024301#M4390</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-07-04T06:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: I can preview data of a stored procedure from SQL Server on-prem but error when trying to write it</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4025990#M4405</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="686932" data-lia-user-login="amaaiia" class="lia-mention lia-mention-user"&gt;amaaiia&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You seem to have a metadata mismatch problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When creating the new Lakehouse table, explicitly define the schema to match the source data. This can help avoid any automatic schema inference issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;activity, ensure that you have correctly mapped the source columns to the destination columns. Sometimes, automatic mapping might not work as expected, especially if there are discrepancies in column names or data types.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Consider using a Data Flow to handle the transformation and loading of data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/copy-data-activity" target="_blank"&gt;How to copy data using copy activity - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 02:34:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4025990#M4405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T02:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: I can preview data of a stored procedure from SQL Server on-prem but error when trying to write it</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026393#M4414</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think Dataflow is not available for stored procedures..&lt;/P&gt;&lt;P&gt;With Mapping option it works, however, I can't use it because the ingest of the tables is inside a loop for me, so I can't specify the schema of each table I read. That is, I don't have a COPY activity for each table, but I have a loop with a COPY activity inside that I use to ingest all the tables through parameters...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this mismatch an error related to data in source or is it a problem from fabric? I'd like to solve the issue if it might be something about source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 06:33:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026393#M4414</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-07-05T06:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: I can preview data of a stored procedure from SQL Server on-prem but error when trying to write it</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026543#M4418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="686932" data-lia-user-login="amaaiia" class="lia-mention lia-mention-user"&gt;amaaiia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message "Source column not defined in incremental metadata" indicates that the column ID in the source data does not match the expected schema in the target table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because you can preview the data, you can verify that the column names and data types match the expected schema.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure there are no special characters or Spaces in the column names that could cause problems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 07:42:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026543#M4418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T07:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: I can preview data of a stored procedure from SQL Server on-prem but error when trying to write it</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026694#M4420</link>
      <description>&lt;P&gt;But I don't understand why ID in source doesn't match ID in target, because target table doesn't exists yet, so it's not possible not to match, there's not an schema created in target yet.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 08:52:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026694#M4420</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-07-05T08:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: I can preview data of a stored procedure from SQL Server on-prem but error when trying to write it</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026710#M4421</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="686932" data-lia-user-login="amaaiia" class="lia-mention lia-mention-user"&gt;amaaiia&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Even though the target table doesn’t exist initially, the Data Pipeline might be inferring the schema based on the first few rows of data.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 09:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026710#M4421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T09:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: I can preview data of a stored procedure from SQL Server on-prem but error when trying to write it</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026828#M4423</link>
      <description>&lt;P&gt;I think the problem is that my stored procedure returns one schema or another depending on the parameter is passed. I understand that Data Pipeline is interpreting a schema because it doesn't look at the parameter that is being passed when defining the schema, and then it actually receives the data with the other schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this is what is happening because I have modified the stored procedure so that only one parameter can be passed and it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's quite frustrating that. Data pipeline should check which parameter is being sent in order to define target schema...&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 10:09:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4026828#M4423</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-07-05T10:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: I can preview data of a stored procedure from SQL Server on-prem but error when trying to write it</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4028990#M4439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="686932" data-lia-user-login="amaaiia" class="lia-mention lia-mention-user"&gt;amaaiia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a good idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me if your problem is solved? If yes, please accept it as solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 00:51:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/I-can-preview-data-of-a-stored-procedure-from-SQL-Server-on-prem/m-p/4028990#M4439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T00:51:15Z</dc:date>
    </item>
  </channel>
</rss>

