<?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: copy activity - pre-copy script in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/copy-activity-pre-copy-script/m-p/3909451#M3237</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; Couple of things for which we need details :&lt;/P&gt;
&lt;P&gt;1) what is the database (type) on which you are executing your pre copy script?&lt;/P&gt;
&lt;P&gt;2) based on the expression :&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;concat(&lt;/SPAN&gt;&lt;SPAN&gt;'delete from db_name.tbl_name where file_path = '&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Source/mydata-new/mydata-03-May-2024.csv'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;This seems to be pretty static, not sure why you used the concat here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Also as stated by Nikhil, please provide the screenshot of the log of the Copy activity so we see what SQL command was generated and actually executed&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2024 15:24:50 GMT</pubDate>
    <dc:creator>NandanHegde</dc:creator>
    <dc:date>2024-05-10T15:24:50Z</dc:date>
    <item>
      <title>copy activity - pre-copy script</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/copy-activity-pre-copy-script/m-p/3908620#M3225</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;In the pre-copy script box of the copy activity, I place this tsql statement but the pipeline gives this error.&lt;/P&gt;&lt;P&gt;any suggestions? thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my script:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;concat(&lt;/SPAN&gt;&lt;SPAN&gt;'delete from db_name.tbl_name where file_path = '&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Source/mydata-new/mydata-03-May-2024.csv'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error:&lt;/P&gt;&lt;P&gt;Message=A database operation failed with the following error: 'Incorrect syntax near 'csv'.',Source=,''Type=System.Data.SqlClient.SqlException,Message=Incorrect syntax near 'csv'&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 11:41:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/copy-activity-pre-copy-script/m-p/3908620#M3225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-10T11:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: copy activity - pre-copy script</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/copy-activity-pre-copy-script/m-p/3909273#M3232</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using Fabric Community.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please provide the screenshot of the pre copy script which you used in the pipeline?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 14:29:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/copy-activity-pre-copy-script/m-p/3909273#M3232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-10T14:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: copy activity - pre-copy script</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/copy-activity-pre-copy-script/m-p/3909451#M3237</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; Couple of things for which we need details :&lt;/P&gt;
&lt;P&gt;1) what is the database (type) on which you are executing your pre copy script?&lt;/P&gt;
&lt;P&gt;2) based on the expression :&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;concat(&lt;/SPAN&gt;&lt;SPAN&gt;'delete from db_name.tbl_name where file_path = '&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Source/mydata-new/mydata-03-May-2024.csv'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;This seems to be pretty static, not sure why you used the concat here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Also as stated by Nikhil, please provide the screenshot of the log of the Copy activity so we see what SQL command was generated and actually executed&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 15:24:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/copy-activity-pre-copy-script/m-p/3909451#M3237</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-05-10T15:24:50Z</dc:date>
    </item>
  </channel>
</rss>

