Forum Discussion

pmscorca's avatar
pmscorca
Kudo Kingpin
6 months ago
Solved

Resetting a string pipeline variable

Hi, inside a my pipeline I've implemented some set variable activities that operate on strings. In particular I'd like to reset the value of a string pipeline variable as a blank value. Is the corr...
  • v-sshirivolu's avatar
    v-sshirivolu
    6 months ago

    Hi pmscorca ,

    • You’re right that a dedicated reset function would be cleaner, but currently Fabric/ADF pipelines don’t support user-defined functions or setting variables to 'null'.
    • The supported and recommended approach is to explicitly overwrite the variable with an empty string:
    • Set Variable activity → value set to ' ' (empty string)
    • Internally this is treated as a reset state, even though the run output may show "\n" due to UI serialization.
    • For cleaner design, a common pattern is to encapsulate all variable resets inside a small reusable pipeline (called via Execute Pipeline), which effectively acts as a “reset function” while staying within supported features.