Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Import types and attributes from one wc environment to another

$
0
0

Hi!

I have exported all types and them attributes (all soft types for WTPart) through windchill wt.load.LoadFromFile utility. But when export is going on I have an exception like following:

 

com.ptc.core.lwc.server.TypeDefinitionLoader wcadmin - (endProcessTypeDefinition):

wt.util.WTException: Attributes '  —' and 'null' on wt.part.WTPartreferr to the same iba definition.

          at com.ptc.core.lwc.server.cache.AttValidatorHelper.validateDuplicateIbaUsage(AttValidatorHelper.java:880)

          at com.ptc.core.lwc.server.cache.AttValidatorHelper.validateAllAtts(AttValidatorHelper.java:859)

          at com.ptc.core.lwc.server.cache.AttHelper.persistAttDefs(AttHelper.java:216)

          at com.ptc.core.lwc.server.cache.TypeDefinitionManager.persistTypeDef(TypeDefinitionManager.java:895)

          at com.ptc.core.lwc.server.cache.TypeDefinitionManager.updateTypeDef(TypeDefinitionManager.java:1509)

          at com.ptc.core.lwc.server.StandardTypeDefinitionService.updateTypeDef(StandardTypeDefinitionService.java:193)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)

          at $Proxy12.updateTypeDef(Unknown Source)

          at com.ptc.core.lwc.server.TypeDefinitionLoader.endProcessTypeDefinition(TypeDefinitionLoader.java:804)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at wt.ixb.handlers.netmarkets.CsvIxHandler.invokeLoad(CsvIxHandler.java:543)

          at wt.ixb.handlers.netmarkets.CsvIxHandler.createObject(CsvIxHandler.java:239)

          at wt.ixb.publicforhandlers.ClassExporterImporterTemplate.importElement(ClassExporterImporterTemplate.java:415)

          at wt.ixb.publicforhandlers.ClassExporterImporterTemplate.importElements(ClassExporterImporterTemplate.java:539)

          at wt.ixb.publicforapps.Importer.importElements(Importer.java:1456)

          at wt.ixb.publicforapps.Importer.importElement(Importer.java:1428)

          at wt.ixb.publicforapps.Importer.doRealImport(Importer.java:1193)

          at wt.ixb.publicforapps.Importer.finalizeImport(Importer.java:507)

          at wt.load.StandardLoadService.importData(StandardLoadService.java:825)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at wt.method.MethodResultWriter.writeExternal(MethodResultWriter.java:151)

          at wt.method.MethodResult.writeExternal(MethodResult.java:226)

          at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1426)

          at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1398)

          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

          at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)

          at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274)

          at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:313)

          at sun.rmi.transport.Transport$1.run(Transport.java:159)

          at java.security.AccessController.doPrivileged(Native Method)

          at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

          at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

          at java.lang.Thread.run(Thread.java:662)


Viewing all articles
Browse latest Browse all 8876

Trending Articles