Skip to content
Bug Barometer
All issues
Solution in Progress

Revenue / Revenue Lifecycle Management

Constraint Builder's "Add Item" shows child products already in the model, and activation fails with "Component Type with Id ... already exists"

Summary

In a constraint model that contains a bundle with a complex product structure, such as nested bundles or many child products, the “Add Item” picker still lists child products that are already in the model.

If a user adds one of these products and then activates the model, activation fails with this error:


Model '<model name>' is invalid: Component Type with Id 'TY<productId>' already exists


Adding the product also creates a second Type for it, with "1" appended to its name.


The error occurs when the same child product exists more than once in the bundle structure and is linked to the same product record through a Type Association.


It has not been reproduced with simple bundles.


Workaround

  • In complex bundles, do not re-add child products that already exist in the model. If you are unsure, check the existing Types before adding.
  • If a duplicate Type already exists, delete it in the CML before activating. Keep only one Type per product, the one the relationships reference.
  • If stale backend records (ExpressionSetConstraintObj) remain, they may need to be cleaned up separately. This requires admin or Developer Console access, so involve a Salesforce admin.


Steps to reproduce

  1. Open a constraint model for a complex bundle that already contains child products.
  2. On a parent item, click "Add Item". Child products that are already in the model appear as candidates.
  3. Add one of those products. A second Type is created for the same product.
  4. Save and activate the model. Activation fails with the error above.

Error details

Model '' is invalid: Component Type with Id 'TY' already exists

History

  1. Description updated

    Nov 30, 2026

  2. First tracked here as Solution in Progress with 1 report

    Nov 30, 2026

Constraint Builder's "Add Item" shows child products already in the model, and activation fails with "Component Type with Id ... already exists" · Bug Barometer