Article - CS161436

"IBAConstraintException Attribute values cannot be added, removed, or changed" error when updating IBAs on a family table EPMDocument in Windchill PDMLink

Modified: 17-Sep-2024   


Applies To

  • Windchill PDMLink 9.1 to 13.0
  • Creo Parametric 1.0 to 11.0

Description

  • "IBAConstraintException Attribute values cannot be added, removed, or changed" error when updating IBAs on a family table EPMDocument
  • Receive IBAConstraintException: Attribute values cannot be added, removed, or changed error when updating global attributes on a family table EPMDocument on Revise
    • Implement a listener based customization to modify Family Table (FT) CAD Document IBA on Revise using the following API
HashMap<String, Object> AttributeValue = new HashMap<String, Object>();
AttributeValue.put("sapStatus", "new value for revise");                         
LWCNormalizedObject normalized = new LWCNormalizedObject((Persistable) target, null, Locale.getDefault(), new UpdateOperationIdentifier());
normalized.load(AttributeValue.keySet());
normalized.apply();          
PersistenceHelper.manager.modify((Persistable)target);
 
  • Following error occurs (no error with non-FT objects)
(wt.iba.constraint.constraintResource/immsg1) wt.iba.constraint.IBAConstraintException: Attribute values cannot be added, removed, or changed.
at wt.iba.constraint.Immutable.isValueValid(Immutable.java:279)
at wt.epm.attributes.EPMIBAContainerConstraint.isContainerValid(EPMIBAContainerConstraint.java:235)
at wt.iba.constraint.ConstraintGroup.isContainerValid(ConstraintGroup.java:411)
at wt.iba.value.DefaultAttributeContainer.isContainerValid(DefaultAttributeContainer.java:715)
at wt.iba.value.service.MultiObjIBAValueDBService.updateAttributeContainer(MultiObjIBAValueDBService.java:675)
:
:
at ext.customer.NewVersionListener.notifyVetoableEvent(NewVersionListener.java:56)


 
 
This is a printer-friendly version of Article 161436 and may be out of date. For the latest version click CS161436