技术文章 - CS291240

Windchill PDMLink 生命周期状态错误信息:“不存在内部值为“xxx”的枚举类型”

已修改: 12-Nov-2025   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • FlexPLM 11.0 to 12.0
  • Windchill PDMLink 11.0 to 13.0

说明

  • 在创建新的生命周期状态“READY FOR SIMULATION”后,打开生命周期模板管理.jnpl文件时出现以下错误:
 No EnumeratedType exists with "wt.lifecycle.State.READY FOR SIMULATION" as its internal value
  • 无法打开生命周期模板管理
  • 无法编辑生命周期模板
  • Java 控制台中出现以下错误信息:
 Caused by: wt.util.WTInvalidParameterException: No EnumeratedType exists with "PROMOTE" as its internal value
  • CPS 更新后,WTPart/EPMDocument 详细信息页面中的生命周期状态显示为“???state.state???”。
  • 打开“设置状态”页面上的所有依赖项时出现以下错误
No EnumeratedType exists with xxxx as its internal value
  • 导入工作流模板时出现错误
     No EnumeratedType exists with "Role.xxx" as its internal value
  • 打开产品/库文件夹失败,出现以下错误
    Request Id:	4eij2i94;loxp7ing;164;3pckcq;27011
    Request URI:	/Windchill/ptc1/comp/folderbrowser_table
    Query String:	ContainerOid=OR%3Awt.inf.library.WTLibrary%3A####&oid=OR%3Awt.folder.Cabinet%3A###&folderNavigatorParameter=true&u8=1&portlet=poppedup&rightPaneOnly=true&setActiveLayout=contentPanel_twoPanes_horizontal&leftPane=ptc1%2Fcomp%2Ffolderbrowser_tree
    Status Code:	500
    Message:	No EnumeratedType exists with "UNSUBMIT" as its internal value.
  • 文件夹中不显示零件变更通知
image.png
  • Windchill Diagnostic Utility (WinDU) 报告显示以下任务失败:
 CheckoutConsistencyReportDT
ReportLCTemplatesMissingFinalPhases Report
NonChangeObjectsIsMissingAuditsDT
  • 无法创建对象,日志中出现以下错误:
     ERROR [com.ptc.core.components.dataUtilities.worker-2] com.ptc.core.components.beans.DataUtilityBean wcadmin - CaughtException while processing column: version. Enable 'com.ptc.core.components.beans.DataUtilityBean' logger for full stack trace.A persistence error occurred.
    
    Nested exception is: wt.pom.PersistenceException: A persistence error occurred.
    
    2023-02-22 08:07:40,682 ERROR [com.ptc.core.components.dataUtilities.worker-2] wt.pds.exception wcadmin - Suppressing internal message (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
    
    Nested exception is: wt.pom.DatastoreException: A SQL error has occurred. Database system message follows:
    
    Nested exception is: wt.util.WTInvalidParameterException: No EnumeratedType exists with "xxxxx" as its internal value.
  • “部件 >结构”用户界面页面出现错误,无法打开页面。方法服务器日志显示以下错误:
 ERROR [ajp-nio-127.0.0.1-8010-exec-6] com.ptc.cat.config.server.AbstractComponentConfigBuilder 201580145 - Error getting table config based on table views with session locale 'en_US' wt.util.WTInvalidParameterException: No EnumeratedType exists with "xxxx" as its internal value.

       at wt.fc.EnumeratedTypeUtil.toEnumeratedType(EnumeratedTypeUtil.java:346)

       at wt.fc.EnumeratedTypeUtil.toEnumeratedType(EnumeratedTypeUtil.java:292)

       at wt.fc.EnumeratedType.getDisplay(EnumeratedType.java:187)

       at com.ptc.core.htmlcomp.createtableview.AttributeHelper.getEnumValues(AttributeHelper.java:284)

       at com.ptc.core.htmlcomp.createtableview.AttributeHelper.getEnumValues(AttributeHelper.java:270)
  • 以下错误出现在方法服务器日志中。
 wt.pds.exception jadhavy - Suppressing internal message (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
Nested exception is: wt.pom.DatastoreException: A SQL error has occurred. Database system message follows:
Nested exception is: wt.util.WTInvalidParameterException: No EnumeratedType exists with "xxxx" as its internal value.
  at wt.fc.EnumeratedTypeUtil.toEnumeratedType(EnumeratedTypeUtil.java:311)
  at wt.fc.EnumeratedType.toEnumeratedType(EnumeratedType.java:431)
  at com.ptc.qualitymanagement.qms.enumTypes._UnitType.toUnitType(_UnitType.java:28)
  at com.ptc.qualitymanagement.capa._RelevantRequestDataProductLink.readExternal(_RelevantRequestDataProductLink.java:702)
  at wt.pds.WTResultSet.readObject(WTResultSet.java:667)
  at wt.pds.PersistableItemBuilder.build(PersistableItemBuilder.java:543)
  at wt.pds.StandardACProcessor.processResults(StandardACProcessor.java:97)
  at wt.pds.SequentialResultBuilder.build(SequentialResultBuilder.java:453)
  at wt.pds.BasicResultCursor.next(BasicResultCursor.java:93)
  at wt.pds.SQLDatabasePds.query(SQLDatabasePds.java:880)
  at wt.pom.PersistentObjectManager.query(PersistentObjectManager.java:1077)
  at wt.pom.PersistentObjectManager.query(PersistentObjectManager.java:986)
  at wt.fc.StandardPersistenceManager._query(StandardPersistenceManager.java:1972)
  at wt.fc.StandardPersistenceManager._find(StandardPersistenceManager.java:2008)
  • 以下是升级相关的日志:
 com.ptc.windchill.upgrade.updates.UpdateExecutionException: Error executing IncrementalUpdate Verify lifecycle templates have a final phase (#ReportLCTemplatesMissingFinalPhases)
Nested exception is: (com.ptc.windchill.upgrade.updates.directives.directivesResource/39) com.ptc.windchill.upgrade.updates.DirectiveExecutionException: Method server code wt.workflow.definer.ReportLCTemplatesMissingFinalPhases.executeDiagnosticTask failed.  See nested exception for details
Nested exception is: wt.util.WTException: java.lang.reflect.InvocationTargetException
Nested exception is: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.ptc.windchill.upgrade.updates.directives.MigratorMethod.invoke(MigratorMethod.java:131)
	at com.ptc.windchill.upgrade.updates.directives.LightWeightServiceDirective$Server.invokeLightWeightServiceApi(LightWeightServiceDirective.java:635)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at wt.method.MethodResultWriter.writeExternal(MethodResultWriter.java:165)
	at wt.method.MethodResult.writeExternal(MethodResult.java:226)
	at java.base/java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1457)
	at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
	at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179)
	at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349)
	at java.rmi/sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:293)
	at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:369)
	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
...
Caused by: A persistence error occurred.
	at wt.pds.SQLDatabasePds.handleException(SQLDatabasePds.java:1082)
...
Caused by: wt.util.WTInvalidParameterException: No EnumeratedType exists with "xxxxxx" as its internal value.
	at wt.fc.EnumeratedTypeUtil.toEnumeratedType(EnumeratedTypeUtil.java:311)
	at wt.fc.EnumeratedType.toEnumeratedType(EnumeratedType.java:431)
	at wt.lifecycle._State.toState(_State.java:29)
	at wt.lifecycle._PhaseTemplate.readExternal(_PhaseTemplate.java:280)
	at wt.pds.WTResultSet.readObject(WTResultSet.java:667)
	... 48 more
  • 升级后,文件夹无法显示部件,并出现以下错误。
    No EnumeratedType exists with 'xxx' as its internal value
  • 尝试从结果表导出报告时出现以下错误
     com.ptc.mvc.controllers.ExceptionController <username>- message : No EnumeratedType exists with "SENDTOSAP" as its internal value. error:-------------A persistence error occurred. (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows: Nested exception is: wt.pom.DatastoreException: A SQL error has occurred. Database system message follows: Nested exception is: wt.util.WTInvalidParameterException: No EnumeratedType exists with "XXX" as its internal value. at wt.fc.EnumeratedTypeUtil.toEnumeratedType(EnumeratedTypeUtil.java:378) at wt.fc.EnumeratedTypeUtil.toEnumeratedType(EnumeratedTypeUtil.java:295) at wt.fc.EnumeratedType.toEnumeratedType(EnumeratedType.java:475) at wt.lifecycle._State.toState(_State.java:29) at wt.lifecycle._LifeCycleState.readExternal(_LifeCycleState.java:135) at wt.pds.WTResultSet.readObject(WTResultSet.java:667) at wt.access._AccessControlSurrogate.readExternal(_AccessControlSurrogate.java:965) at wt.pds.WTResultSet.readObject(WTResultSet.java:667) at wt.pds.AbstractColumnAccessControlItemBuilder.build(AbstractColumnAccessControlItemBuilder.java:271) at wt.pds.StandardACProcessor.processResults(StandardACProcessor.java:76) at wt.pds.SequentialResultBuilder.build(SequentialResultBuilder.java:453)
这是文章 291240 的 PDF 版本,可能已过期。最新版本 CS291240