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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Translate the entire conversation x

Issue with setting up representation from pre-converted files (CS36856)

JM_12529808
12-Amethyst

Issue with setting up representation from pre-converted files (CS36856)

I'm trying to setup the preview from pre-converted files. 

 

We have a bunch of WTDocuments that is just a PDF - I wanted to use this as the representation. 

I tried following the CS36856 guide. 

I wrote in the windchill shell:

 

xconfmanager -t %WT_HOME%/codebase/WEB-INF/conf/wvs.properties -s "worker..PDF=DUMMY,preconverted=true" -p

 

 where %WT_HOME% is the windchill directory. 

 

The response was (omitted some of the mappings): 

 

:\ptc\Windchill_12.1\Windchill\src\com\ptc\wvs\util>xconfmanager -t %WT_HOME%/codebase/WEB-INF/conf/wvs.properties -s "worker..PDF=DUMMY,preconverted=true" -p
Default product root=F:\ptc\Windchill_12.1\Windchill\bin\..
"F:\ptc\AmazonCorretto11\jdk11.0.25_9\bin\java.exe" -cp "F:\ptc\Windchill_12.1\Windchill\bin\..\codebase;F:\ptc\Windchill_12.1\Windchill\bin\..\codebase\WEB-INF\lib\*;F:\ptc\Windchill_12.1\Windchill\bin\..\lib\*" com.ptc.windchill.structconf.StructConfManager -r "F:\ptc\Windchill_12.1\Windchill\bin\.." -t F:\ptc\Windchill_12.1\Windchill/codebase/WEB-INF/conf/wvs.properties -s "worker..PDF=DUMMY,preconverted=true" -p
2025-08-04 14:38:29,123 ERROR [main] com.ptc.windchill.structconf.StructConfManager - Unexpected error (stack trace below):
***  WARNINGS  **********************************************************************
The following properties have been declared multiple times.
The last value encountered will be used, but the conflicting or duplicate declarations should be corrected.
  - com.ptc.core.meta.type.admin.client.impl.typemanagerPDMLinkOverride.enabled
    Specified at:
        file:/F:/ptc/Windchill_12.1/Windchill/codebase/com/ptc/windchill/pdmlink/xconfs/pdmlink.wt.properties.xconf, line 94
        file:/F:/ptc/Windchill_12.1/Windchill/codebase/com/ptc/windchill/projectlink/xconfs/projectlink.wt.properties.xconf, line 55
    Mapped to:
        F:\ptc\Windchill_12.1\Windchill\codebase\wt.properties
  - com.ptc.core.meta.type.admin.client.impl.typemanagertemplate.enabled
    Specified at:
        file:/F:/ptc/Windchill_12.1/Windchill/codebase/com/ptc/windchill/pdmlink/xconfs/pdmlink.wt.properties.xconf, line 93
        file:/F:/ptc/Windchill_12.1/Windchill/codebase/com/ptc/windchill/projectlink/xconfs/projectlink.wt.properties.xconf, line 54
    Mapped to:
        F:\ptc\Windchill_12.1\Windchill\codebase\wt.properties
  - epmdocument.usedby
    Specified at:
        file:/F:/ptc/Windchill_12.1/Windchill/codebase/com/ptc/windchill/pdmlink/xconfs/pdmlink.plhelp.properties.xconf, line 37
        file:/F:/ptc/Windchill_12.1/Windchill/codebase/plhelp.properties.xconf, line 41
    Mapped to:
        F:\ptc\Windchill_12.1\Windchill\codebase\plhelp.properties
.
.
.
.
**************************************************************************************

***  ERRORS  ************************************************************************
These issues must be corrected before target files can be generated.

The following properties have not been mapped to a target file.
  - com.ptc.wvs.util.AfterEDRloader.verbose
    Specified at:
        file:/F:/ptc/Windchill_12.1/Windchill/site.xconf, line 310
    Mapped to:
**************************************************************************************

com.ptc.windchill.structconf.InvalidXconfException: Propagation cannot be performed.  There are errors.
        at com.ptc.windchill.structconf.TargetFileContentsCollector.writeTargetFiles(TargetFileContentsCollector.java:438)
        at com.ptc.windchill.structconf.StructConfManager.propagate(StructConfManager.java:199)
        at com.ptc.windchill.structconf.Propagate.execute(Propagate.java:58)
        at com.ptc.windchill.structconf.StructConfManagerCommand.execute(StructConfManagerCommand.java:102)
        at com.ptc.windchill.structconf.StructConfManager.execute(StructConfManager.java:261)
        at com.ptc.windchill.structconf.StructConfManager.execute(StructConfManager.java:275)
        at com.ptc.windchill.structconf.StructConfManager.main(StructConfManager.java:822)

 

  

Is the general output correct, i.e. all the mapping?

 

The "com.ptc.wvs.util.AfterEDRloader.verbose" was I trying to set when debugging our AfterEDRloader script. It can be deleted, but I do not know how. 

ACCEPTED SOLUTION

Accepted Solutions

It appears like there is an error in your site.xconf but not 100% sure its related to your last entry for the wvs setting. You can try removing that last entry and seeing if it was related to it (its just an xml/text file). If you run "xconfmanager -p" and it comes back clean, you are good to proceed. I suspect that you have other errors in that files specifically related to the duplicate entries in the error message. See if they appear multiple times in your site.xconf file as well.  Also, you can look in the .xconf-backup folder for previous copies of your site.xconf file to reference to. You might need to revert back to a working version. At least you can compare (suggest WinMerge) to see differences.

View solution in original post

3 REPLIES 3

It appears like there is an error in your site.xconf but not 100% sure its related to your last entry for the wvs setting. You can try removing that last entry and seeing if it was related to it (its just an xml/text file). If you run "xconfmanager -p" and it comes back clean, you are good to proceed. I suspect that you have other errors in that files specifically related to the duplicate entries in the error message. See if they appear multiple times in your site.xconf file as well.  Also, you can look in the .xconf-backup folder for previous copies of your site.xconf file to reference to. You might need to revert back to a working version. At least you can compare (suggest WinMerge) to see differences.

Thanks - removing the entry regarding 

com.ptc.wvs.util.AfterEDRloader.verbose

solved the issue. 

 

 

Great. Just know that you can create your own .xconf files if this this helps you manage settings easier. I have one for customizations, configurations and wvs settings. These are all called out as references in the site.xconf.

https://www.ptc.com/en/support/article/CS296357?source=search

It might help you organize your settings better and ensure they are common from system to system.

Announcements

Top Tags