1
votes

I'm testing the data flow on my Azure Data Factory. I created Data Flow with the following details: Source dataset linked service - from CSV files dataset from Blob storage Sink linked service - Azure SQL database with pre-created table My CSV files are quite simple as they contain only 2 columns (PARENT, CHILD). So, my table in SQL DB also have only 2 columns.

CSVdataset

For the sink setting of my data flow, I have allowed insert data and leaving other options as default.

SinkAllowInsert

I have also mapped the 2 columns for input and output columns as per screenshot.

mapColumns

mapColumns2

The pipeline with data flow ran successfully when I checked the result, I could see thqat 5732 rows were processed. Is this the correct way to check? As this is the first time I try this functionality in Azure Data Factory.

rowProceesed

But, when I click on Data preview tab, they are all NULL value.

allNULLvalues

And; when I checked my Azure SQL DB in the table where I tried to insert the data from CSV files from Blob storage with selecting top 1000 rows from this table, I don't see any data.

SQLnoData

Could you please let me know what I configured incorrectly on my Data Flow? Thank you very much in advance.

Here is the screenshot of ADF data flow source data, it does see the data on the right side as they are not NULL, but on the left side are all NULLs. I imagine that the right side are the data from the CSV from the source on the blob right? And the left side is the sink destination as the table is empty for now?

ADFsourceData

And here is the screenshot for the sink inspect input, I think this is correct as it reads the 2 columns correctly (Parent, Child), is it?

ADFsinkDataInspect

After adding Map drifted, to map "Parent" => "parent" and "Child" => "child"

mapDrift0

I get this error message after running the pipeline.

mapdrift1

When checking on sink data preview, I get this error message. It seems like there is incorrect mapping?

mapdrifted1

I rename the MapDrifted1 expression to "toString(byName('Parent1))" and Child1 as suggested.

MapDrifted1

The data flow executed successfully, however I still get NULL data in the sink SQL table.

NULLdata1

NULLdata2

1

1 Answers

1
votes

Can you copy/paste the script behind your data flow design graph? Go to the ADF UI, open the data flow, then click the Script button on top right.

In your Source transformation, click on Data Preview to see the data. Make sure you are seeing your data, not NULLs. Also, look at the Inspect on the INPUT for your Sink, to see if ADF is reading additional columns.