In ADF, I have a demo pipeline with three activities and one pipeline variable called parentRunId:
pipeline variable
The first activity is a "Set Variable" activity and generates a UUID for parentRunId:
supply variable with UUID:
The second activity uses parentRunId to pass it to a Databricks notebook:
pass variable to notebook:
The third step is irrelevant for this example.
This all works, and the UUID is displayed in my Databrick notebook.
But I want to be able to restart my pipeline from step 2, in case it failed.
So I select the "Rerun from selected activity" button in the ADF monitor on the second step:
rerun from selected activity
My expectation would be, that the variable parentRunId is still the same (because I am not re-running the first step, which would generate the UUID).
However, surprisingly, a new UUID is generated and passed to Databricks.
This makes it difficult for me to recover from a failure, because the pipeline seemingly has lost its context.
Is this a bug? Any idea how I can pass on a piece of information between activities which will also be reliably available when I restart in the middle of the pipeline?










