Skip to content
Bug Barometer
All issues
Solution Scheduled

Industries / Business Rule Engine ( BRE)

Error when deploying Decision Matrix along with a Test class

Reported
Nov 25, 2026
Updated
Nov 27, 2026
Fixed
—
Reports
3
Found in
—
Reference
W-25033543

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.

Status timeline

  1. Nov 30, 2026

    created · Solution Scheduled · 3 reports

  2. Nov 30, 2026

    content changed · Solution Scheduled · 3 reports

Official known-issue pageSuggest a workaround