Article - CS139339

In Windchill PDMLink 10.0 M030, during deletion of VariantSpec, com.ptc.wpcfg.doc.StandardDocService.getVariantSpecCount() searches all related VariantSpecs instead of the count itself.

Modified: 08-Aug-2016   


Applies To

  • Windchill PDMLink 10.0 M030
  • Windchill PDMLink 10.0 M040

Description

  • During deletion of VariantSpec, com.ptc.wpcfg.doc.StandardDocService.getVariantSpecCount() searches all related VariantSpecs instead of the count itself.
  • When there are many VariantSpecs, it returns following error:
ERROR : com.ptc.netmarkets.work wcadmin - wt.util.WTException: (wt.pds.pdsResourc
Nested exception is: (wt.pds.pdsResource/22) wt.pds.PartialResultException: The r
Nested exception is: wt.util.WTException: (wt.pds.pdsResource/22) wt.pds.PartialR
Nested exception is: wt.pds.PartialResultException: The returned query result has
wt.workflow.engine.CannotCompleteException: wt.util.WTException: (wt.pds.pdsResou
Nested exception is: (wt.pds.pdsResource/22) wt.pds.PartialResultException: The r
Nested exception is: wt.util.WTException: (wt.pds.pdsResource/22) wt.pds.PartialR
Nested exception is: (wt.pds.pdsResource/22) wt.pds.PartialResultException: The r
 at wt.pds.SQLDatabasePds.query(SQLDatabasePds.java:760)                       
 at wt.pom.PersistentObjectManager.query(PersistentObjectManager.java:1156)    
 at wt.pom.PersistentObjectManager.query(PersistentObjectManager.java:1059)    
 at wt.fc.StandardPersistenceManager._query(StandardPersistenceManager.java:2316
 at wt.fc.StandardPersistenceManager._find(StandardPersistenceManager.java:2360)
 at wt.fc.StandardPersistenceManager.find(StandardPersistenceManager.java:845) 
 at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)               
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 at java.lang.reflect.Method.invoke(Method.java:600)                           
 at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.jav
 at $Proxy6.find(Unknown Source)                                               
 at com.ptc.wpcfg.doc.StandardDocService.getVariantSpecCount(StandardDocService.
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 at java.lang.reflect.Method.invoke(Method.java:600)                           
 at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.jav
 at $Proxy157.getVariantSpecCount(Unknown Source)                              
 at com.ptc.wpcfg.doc.StandardDocService$4.notifyVetoableMultiObjectEvent(Standa
 at wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch
 at wt.events.StandardKeyedEventBranch.dispatchVetoableMultiObjectEvent(Standard
 at wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDi
 at wt.events.StandardKeyedEventDispatcher.dispatchVetoableMultiObjectEvent(Stan
 at wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerS
 at wt.services.StandardManagerService.dispatchVetoableMultiObjectEvent(Standard
 at wt.fc.StandardPersistenceManager.dispatchVetoableEvent(StandardPersistenceMa
 at wt.fc.StandardPersistenceManager.dispatchVetoableEvent(StandardPersistenceMa
 at wt.fc.StandardPersistenceManager.delete(StandardPersistenceManager.java:1085
 at wt.fc.StandardPersistenceManager.delete(StandardPersistenceManager.java:428)
This is a printer-friendly version of Article 139339 and may be out of date. For the latest version click CS139339