Skip to main content
3-Newcomer
October 23, 2024
Solved

While loading the Change order Template using loadFromUtility getting the below error

  • October 23, 2024
  • 1 reply
  • 1520 views

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)

Best answer by avillanueva

You might be getting my replies out of order. PTC says this is not possible to load via CSV to XML.

1 reply

avillanueva
23-Emerald I
23-Emerald I
October 23, 2024

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).

3-Newcomer
October 23, 2024

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.

 

avillanueva
23-Emerald I
23-Emerald I
October 23, 2024

What would help is the source CSV or XML.