Article - CS392050
Loading of EPMDocument object type fails with error wt.pom.UniquenessException: Format - XXXXXXXXX is not unique when Uniqueness Level is set to Org level in Windchill Bulk Migrator
Modified: 19-Aug-2024
Applies To
- Windchill Bulk Migrator 10.2 to 12.1
- Windchill PDMLink 10.2 to 12.1
Description
- Run following command to load the EPMDocument when Uniqueness Level is set to Org level and loading fails with error wt.pom.UniquenessException: Format - XXXXXXXXX is not unique :
windchill com.ptc.windchill.migration.wbm.DataLoadController -l EPMDocument
- cirouter.log reports following error:
INFO postprocess.WbmMigratedInfoPostprocessor- Message reported for com.ptc.windchill.migration.wbm.transaction.MasterStagingRecord@31453cd, objectType:EPMDocument, stgId:6313 => wt.util.WTException: wt.pom.UniquenessException: Format - <name>.frm is not unique.
Nested exception is: wt.pom.UniquenessException: Format - <name>.frm is not unique.
12/04/2023 11:40:02 ERROR postprocess.WbmMigratedInfoPostprocessor- Error reported for com.ptc.windchill.migration.wbm.transaction.MasterStagingRecord@13e456a5, objectType:EPMDocument, stgId:14946 => null
wt.util.WTException: null
at wt.epm.CADNamespaceManager.add(CADNamespaceManager.java:212) ~[codebase/:?]
at wt.epm.EPMStandardDocumentManager.processCADNamePostStoreEvent(EPMStandardDocumentManager.java:1847) ~[codebase/:?]
at wt.epm.EPMStandardDocumentManager$5.notifyVetoableMultiObjectEvent(EPMStandardDocumentManager.java:557) ~[codebase/:?]
at wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:306) ~[codebase/:?]
at wt.events.StandardKeyedEventBranch.dispatchVetoableEvent(StandardKeyedEventBranch.java:255) ~[codebase/:?]
at wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:304) ~[codebase/:?]
at wt.events.StandardKeyedEventDispatcher.dispatchVetoableEvent(StandardKeyedEventDispatcher.java:228) ~[codebase/:?]
at wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerService.java:410) ~[codebase/:?]
at wt.services.StandardManagerService.dispatchVetoableEvent(StandardManagerService.java:303) ~[codebase/:?]
Nested exception is: wt.pom.UniquenessException: Format - <name>.frm is not unique.
12/04/2023 11:40:02 ERROR postprocess.WbmMigratedInfoPostprocessor- Error reported for com.ptc.windchill.migration.wbm.transaction.MasterStagingRecord@13e456a5, objectType:EPMDocument, stgId:14946 => null
wt.util.WTException: null
at wt.epm.CADNamespaceManager.add(CADNamespaceManager.java:212) ~[codebase/:?]
at wt.epm.EPMStandardDocumentManager.processCADNamePostStoreEvent(EPMStandardDocumentManager.java:1847) ~[codebase/:?]
at wt.epm.EPMStandardDocumentManager$5.notifyVetoableMultiObjectEvent(EPMStandardDocumentManager.java:557) ~[codebase/:?]
at wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:306) ~[codebase/:?]
at wt.events.StandardKeyedEventBranch.dispatchVetoableEvent(StandardKeyedEventBranch.java:255) ~[codebase/:?]
at wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:304) ~[codebase/:?]
at wt.events.StandardKeyedEventDispatcher.dispatchVetoableEvent(StandardKeyedEventDispatcher.java:228) ~[codebase/:?]
at wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerService.java:410) ~[codebase/:?]
at wt.services.StandardManagerService.dispatchVetoableEvent(StandardManagerService.java:303) ~[codebase/:?]
- MethodServer log reports following error during loading data using WBM tool:
ERROR [RMI TCP Connection(179)-10.216.24.209] com.ptc.windchill.migration.wbm.genericloader sewcadmin - Load data result: FAILURE
2023-04-12 11:40:03,197 ERROR [RMI TCP Connection(179)-10.216.24.209] com.ptc.windchill.migration.wbm.genericloader wcadmin - Error count=1
2023-04-12 11:40:03,415 INFO [RMI TCP Connection(176)-10.216.24.209] wt.system.err sewcadmin - wt.util.WTException:
2023-04-12 11:40:03,415 INFO [RMI TCP Connection(176)-10.216.24.209] wt.system.err sewcadmin - Cannot add one or more of the documents to XXXX-XX Product - Measurement_Products because their cad names are not unique in XXXX-XX Product - YYYYYYYY_YYY. The duplicate CAD names are asm0004.asm.
2023-04-12 11:40:03,431 INFO [RMI TCP Connection(176)-10.216.24.209] wt.system.err sewcadmin - at wt.epm.CADNamespaceManager.add(CADNamespaceManager.java:212)
2023-04-12 11:40:03,431 INFO [RMI TCP Connection(176)-10.216.24.209] wt.system.err sewcadmin - at wt.epm.EPMStandardDocumentManager.processCADNamePostStoreEvent(EPMStandardDocumentManager.java:1847)
2023-04-12 11:40:03,197 ERROR [RMI TCP Connection(179)-10.216.24.209] com.ptc.windchill.migration.wbm.genericloader wcadmin - Error count=1
2023-04-12 11:40:03,415 INFO [RMI TCP Connection(176)-10.216.24.209] wt.system.err sewcadmin - wt.util.WTException:
2023-04-12 11:40:03,415 INFO [RMI TCP Connection(176)-10.216.24.209] wt.system.err sewcadmin - Cannot add one or more of the documents to XXXX-XX Product - Measurement_Products because their cad names are not unique in XXXX-XX Product - YYYYYYYY_YYY. The duplicate CAD names are asm0004.asm.
2023-04-12 11:40:03,431 INFO [RMI TCP Connection(176)-10.216.24.209] wt.system.err sewcadmin - at wt.epm.CADNamespaceManager.add(CADNamespaceManager.java:212)
2023-04-12 11:40:03,431 INFO [RMI TCP Connection(176)-10.216.24.209] wt.system.err sewcadmin - at wt.epm.EPMStandardDocumentManager.processCADNamePostStoreEvent(EPMStandardDocumentManager.java:1847)
- Possibility to create EPMDocument with same CADNAME in different organization when Uniqueness Level is set to Org level
- Loading of WTDocument with same number failed with same error
This is a printer-friendly version of Article 392050 and may be out of date. For the latest version click CS392050