Try using Derived Column activity to add "" if the data is null as explained in below. Looks like the question is copied from below as is.
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Azure data factory dataflow not present null values in JSON format
I am looking for how to present my null values with the Azure Data Factory Dataflow activity. Currently, I am using standard dataflow for modelling my data from Azure SQL database and drag it into Blob storage in JSON format. But if the dataset source has a null value, the column in the row is skipped in JSON.
ZdKMo.png
Please, give me some advice on how to proceed, in order to resolve the problem. With Copy activity I don't have the same issue - null values are presented with "".
Try using Derived Column activity to add "" if the data is null as explained in below. Looks like the question is copied from below as is.
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
Hi @Anonymous ,
Thank you for posting in Microsoft Q&A Platform.
When you say you csv has null values in it, in which form it has it there? Is it the same way as below.
From csv all the values will be read as strings in Data flows, So We may need to use derived column to pass some other value in to your json for the values null from csv.
In below screenshot I am passing empty string When I see null from csv.
Unfortunately if you try to save null values in to json from data flows its going to skip those keys from json object.
I would encourage you to log feedback item for this. Product team will closely monitor all feedbacks and try to implement them in future releases.
Hope this will help. Thank you.
-------------------------------
Hi Maheer,
Im getting empty collections due to data is null from input. Can you please let me know how we can handle nulls collections and arrays.
I have added dervied column and made subcolumns under derived column and taken aggregation ttransformation as next, used derived column as list in aggregation transformation
We also have the same problem. when moving data between two cosmos dbs - ADF skips fields where null occurs which breaks the application because x.Property == null is different Is_Defined(x.Property)