Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hello,
I Would like to load a partlist object but it is not working. Here is a sample of my xml file:
<?xml version="1.0" ?><!DOCTYPE NmLoader SYSTEM "standardX24.dtd">
<NmLoader>
<csvPartList handler="com.ptc.arbortext.windchill.partlist.LoadPartList.createPartList" >
<csvuser></csvuser>
<csvname>720A00</csvname>
<csvnumber>0000000002</csvnumber>
<csvfolder>/Default/Planche Catalogue - POC</csvfolder>
<csvlifecycle></csvlifecycle>
<csvview></csvview>
<csvteamTemplate></csvteamTemplate>
<csvlifecyclestate>RELEASED</csvlifecyclestate>
<csvtypedef>WCTYPE|com.ptc.arbortext.windchill.partlist.PartList</csvtypedef>
<csvversion>A</csvversion>
<csviteration>1</csviteration>
<csvdescription />
<csvinformationType />
<csvpartListItemType />
<csvparentContainerPath></csvparentContainerPath>
<csvorganizationName></csvorganizationName>
<csvorganizationID></csvorganizationID>
<csvcreateTimestamp></csvcreateTimestamp>
<csvmodifyTimestamp></csvmodifyTimestamp>
<csvauthoringLanguage>en</csvauthoringLanguage>
</csvPartList>
<csvendIBAHolder handler="wt.iba.value.service.LoadValue.endIBAHolder" />
</NmLoader>
Here is the stack trace:
(wt.ixb.publicforhandlers.ixbResource/18) wt.ixb.publicforhandlers.LogHelper$IxbException: Error in XML input file
at wt.ixb.publicforhandlers.LogHelper.userError(LogHelper.java:230)
at wt.ixb.publicforhandlers.LogHelper.userError(LogHelper.java:566)
at wt.ixb.impl.doc.IxbDomDocument.initialize(IxbDomDocument.java:169)
at wt.ixb.publicforapps.IxbDomDocumentDelegate.newIxbDocument(IxbDomDocumentDelegate.java:39)
at wt.ixb.publicforapps.IxbHelper.newIxbDocument(IxbHelper.java:282)
at wt.load.StandardLoadService.importData(StandardLoadService.java:776)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at wt.method.MethodResultWriter.writeExternal(MethodResultWriter.java:152)
at wt.method.MethodResult.writeExternal(MethodResult.java:228)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1455)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:293)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:332)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at sun.rmi.transport.Transport$1.run(Transport.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Thanks,
Julien
Solved! Go to Solution.
I fixed my problem.
To load a part List, i need to load also the related WTPart object and the partToPartList link.
The use empty was not a problem fyi
In my opinion csvuser is the problem. You have to put a user.
I usually use "wcadmin".
That stack trace is pretty generic and usually there is another error(s) that shows up in the logs along with that. Do you still have the log? If so, can you attach it to the thread?
I fixed my problem.
To load a part List, i need to load also the related WTPart object and the partToPartList link.
The use empty was not a problem fyi