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

Publishing not happening between set states?


Publishing not happening between set states?

When we change the status of drawing, the worker doesn't publish the drawing. This was not the behavior before and we have to manually click on the thumbnail to create the representation. Could someone  provide me inputs as to where to begin investigating the cause of this issue.


Here are some related articles CS43043, CS238377, CS229067, CS55087.

Unfortunately it's fairly complex.


Change the publish.republishondocumentchange & publish.republishonepmdocumentchange to true in WVS.propeties.







these properties have been set to true

these properties are set to true and still I face this issue

This is how our system is setup (10.2 M030)

Automatically republish on state change:

xconfmanager -s publish.publishonepmdocumentchange=true -t /codebase/WEB-INF/conf/

xconfmanager -s publish.publishondocumentchange=true -t /codebase/WEB-INF/conf/

xconfmanager -s publish.republishonepmdocumentchange=true -t /codebase/WEB-INF/conf/

xconfmanager -s publish.republishondocumentchange=true -t /codebase/WEB-INF/conf/

xconfmanager -s publish.evaluaterulesonrepublish.default=true -t /codebase/WEB-INF/conf/

xconfmanager -p

Did you restart Windchill after making these changes?

Can publishing be handled through code?

You can use the following code in a Promotion Request workflow in expresion robot in the end.

The code sends the EPM documents to publish queue




    //create publisher action -  action string .... M queue

    com.ptc.wvs.common.ui.PublisherAction pa = new com.ptc.wvs.common.ui.PublisherAction(com.ptc.wvs.common.ui.PublisherAction.QUEUEPRIORITY, "M");

    //check all target objects

    wt.fc.QueryResult promotables = wt.maturity.MaturityHelper.getService().getBaselineItems((wt.maturity.PromotionNotice)primaryBusinessObject);

    while (promotables.hasMoreElements())


        Object obj = (Object) promotables.nextElement();

        if (obj instanceof wt.epm.EPMDocument)


            wt.epm.EPMDocument epmdoc = (wt.epm.EPMDocument) obj;


            //Find the latest version of document!!!

   configSpec =;

            wt.fc.QueryResult qr =, configSpec);

            if (qr != null)


                while (qr.hasMoreElements())


                    epmdoc = (wt.epm.EPMDocument)qr.nextElement();





            //check the EPMDocument object

            java.lang.String objRef;

            objRef = wt.fc.ObjectReference.newObjectReference(epmdoc).toString();

            //Create publisher

            com.ptc.wvs.common.ui.Publisher pub = new com.ptc.wvs.common.ui.Publisher();

            //Start publisher

            result = pub.doPublish(false, true, objRef, ( null, ( null, true, null, null,

                    com.ptc.wvs.common.ui.Publisher.EPM, pa.toString(), 0);





} catch (wt.util.WTException e)




Learn more about how we are using our browser poll here