Skip to main content
1-Visitor
June 2, 2011
Question

cannot remove "referential integrity violation"

  • June 2, 2011
  • 3 replies
  • 2037 views

3 replies

1-Visitor
June 2, 2011

I believe you'll have to go into said assembly and remove the part from the assembly. Then you should be able to delete the part from the workspace or common space.

kjohns1011-VisitorAuthor
1-Visitor
June 3, 2011

this does not always work, especially with formats and drawings, PTC recomends utilizing the purge manager to remove the unwanted, non-latest iterations that is responsible for the referential integrity, unfortunately I haven't had success with that either.

1-Visitor
June 7, 2011

I have faced this situation ,where the deletion of object is blocked with "integrity violation" exception.


This is an excpetion thrown only when an delete action is performed on WTObject , which is linked with any other object.


The only soution to overcome this is to break the LINK(WTPartUsage/WTReferenceLink/WTPartDesc Link/Configurable Link) between the object to delete and the other side object.


Try using a Listener /Event Rule class with a PRE-DELETE Event,which will break the link and the proceed with Windchill's delete.