cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Publish existing WTParts through load file

nmudigere
1-Visitor

Publish existing WTParts through load file

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)

3 REPLIES 3

For step 1 I think you should have a tilde "~" instead of a comma "," between "publishFlag" and "parentContainerPath". Like this

EndWTPart~create~wt.part.LoadPart.endCreateWTPart~publishFlag~parentContainerPath

Then, the error 'Element type "csvpublishFlag" must be declared.', means you need a line like this in the DTD

<!ELEMENT csvpublishFlag (#PCDATA) >

Hello Patrick,

Thanks for your reply, I did changes as you suggested and run the utility "wt.load.util.UpdateEditDTDUtility" and could able to see the updates in /loadXMLFiles/standardX24.dtd file.

Now when i run load command from windchill shell "Data file not readable" error is thrown..

Expecting your valuable inputs

It seems the user you are running the load as does not have permission to read the load file.

Announcements


Top Tags