-
Notifications
You must be signed in to change notification settings - Fork 519
DataWeaveErrorRecipes
pozil edited this page Nov 14, 2024
·
3 revisions
Demonstrates how to handle DataWeave script errors in Apex.
Group DataWeaveInApex Recipes
Runs a DataWeave script that triggers a runtime error on pupose.
Uses the dw/error.dwl DataWeave script.
Attempts to output records as Excel.
This always results in an error as the Excel format is not supported in DataWeave in Apex.
Uses the dw/excelOutputError.dwl DataWeave script.
| Param | Description |
|---|---|
contacts |
list of contacts |
| Type | Description |
|---|---|
DataWeave.Result |
DataWeave script result (never used as a DataWeaveScriptException is thrown) |