Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedJoin us at the 2025 Microsoft Fabric Community Conference. March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for $400 discount. Register now
hi,
In the pre-copy script box of the copy activity, I place this tsql statement but the pipeline gives this error.
any suggestions? thank you
my script:
error:
Message=A database operation failed with the following error: 'Incorrect syntax near 'csv'.',Source=,''Type=System.Data.SqlClient.SqlException,Message=Incorrect syntax near 'csv'
Solved! Go to Solution.
@arkiboys Couple of things for which we need details :
1) what is the database (type) on which you are executing your pre copy script?
2) based on the expression :
@concat('delete from db_name.tbl_name where file_path = ', 'Source/mydata-new/mydata-03-May-2024.csv')
This seems to be pretty static, not sure why you used the concat here?
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
@arkiboys Couple of things for which we need details :
1) what is the database (type) on which you are executing your pre copy script?
2) based on the expression :
@concat('delete from db_name.tbl_name where file_path = ', 'Source/mydata-new/mydata-03-May-2024.csv')
This seems to be pretty static, not sure why you used the concat here?
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
Hi @arkiboys
Thanks for using Fabric Community.
Can you please provide the screenshot of the pre copy script which you used in the pipeline?
Thanks
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Fabric update to learn about new features.
User | Count |
---|---|
7 | |
4 | |
2 | |
1 | |
1 |