FileName in Issue

Rohit Kulkarni 676 Reputation points
2021-10-19T13:35:54.637+00:00

Hello Team,

I have multiple files in the Blob storage and the file data has to be copied into DB Table the table name as a file

Blob storage :

141739-image.png

Azure SQL Table name :

  1. Basic data
  2. Plant Data

I am using the pipeline :

141811-image.png

And i am getting error in copy activity :

141749-image.png

Please advise how to remove the .csv extension.

Thanks in advance

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,532 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nasreen Akter 10,736 Reputation points
    2021-10-19T14:44:01.557+00:00

    Hi @Rohit Kulkarni ,

    Would you please try:

    @substring(item().name, 0, lastindexof(item().name, '.csv'))  
    

    Thanks!