We have WTParts which are associated with distribution targets and need to publish these parts through load file.We are using Windchill 10
Below is the procedure we followed to customize this.
1. Made changes to the \Windchill\loadFiles\csvmapfile.txt file as below.
EndWTPart~create~wt.part.LoadPart.endCreateWTPart~publishFlag,parentContainerPath
2. Added the required DTD elements to the \Windchill\codebase\registry\ixb\dtds\standardX24.dtd\csvmapfile.dtd and generate the runtime
validation DTD through the wt.load.util.UpdateEditDTDUtility.
<!ELEMENT csvEndWTPart ( csvpublishFlag, csvparentContainerPath )>
After this when we try to publish finding the below error
2014-01-07 06:30:48,931 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - Processing data file: C:\ptc\Windchill_10.2\Windchill\src\loadfiles\DefaultPart.xml
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - org.xml.sax.SAXParseException; lineNumber: 36; columnNumber: 21; Element type "csvpublishFlag" must be declared.
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at wt.ixb.impl.doc.IxbDomDocument.initialize(IxbDomDocument.java:162)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at wt.ixb.publicforapps.IxbDomDocumentDelegate.newIxbDocument(IxbDomDocumentDelegate.java:39)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at wt.ixb.publicforapps.IxbHelper.newIxbDocument(IxbHelper.java:282)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at wt.load.StandardLoadService.importData(StandardLoadService.java:776)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at java.lang.reflect.Method.invoke(Method.java:601)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at wt.method.MethodResultWriter.writeExternal(MethodResultWriter.java:152)
2014-01-07 06:30:49,009 INFO [RMI TCP Connection(120)-10.44.93.14] wt.system.out - at wt.method.MethodResult.writeExternal(MethodResult.java:228)