Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I have written below files but giving error while loading business rule:
Business Rule:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE BusinessRule SYSTEM "standardX20.dtd">
<BusinessRule>
<ObjectID><localId>wt.businessRules.BusinessRule:151031</localId>
</ObjectID>
<key>RELEASE_TARGET</key>
<selector>RELEASE_TARGET</selector>
<name>com.ptc.windchill.enterprise.change2.change2ClientResource:RELEASE_TARGET_RULE_NAME</name>
<description>com.ptc.windchill.enterprise.change2.change2ClientResource:RELEASE_TARGET_RULE_DESC</description>
<enabled>true</enabled>
</BusinessRule>
Business Rule Link:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE BusinessRuleLink SYSTEM "standardX20.dtd">
<BusinessRuleLink>
<ObjectID><localId>wt.businessRules.BusinessRuleLink:151033</localId>
</ObjectID>
<ruleSet><ObjectReference><localID>wt.businessRules.BusinessRuleSet:45346</localId></ObjectReference></ruleSet>
<rule><ObjectReference><localID>wt.businessRules.BusinessRule:151031</localId></ObjectReference></rule>
<blockNumber>2</blockNumber>
</BuisnessRuleLink>
Business Rule Set:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE BusinessRuleSet SYSTEM "standardX20.dtd">
<BusinessRuleSet>
<ObjectID><localId>wt.businessRules.BusinessRuleSet:45346</localId>
</ObjectID>
<key>CHANGEABLE_PRE_RELEASE</key>
<name>com.ptc.windchill.enterprise.change2.change2ClientResource:CHANGE_PRE_RELEASE_RULESET_NAME</name>
<description>com.ptc.windchill.enterprise.change2.change2ClientResource:CHANGE_PRE_RELEASE_RULESET_DESC</description>
<enabled>true</enabled>
<overridable>true</overridable>
</BusinessRuleSet>
Error:
D:\ptc\Windchill_11.1\Windchill>windchill wt.load.LoadFromFile -d D:/ptc/Windchill_11.1/Windchill/loadFiles/BusinessObject/loadfile.xml
A commit cannot be done when a rollback is in progress. The following is the rollback stacktrace.
ROLLBACK: java.lang.Thread.getStackTrace(Thread.java:1559)
ROLLBACK: wt.pom.TransactionManager.rollbackTransaction(TransactionManager.java:748)
ROLLBACK: wt.pom.BasicTransactionMonitor.rollbackTransaction(BasicTransactionMonitor.java:77)
ROLLBACK: wt.pom.PersistentObjectManager.rollbackTransaction(PersistentObjectManager.java:427)
ROLLBACK: wt.pom.Transaction.rollback(Transaction.java:769)
ROLLBACK: wt.ixb.publicforapps.Importer.importRepository(Importer.java:2175)
ROLLBACK: wt.ixb.clientAccess.ImportFlowDecider.doImport(ImportFlowDecider.java:57)
ROLLBACK: wt.ixb.clientAccess.StandardIXBService.doImportImplSingleJar(StandardIXBService.java:2183)
ROLLBACK: wt.ixb.clientAccess.StandardIXBService.doImport(StandardIXBService.java:1384)
ROLLBACK: sun.reflect.GeneratedMethodAccessor555.invoke(Unknown Source)
ROLLBACK: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
ROLLBACK: java.lang.reflect.Method.invoke(Method.java:498)
ROLLBACK: wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)
ROLLBACK: com.sun.proxy.$Proxy248.doImport(Unknown Source)
ROLLBACK: wt.load.LoadImport.executeImport(LoadImport.java:66)
ROLLBACK: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ROLLBACK: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
ROLLBACK: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
ROLLBACK: java.lang.reflect.Method.invoke(Method.java:498)
ROLLBACK: wt.ixb.handlers.netmarkets.CsvIxHandler.invokeLoad(CsvIxHandler.java:545)
ROLLBACK: wt.ixb.handlers.netmarkets.CsvIxHandler.createObject(CsvIxHandler.java:241)
ROLLBACK: wt.ixb.actor.PickingExistingObjectActorForPersistable.createObject(PickingExistingObjectActorForPersistable.java:34)
ROLLBACK: wt.ixb.actor.ActorTemplateForPersistable._createObject(ActorTemplateForPersistable.java:340)
ROLLBACK: wt.ixb.publicforhandlers.ClassExporterImporterTemplate.createObjects(ClassExporterImporterTemplate.java:765)
ROLLBACK: wt.ixb.publicforhandlers.ClassExporterImporterTemplate.importElementsBatchDefault(ClassExporterImporterTemplate.java:652)
ROLLBACK: wt.ixb.publicforhandlers.ClassExporterImporterTemplate.importElement(ClassExporterImporterTemplate.java:452)
ROLLBACK: wt.ixb.publicforhandlers.ClassExporterImporterTemplate.importElements(ClassExporterImporterTemplate.java:494)
ROLLBACK: wt.ixb.publicforapps.Importer.importElements(Importer.java:1600)
ROLLBACK: wt.ixb.publicforapps.Importer.importElement(Importer.java:1546)
ROLLBACK: wt.ixb.publicforapps.Importer.doRealImport(Importer.java:1346)
ROLLBACK: wt.ixb.publicforapps.Importer.finalizeImport(Importer.java:570)
ROLLBACK: wt.load.StandardLoadService.importData(StandardLoadService.java:817)
ROLLBACK: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ROLLBACK: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
ROLLBACK: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
ROLLBACK: java.lang.reflect.Method.invoke(Method.java:498)
ROLLBACK: wt.method.MethodResultWriter.writeExternal(MethodResultWriter.java:165)
ROLLBACK: wt.method.MethodResult.writeExternal(MethodResult.java:226)
ROLLBACK: java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1456)
ROLLBACK: java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1430)
ROLLBACK: java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
ROLLBACK: java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
ROLLBACK: sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:290)
ROLLBACK: sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:367)
ROLLBACK: sun.rmi.transport.Transport$1.run(Transport.java:200)
ROLLBACK: sun.rmi.transport.Transport$1.run(Transport.java:197)
ROLLBACK: java.security.AccessController.doPrivileged(Native Method)
ROLLBACK: sun.rmi.transport.Transport.serviceCall(Transport.java:196)
ROLLBACK: sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
ROLLBACK: sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
ROLLBACK: sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
ROLLBACK: java.security.AccessController.doPrivileged(Native Method)
ROLLBACK: sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
ROLLBACK: java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
ROLLBACK: java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
ROLLBACK: java.lang.Thread.run(Thread.java:748)
No objects were imported due to the error.
Problem in export/import process.
Nested exception is: wt.pom.PersistenceException: A commit cannot be done when a rollback is in progress. The following is the rollback stacktrace.
ROLLBACK: java.lang.Thread.getStackTrace(Thread.java:1559)
ROLLBACK: wt.pom.TransactionManager.rollbackTransaction(TransactionManager.java:748)
ROLLBACK: wt.pom.BasicTransactionMonitor.rollbackTransaction(BasicTransactionMonitor.java:77)
ROLLBACK: wt.pom.PersistentObjectManager.rollbackTransaction(PersistentObjectManager.java:427)
ROLLBACK: wt.pom.Transaction.rollback(Transaction.java:769)
ROLLBACK: wt.ixb.publicforapps.Importer.importRepository(Importer.java:2175)
ROLLBACK: wt.ixb.clientAccess.ImportFlowDecider.doImport(ImportFlowDecider.java:57)
ROLLBACK: wt.ixb.clientAccess.StandardIXBService.doImportImplSingleJar(StandardIXBService.java:2183)
ROLLBACK: wt.ixb.clientAccess.StandardIXBService.doImport(StandardIXBService.java:1384)
ROLLBACK: sun.reflect.GeneratedMethodAccessor555.invoke(Unknown Source)
ROLLBACK: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
ROLLBACK: java.lang.reflect.Method.invoke(Method.java:498)
ROLLBACK: wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)
ROLLBACK: com.sun.proxy.$Proxy248.doImport(Unknown Source)
ROLLBACK: wt.load.LoadImport.executeImport(LoadImport.java:66)
ROLLBACK: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ROLLBACK: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
ROLLBACK: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
ROLLBACK: java.lang.reflect.Method.invoke(Method.java:498)
ROLLBACK: wt.ixb.handlers.netmarkets.CsvIxHandler.invokeLoad(CsvIxHandler.java:545)
ROLLBACK: wt.ixb.handlers.netmarkets.CsvIxHandler.createObject(CsvIxHandler.java:241)
ROLLBACK: wt.ixb.actor.PickingExistingObjectActorForPersistable.createObject(PickingExistingObjectActorForPersistable.java:34)
ROLLBACK: wt.ixb.actor.ActorTemplateForPersistable._createObject(ActorTemplateForPersistable.java:340)
ROLLBACK: wt.ixb.publicforhandlers.ClassExporterImporterTemplate.createObjects(ClassExporterImporterTemplate.java:765)
ROLLBACK: wt.ixb.publicforhandlers.ClassExporterImporterTemplate.importElementsBatchDefault(ClassExporterImporterTemplate.java:652)
ROLLBACK: wt.ixb.publicforhandlers.ClassExporterImporterTemplate.importElement(ClassExporterImporterTemplate.java:452)
ROLLBACK: wt.ixb.publicforhandlers.ClassExporterImporterTemplate.importElements(ClassExporterImporterTemplate.java:494)
ROLLBACK: wt.ixb.publicforapps.Importer.importElements(Importer.java:1600)
ROLLBACK: wt.ixb.publicforapps.Importer.importElement(Importer.java:1546)
ROLLBACK: wt.ixb.publicforapps.Importer.doRealImport(Importer.java:1346)
ROLLBACK: wt.ixb.publicforapps.Importer.finalizeImport(Importer.java:570)
ROLLBACK: wt.load.StandardLoadService.importData(StandardLoadService.java:817)
ROLLBACK: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ROLLBACK: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
ROLLBACK: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
ROLLBACK: java.lang.reflect.Method.invoke(Method.java:498)
ROLLBACK: wt.method.MethodResultWriter.writeExternal(MethodResultWriter.java:165)
ROLLBACK: wt.method.MethodResult.writeExternal(MethodResult.java:226)
ROLLBACK: java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1456)
ROLLBACK: java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1430)
ROLLBACK: java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
ROLLBACK: java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
ROLLBACK: sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:290)
ROLLBACK: sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:367)
ROLLBACK: sun.rmi.transport.Transport$1.run(Transport.java:200)
ROLLBACK: sun.rmi.transport.Transport$1.run(Transport.java:197)
ROLLBACK: java.security.AccessController.doPrivileged(Native Method)
ROLLBACK: sun.rmi.transport.Transport.serviceCall(Transport.java:196)
ROLLBACK: sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
ROLLBACK: sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
ROLLBACK: sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
ROLLBACK: java.security.AccessController.doPrivileged(Native Method)
ROLLBACK: sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
ROLLBACK: java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
ROLLBACK: java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
ROLLBACK: java.lang.Thread.run(Thread.java:748) Error loading data from file.
Hi,
Please send your error log to technical support. https://support.ptc.com/apps/case_logger_viewer/cs/auth/ssl/log
Make sure BusinessRuleValidator (that you defined as the selector in "BusinessRule") is implemented in the system. Check service.properties file for the service entry and restart windchill before loading the rules.
Hi @SU_10128205
The error is just information that something is wrong, but the root error is usually before the rollback
If I saw an error before the rollback I may say where is real trouble.
Method server contains really useful information what is wrong
Many times I found relevant information what was wrong in the input xml file from methodserver log
I know it is too long to read but helpful.
PetrH