Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

How to find uses of a team template?

$
0
0

Hello!

 

I'm trying to delete a team template using below code:

PersistenceHelper.manager.delete(teamTemplateReference.getObject()

 

This produces the below stacktrace:

(wt.team.teamResource/26) wt.team.TeamException: The MyTeam team template is in use.  All uses must be removed before the MyTeam team template can be deleted.

wt.team.StandardTeamService$1.notifyVetoableEvent(StandardTeamService.java:307)

wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:312)

wt.events.StandardKeyedEventBranch.dispatchVetoableMultiObjectEvent(StandardKeyedEventBranch.java:263)

wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:288)

...

 

This exception does not give any cluses what is using the template but apperntly Windchill seems to know that it is used.

Does anyone know if there is an API to find out uses of a team template?

I have a feeling there is a generic way to do this...

 

Thanks and best regards,

Peter


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>