Assign multiple values to Null value field IN Azure data factory

Sampath S 81 Reputation points
2022-09-30T08:45:23.053+00:00

In ADF, If i select source as xml api or excel input/file input. There is a field called Null Value. I want to insert multiple values to that field. How Can I do that?

Example: I want to make the input string to null whenever 'xyz' or 'pqr' comes. if i add xyz alone it will convert that string to null, But i am not able to check(convert) both the strings to null from the input at the same time

Input

[{
"captain":{
"row":[
{
"@DeezNutz ": "carlo",
"@runs":50.0,
"@myworld ": pqr,(target -double)
"@MOS ": xyz(target-double)
},
{
"@DeezNutz ": "David ",
"@runs":500.0,
"@myworld ":5,
"@MOS ":1
}
]
}
}
]
Expected Op It should update db table with 2 rows

Op which I got:Copy data activity cannnot convert pqr to double

Azure SQL Database
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
710 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,487 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Suba Balaji 11,186 Reputation points
    2022-10-01T16:55:43.297+00:00

    Hi @Sampath S

    With just a copy activity it's not possible to replace multiple strings with null.

    We either have to use azure functions or batch to replace strings.

    0 comments No comments