WaveRecipe defines a saved set of data-preparation steps applied to a source dataset or connected data in an Analytics application. Its settings identify the application, related dataflow, output dataset, recipe-definition format, and row-level access filter.
A recipe is not the same metadata component as its related WaveDataflow, and its output dataset is not necessarily its source dataset. WaveRecipe extends MetadataWithContent, inheriting content and fullName in addition to its recipe-specific fields.
Key Elements
| Element | What the Element Controls |
|---|---|
application |
Associates the recipe with a WaveApplication using the application's internal name. |
dataflow |
Required. Identifies the related WaveDataflow by record ID, not by developer name. |
format |
Identifies the recipe-definition format. Documented values are R2 and R3, both for recipes created with Data Prep. |
masterLabel |
Required. Sets the recipe name displayed in the user interface. |
securityPredicate |
Defines the filter condition for row-level access to records in the recipe. |
targetDatasetAlias |
Names the WaveDataset into which the recipe saves its results. This identifies the output, not the source data being prepared. |
templateAssetSourceName |
Links the recipe to the template used to create it. It is null for assets not created from a template. |
Behavior and Constraints
securityPredicate controls row-level access: which records a user can see. For example, 'UserId' == "$User.Id" compares a record's UserId with the current user's ID. This is an example expression, not a default predicate.
The identifiers in a recipe serve different purposes. application uses an application's internal name, dataflow uses a dataflow ID, and masterLabel supplies the recipe's visible name. A matching recipe and dataflow name does not make a developer name a valid substitute for the ID in dataflow.
targetDatasetAlias describes where results are saved. Do not treat it as the declaration of the source dataset or connected data that the recipe prepares.
Deployment and Retrieval
WaveRecipe components use the .wdpr suffix and reside in the wave folder.
The type supports the * wildcard in package.xml. However, wildcard retrieval of WaveRecipe does not return the recipes' associated dataflows. Retrieving a recipe therefore does not establish that its related WaveDataflow metadata has also been captured.
Whether a deployment must include that dataflow depends on the recipe's actual reference and the destination state. If deployment reports A Recipe must specify a Dataflow, checking whether the related dataflow was retrieved and included is a reported diagnostic, not a guarantee that every occurrence has the same cause.
Deletion has broader scope than retrieval. To delete a recipe, declare the WaveRecipe component in destructiveChanges.xml. This deletes the recipe and any related WaveDataflow components; the destructive manifest does not need to list those dataflows separately.
Relationships
A recipe belongs to an Analytics application, refers to a dataflow, and names an output dataset. An analytic asset collection can also reference the recipe. The template link in templateAssetSourceName records the recipe's template origin; it is separate from these element references.
References
-
WaveApplication:application, using the application's internal name. -
WaveDataflow:dataflow, using the dataflow ID. -
WaveDataset:targetDatasetAlias, identifying the output dataset.
Referenced By
-
WaveAnalyticAssetCollection:asset.
Reported Issues
-
A missing related dataflow can be a diagnostic lead for
A Recipe must specify a Dataflow. In a 2021 SFDX-based deployment discussion, a respondent reported that source pull retrieved the recipe without its dataflow and recommended explicitly retrieving the relatedWaveDataflowand including it in the deployment. This was a report about that workflow, not a general statement about current CLI behavior. See the recipe dataflow deployment discussion. -
Analytics setup was reported as a prerequisite before source push in a scratch-org workflow. In 2023, an author working with Analytics metadata added
DevelopmentWaveandAnalyticsAdminPermsto the scratch definition'sfeatures, installed the Analytics CLI plugin, and enabled Analytics before pushing source. The confirmed successful push contained a simpleWaveDataflow; it was not confirmation that everyWaveRecipedeployment scenario worked. See the scratch-org deployment report.
Common Questions
Does retrieving WaveRecipe also retrieve its dataflow?
A wildcard retrieval of WaveRecipe does not return associated dataflows. Check separately whether the related WaveDataflow has been captured. Whether it must be deployed with the recipe depends on the actual reference and destination state.
How do I diagnose "A Recipe must specify a Dataflow"?
Check the required dataflow field, which identifies a dataflow by ID, and whether the related WaveDataflow was retrieved and included where needed. A 2021 workflow report recommended explicitly retrieving and including the missing dataflow, but that report does not establish a universal cause.
Does deleting a WaveRecipe also delete its dataflow?
Yes. Declaring the recipe in destructiveChanges.xml deletes the WaveRecipe and any related WaveDataflow components. You do not need to enumerate those related dataflows separately.
Is targetDatasetAlias the recipe's source dataset?
No. targetDatasetAlias names the output dataset where the recipe saves its results, not the source dataset or connected data being prepared.
What does securityPredicate do in a WaveRecipe?
It defines row-level access to records in the recipe. An expression such as 'UserId' == "$User.Id" compares a record's user ID with the current user's ID; that expression is an example, not a default.