jacky_learns_to_code
jacky_learns_to_code

Reputation: 824

Using Dynamic Content to Retrieve Files in ADF CopyData

I am trying to run a Copy Data pipeline that processes daily file feeds from an SFTP server. The naming of those files are:

  1. abc_2021_07_21_010340.csv
  2. abc_2021_07_20_010441.csv
  3. abc_2021_07_19_020540.csv ...and so on

where

How do I correctly write the wildcard syntax based on today's date? I have tried the following but it did not worked:

@{concat('abc_', formatDateTime(utcnow(), 'yyyy_MM_dd'),'*.csv')}

EDIT on 13-07-2021

Removing the curly braces, but was shown with a No preview data to show message.

enter image description here

Upvotes: 0

Views: 636

Answers (1)

Joel Cochran
Joel Cochran

Reputation: 7728

The concat function looks correct, but I don't think you need the curly braces. This example was produced with the expression builder and does not contain them:

enter image description here

Are the files in a Folder on the SFTP server? If so, that needs to be specified as well.

Upvotes: 1

Related Questions