Define Variation Override Variables¶
You can define a variation override variables set from the Recipes page or by editing the variations.json file in the File Editor.
Warning
Variables follow a hierarchy. Variables defined at this level override the same variables in a recipe's base variable set.
Variable requirements¶
- Variables larger than 1 MB in size are not supported.
- Variable names must adhere to DataKitchen's naming conventions. They are case-sensitive, can include alphanumeric and underscore characters, cannot start with numbers, and cannot contain hyphens or dashes.
- Do not use the names reserved for system variables to define custom variables, as this can create conflicts and errors in recipes.
Define variation overrides from the Recipes page¶
- Navigate to the Recipes page.
- Select the Variable Sets tab.
- Click Add Variable Set.
- Enter a variable set name.
- Click Add Variable.
- Enter a variable name, variable type, and value.
- Optional. Repeat steps 5 and 6 to add more variables to the variable set.
- Select Add notes for changelog , describe the changes, then click Update.
Apply a variation override set to a variation¶
After defining a new variation override set you can apply it to a specific variation.
- From the Recipes page, select the Variations tab.
- Click the Actions menu associated with the variation.
- Select Edit.
- In the Edit Variation dialog, choose a variable set from the Override Sets drop-down list.
- Select Add notes for changelog , describe the changes, then click Update.
Define variation overrides from the Variation page¶
- From the Recipes page, click a variation name shown in the Variations tab.
- Select the Variables tab.
- In the Variation Override Values column, click Add Variable Set.
- To use an existing variable set:
- Select Use existing variable set.
- Choose from the available variation variable sets.
- Click Add.
- To create a new variable set:
- Select Create new variable set.
- Enter a variable set name.
- Click Add. A new column will appear in the Variables table.
- In the new variable set column, click any cell associated with a variable you want to override.
- Enter a type and value for the variable.
- Optional. Repeat steps d and e for other variables.
- Select Add notes for changelog , describe the changes, then click Update.
Visual example in Automation¶

Define variation overrides from the File Editor¶
See the example variations.json file below for more guidance.
- Navigate to the Recipes page.
- Select Recipe Actions > View Files.
- Select
variations.jsonfrom the file editor list. -
In the
override-setting-listobject, define the override set name, variable names, and values.Use properly formed JSON.
-
In the
variation-listobject:- Locate the variation you want to apply the override set to.
- Declare the override set name as the value for the
override-settingkey.
- Select Add notes for changelog , describe the changes, then click Update.
Example variations.json with overrides¶
{
"variation-list": {
"variation-1": {
"graph-setting": "graph",
"override-setting": [
"override-set-example-name-1"
]
},
"variation-2": {
"description": "This variation has no override set",
"graph-setting": "graph",
"order-override-constraints": {}
}
},
"graph-setting-list": {
"graph": [
[
"node1",
"node2"
],
[
"node2",
"node3"
]
]
},
"override-setting-list": {
"override-set-example-name-1": {
"variable_name_1": "value1"
},
"override-set-example-name-2": {
"variable_name_2": "value2",
"variable_name_3": "value3"
}
}
}