There is no data except header in csv file (after using Structure as Field list)

King Java 790 Reputation points
2023-08-09T00:58:20.1166667+00:00

This is a new issue after previous posts/developments that I posted/developed:

Thank you for all your previous help by the way.

https://learn.microsoft.com/en-us/answers/questions/1338303/how-to-get-structure-from-field-list-in-azure-data

https://learn.microsoft.com/en-us/answers/questions/1341207/what-is-purpose-of-parameter-its-default-value-@it

Here is what I am trying to do:

  1. Look thru all csv files in the folderA.
  2. Compare structure of all files with one reference file (let's say that they have same columns).
  3. If structure matches, then copy those files that met the condition from folderA to folderB.

So, below is the architecture of my pipelines:

1st Hierarchy

User's image

2nd Hierarchy:

@User's image

3rd Hierarchy:User's image

Now, the issue is, after all csv files that met the condition are copied folderB, there is no data (empty) inside each csv file except header.

I am not sure why it has the header only.

Only my logic is that the reference file only has a header (because I was trying to make sure only qualified csv files have certain Structure (like having same columns)).

But, what I am trying to do is just copying file csv files (with data).

How do I just copy the whole files (with data)? Where do I configure?

I thought copy data is literally just copying data as they have from Source.

Thank you again.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

Accepted answer
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2023-08-09T13:13:35.5+00:00

    Hey, just for some clarification and good design purpose,

    As you are just copying files from 1 location to another, you should ideally use Binary dataset.

    So can you update your source and sink within copy activity to binary dataset, execute your pipeline and confirm whether you are still facing the issue?
    Based on your result, we can debug why that issue is happening w.r.t delimited dataset


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.