Loading
Ongoing maintenance for Salesforce HelpRead More

CML syntax validation is not enforced when Constraint Models are updated through the Expression Set API

Publish Date: Sep 15, 2026
Description

The Constraint Model Builder validates CML syntax before saving a Constraint Model. This validation is not currently invoked when the ConstraintModel field is updated directly through the Expression Set API.

However, the same CML can be stored through the REST API. After the Constraint Model is associated with a product, the Expression Set Version can be activated through the API without reporting a syntax error.

This is a known limitation when Constraint Models are managed directly through Expression Sets.

Resolution

Use the Constraint Model Builder to create or update CML whenever possible because it performs syntax validation before saving.

Knowledge Article Number

005459978

 
Loading
Salesforce Help | Article