Update Primary Content of WTDocument from Primary Content of seperate WTDocument Hello, Version: windchill pdmlink 12.0.2.7 I am trying to update the Primary Content of Doc2 with the Primary Content of Doc1 and am having trouble with the .updatePrimary method. Using the below code line 16 (.updatePrimary) keeps getting the error:wt.util.WTException: java.lang.ClassCastException: class wt.content.ApplicationData cannot be cast to class wt.content.Aggregate (wt.content.ApplicationData and wt.content.Aggregate are in unnamed module of loader 'app') Where would my mistake be? Thanks! wt.doc.WTDocument Doc1 = (wt.doc.WTDocument) primaryBusinessObject;
Doc1 = (wt.doc.WTDocument) wt.vc.wip.WorkInProgressHelper.service.checkout(Doc1, wt.vc.wip.WorkInProgressHelper.service.getCheckoutFolder(), "").getWorkingCopy();
com.ptc.core.lwc.server.PersistableAdapter Doc1Pers = new com.ptc.core.lwc.server.PersistableAdapter(Doc1, null, java.util.Locale.US, new com.ptc.core.meta.common.UpdateOperationIdentifier());
// Gets the Primary from D