Como puedo reemplazar un valor nulo en el copy y data de un archivo csv don data factory

Daniela Gómez Argaez 0 Reputation points
2024-01-05T17:25:32.3866667+00:00

Hola. Tengo una novedad al leer un archivo csv con data factory, cuando hago el preview de los datos, me aparece el siguiente carácter, (cuando abro el archivo con un editor de texto es un espacio en blanco)ya cambie la codificación, pero sigue saliendo lo mismo. Veo una opción de valor nulo en las configuraciones, pero tampoco me cambia el resultado.

User's image

User's image

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

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 28,381 Reputation points
    2024-01-05T20:49:18.68+00:00

    Check this old thread :

    https://stackoverflow.com/questions/67934403/azure-data-factory-quoted-strings-from-csv-are-not-treated-as-null-values-in-s

    https://learn.microsoft.com/en-us/answers/questions/355905/how-to-convert-null-in-azure-data-factory-copy-act

    You can add a "Derived Column" transformation. This allows you to replace null values with a default value. For instance, if you want to replace null values with a specific string, you can use an expression like:

    iif(isNull(columnName), 'defaultValue', columnName) 
    

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.