Industries / Business Rule Engine ( BRE)
Error when deploying Decision Matrix along with a Test class
Summary
When deploying a Decision Matrix version and an Apex test class together in the same deployment package, the deployment validation fails when running local tests, including the Apex test class that is part of the deployment.
The Apex test class deploys successfully when deployed separately. However, when the Decision Matrix version is included in the same deployment package, the validation fails with the following error: MISSING_RECORD / Action name not found: [Test Decision Matrix Name]
Workaround
Deploy the Decision Matrix and the Apex test class in separate deployments. Alternatively, deploy the Decision Matrix first, then deploy or validate the Apex classes with tests.
Steps to reproduce
1. In an org with Decision Matrix / BRE enabled, build a deployment package containing a DecisionMatrixDefinition with a DecisionMatrixDefinitionVersion, plus an Apex test class that creates a Calculation Matrix (Decision Matrix) and calls it, for example through the Decision Matrix invocable action.
2. Deploy or validate the package with Test Level = RunLocalTests and provide same Test class.
3. Observe: the Apex test fails with MISSING_RECORD / Action name not found and the deployment fails.
4. Deploy the same Apex test class alone: it passes.
History
Description updated
Nov 30, 2026
First tracked here as Solution Scheduled with 3 reports
Nov 30, 2026