Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.0.0
2024-10-15 18:29:27,481 INFO [RMI TCP Connection(8)-127.0.0.1] wt.system.out wcadmin - Processing data file: /opt/ptc/Windchill_12.0/Windchill/loadFiles/../loadFiles/ext/kif/changeObjectTemplates/site/KIF_TAG-WTChangeActivity2-1.xml
2024-10-15 18:29:27,542 INFO [RMI TCP Connection(8)-127.0.0.1] wt.system.out wcadmin - Getting container path= '/'
2024-10-15 18:29:27,542 INFO [RMI TCP Connection(8)-127.0.0.1] wt.system.out wcadmin - Using container with path= '/'
2024-10-15 18:29:28,394 ERROR [RMI TCP Connection(8)-127.0.0.1] wt.method.MethodContextMonitor.contexts.rmi wcadmin - 2024-10-15 18:29:27.477 +0200, m55w6xfougu;m2anrrbe;8402;s03q2u;5, -, -, -, wcadmin, 127.0.0.1, wt.load.StandardLoadService, importData, , 0, 51, 0.05287583, 33, 0.203523442, 0.544559192, 0.916640064 (wt.ixb.publicforhandlers.ixbResource/8) wt.ixb.publicforhandlers.LogHelper$IxbException: Problem in export/import process.
Nested exception is: (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
Nested exception is: wt.change2.ChangeException2: All persisted ChangeActivity2 objects must have an associated ChangeOrder2.
at
Here are the errors that I faced
2024-10-15 18:29:27,481 INFO [RMI TCP Connection(8)-127.0.0.1] wt.system.out wcadmin - Processing data file: /opt/ptc/Windchill_12.0/Windchill/loadFiles/../loadFiles/ext/kif/changeObjectTemplates/site/KIF_TAG-WTChangeActivity2-1.xml
2024-10-15 18:29:27,542 INFO [RMI TCP Connection(8)-127.0.0.1] wt.system.out wcadmin - Getting container path= '/'
2024-10-15 18:29:27,542 INFO [RMI TCP Connection(8)-127.0.0.1] wt.system.out wcadmin - Using container with path= '/'
2024-10-15 18:29:28,394 ERROR [RMI TCP Connection(8)-127.0.0.1] wt.method.MethodContextMonitor.contexts.rmi wcadmin - 2024-10-15 18:29:27.477 +0200, m55w6xfougu;m2anrrbe;8402;s03q2u;5, -, -, -, wcadmin, 127.0.0.1, wt.load.StandardLoadService, importData, , 0, 51, 0.05287583, 33, 0.203523442, 0.544559192, 0.916640064 (wt.ixb.publicforhandlers.ixbResource/8) wt.ixb.publicforhandlers.LogHelper$IxbException: Problem in export/import process.
Nested exception is: (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
Nested exception is: wt.change2.ChangeException2: All persisted ChangeActivity2 objects must have an associated ChangeOrder2.
at wt.change2.listeners.OrphanedChangeTaskListener.checkOrphanedChangeTasks(OrphanedChangeTaskListener.java:68)
at wt.change2.listeners.OrphanedChangeTaskListener.beforeCompletion(OrphanedChangeTaskListener.java:81)
at wt.pom.TransactionManager$BeforeCompletionTransactionListener.fire(TransactionManager.java:1633)
at wt.pom.TransactionManager.fireTransactionListener(TransactionManager.java:1582)
at wt.pom.Transaction.commit(Transaction.java:739)
at wt.ixb.publicforapps.Importer.doRealImport(Importer.java:1354)
at wt.ixb.publicforapps.Importer.finalizeImport(Importer.java:568)
at wt.load.StandardLoadService.importData(StandardLoadService.java:817)
Solved! Go to Solution.
You might be getting my replies out of order. PTC says this is not possible to load via CSV to XML.
Please provide the question. I can only guess. The key line is this: Nested exception is: wt.change2.ChangeException2: All persisted ChangeActivity2 objects must have an associated ChangeOrder2.
Yes, in order to load a change task, it must have a change notice existing that its linking up to. I have never done an import like you are doing but seeing as its loadFromUtility, I think the order of the elements being loaded is the issue. Change Order First, then change task then the link between the two or it should task you for the change order in that import line. Can you share details of the CSV or XML version (redact your key information).
So the solution You have provided me on the error likewise I have loaded Change order first then chnage activity but while loading the change activity I am getting the below error
Nested exception is: (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
Nested exception is: wt.change2.ChangeException2: All persisted ChangeActivity2 objects must have an associated ChangeOrder2.
What would help is the source CSV or XML.
windchill wt.load.LoadFromFile -d <data file name> using this command to load the data of xml file
Below is the content of XML file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE WTChangeActivity2 SYSTEM "standard12_0.dtd">
<WTChangeActivity2>
<ObjectID>
<localId>wt.change2.WTChangeActivity2:471249</localId>
<ufid>wt.change2.WTChangeActivity2:471249|541604666-1605903551984-992524208-1-0-0-127|integration-coe-wc.kalypso-int.com</ufid>
</ObjectID>
<objectContainerPath>/</objectContainerPath>
<organizationId> ((null))</organizationId>
<organizationName>Kalypso</organizationName>
<number>0000000102</number>
<masterUfid>wt.change2.WTChangeActivity2Master:471246|541604666-1605903551984-992524208-1-0-0-127|integration-coe-wc.kalypso-int.com</masterUfid>
<name>Kalypso CT</name>
<description> ((null))</description>
<longDescription></longDescription>
<changeApplicationLock>0</changeApplicationLock>
<resolutionDate> ((null))</resolutionDate>
<needDate> ((null))</needDate>
<theExecutionMode>MANUAL</theExecutionMode>
<reviewRequired>true</reviewRequired>
<populateAffectedObjects>true</populateAffectedObjects>
<templateInfo>
<templated>true</templated>
<enabled>true</enabled>
</templateInfo>
<versionInfo>
<versionId>A</versionId>
<iterationId>1</iterationId>
<versionLevel>1</versionLevel>
<series>wt.series.HarvardSeries</series>
<versionPosition>1</versionPosition>
</versionInfo>
<lifecycleInfo>
<lifecycleTemplateName>Basic</lifecycleTemplateName>
<lifecycleState>INWORK</lifecycleState>
</lifecycleInfo>
<teamIdentity> ((null))</teamIdentity>
<externalTypeId>WCTYPE|wt.change2.WTChangeActivity2|ext.kalypso.kalypsoChangeTask</externalTypeId>
<AdHocACLEntrySet></AdHocACLEntrySet>
<SecurityLabels></SecurityLabels>
</WTChangeActivity2>
You might be getting my replies out of order. PTC says this is not possible to load via CSV to XML.
Nevermind: https://www.ptc.com/en/support/article/CS77387?source=search
I looked at the csvmapfile.txt and saw this block:
CreateChangeLinkBegin~create~wt.change2.LoadChange.createChangeLinkBegin
CreateChangeLinkEnd~create~wt.change2.LoadChange.createChangeLinkEnd
That trigged my memory that these needed to be FlexibleChangeLink but I did not see any place where the link was defined. In searching knowledge base, saw the article explaining it was not possible. Either it truly is not or they have remove the how from the csvmap file.
Possible with Bulk Migrator (https://www.ptc.com/en/support/article/cs265269?source=bloop) or you might need to write your own loaded.