182 total views, 3 views today

Primavera P6 API Error: Exceptions occurred while processing a batch of business objects

 

I have recieved the following error while importing large number of projects in Primavera P6 using Primavera P6 API

 

com.primavera.integration.client.xml.xmlimporter.XMLImporterException:

    at com.primavera.integration.client.xml.xmlimporter.d.d.a(PersistenceProvExceptions occurred while processing a batch of business objects.iderImpl.java:131)

    at com.primavera.integration.client.xml.xmlimporter.handler.b.a(DefaultProcessor.java:732)

    at com.primavera.integration.client.xml.xmlimporter.d.a(ImportWorker.java:796)

    at com.primavera.integration.client.xml.xmlimporter.d.a(ImportWorker.java:304)

    at com.primavera.integration.client.xml.xmlimporter.d.a(ImportWorker.java:216)

    at com.primavera.integration.client.xml.xmlimporter.d.a(ImportWorker.java:100)

    at com.primavera.integration.client.xml.xmlimporter.XMLImporter.createNewProject(XMLImporter.java:543)

    at com.gm.ImportProjectXML.main(ImportProjectXML.java:56)

Caused by: com.primavera.BatchException: Exceptions occurred while processing a batch of business objects.

    at com.primavera.BatchException.addBatchException(BatchException.java:59)

    at com.primavera.bo.base.d.a(BatchCreateEngine.java:143)

    at com.primavera.bo.base.CreateEngineImpl.create(CreateEngineImpl.java:182)

    at com.primavera.bo.base.d.create(BatchCreateEngine.java:38)

    at com.primavera.bo.base.CreateEngineImpl.createBatch(CreateEngineImpl.java:131)

    at com.primavera.bo.remotable.ReqMgr.createObjectsWithWbsContext(ReqMgr.java:939)

    at com.primavera.bo.remotable.ReqMgr.createObjects(ReqMgr.java:717)

    at com.primavera.bo.remotable.qproxy.ReqMgr.createObjects(ReqMgr.java:600)

    at com.primavera.bo.DBReqMgr.createObjects(DBReqMgr.java:149)

    at com.primavera.integration.server.mediator.BusinessObjectMediator.create(BusinessObjectMediator.java:218)

    at com.primavera.integration.server.ServerFacadeBOMgr.create(ServerFacadeBOMgr.java:286)

    at com.primavera.integration.server.ServerFacade.create(ServerFacade.java:21)

    at com.primavera.integration.client.LocalSession.a(LocalSession.java:363)

    at com.primavera.integration.client.b.a(BOBase.java:357)

    at com.primavera.integration.client.BOHelperBase.a(BOHelperBase.java:46)

    at com.primavera.integration.client.bo.helper.UDFValueHelper.a(UDFValueHelper.java:376)

    at com.primavera.integration.client.bo.BOHelperImpl.create(BOHelperImpl.java:2212)

    at com.primavera.integration.client.xml.xmlimporter.d.d.a(PersistenceProviderImpl.java:236)

    at com.primavera.integration.client.xml.xmlimporter.d.d.c(PersistenceProviderImpl.java:333)

    at com.primavera.integration.client.xml.xmlimporter.d.d.b(PersistenceProviderImpl.java:144)

    at com.primavera.integration.client.xml.xmlimporter.d.d.a(PersistenceProviderImpl.java:123)

    … 7 more

Original Exception:

com.primavera.BatchException: Exceptions occurred while processing a batch of business objects.

    at com.primavera.BatchException.addBatchException(BatchException.java:59)

    at com.primavera.bo.base.d.a(BatchCreateEngine.java:143)

    at com.primavera.bo.base.CreateEngineImpl.create(CreateEngineImpl.java:182)

    at com.primavera.bo.base.d.create(BatchCreateEngine.java:38)

    at com.primavera.bo.base.CreateEngineImpl.createBatch(CreateEngineImpl.java:131)

    at com.primavera.bo.remotable.ReqMgr.createObjectsWithWbsContext(ReqMgr.java:939)

    at com.primavera.bo.remotable.ReqMgr.createObjects(ReqMgr.java:717)

    at com.primavera.bo.remotable.qproxy.ReqMgr.createObjects(ReqMgr.java:600)

    at com.primavera.bo.DBReqMgr.createObjects(DBReqMgr.java:149)

    at com.primavera.integration.server.mediator.BusinessObjectMediator.create(BusinessObjectMediator.java:218)

    at com.primavera.integration.server.ServerFacadeBOMgr.create(ServerFacadeBOMgr.java:286)

    at com.primavera.integration.server.ServerFacade.create(ServerFacade.java:21)

    at com.primavera.integration.client.LocalSession.a(LocalSession.java:363)

    at com.primavera.integration.client.b.a(BOBase.java:357)

    at com.primavera.integration.client.BOHelperBase.a(BOHelperBase.java:46)

    at com.primavera.integration.client.bo.helper.UDFValueHelper.a(UDFValueHelper.java:376)

    at com.primavera.integration.client.bo.BOHelperImpl.create(BOHelperImpl.java:2212)

    at com.primavera.integration.client.xml.xmlimporter.d.d.a(PersistenceProviderImpl.java:236)

    at com.primavera.integration.client.xml.xmlimporter.d.d.c(PersistenceProviderImpl.java:333)

    at com.primavera.integration.client.xml.xmlimporter.d.d.b(PersistenceProviderImpl.java:144)

    at com.primavera.integration.client.xml.xmlimporter.d.d.a(PersistenceProviderImpl.java:123)

    at com.primavera.integration.client.xml.xmlimporter.handler.b.a(DefaultProcessor.java:732)

    at com.primavera.integration.client.xml.xmlimporter.d.a(ImportWorker.java:796)

    at com.primavera.integration.client.xml.xmlimporter.d.a(ImportWorker.java:304)

    at com.primavera.integration.client.xml.xmlimporter.d.a(ImportWorker.java:216)

    at com.primavera.integration.client.xml.xmlimporter.d.a(ImportWorker.java:100)

    at com.primavera.integration.client.xml.xmlimporter.XMLImporter.createNewProject(XMLImporter.java:543)

    at com.gm.ImportProjectXML.main(ImportProjectXML.java:56)

 

 

Fix

 

Increasing the Maximum Lease Duration and Renewable Leases to True in the Primavera P6 admin config fix the above issue. Set the following properties highlighted in Yellow color for  the P6 congiration used by your Primavera P6 API/ Primavera P6 Webservices and restart the code. That’s it. Your code will run smoothly.  

 

092717_1953_1 Primavera P6 API Error: Exceptions occurred while processing a batch of business objects

govindan Primavera P6 API Error: Exceptions occurred while processing a batch of business objects
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply šŸ™‚
govindan Primavera P6 API Error: Exceptions occurred while processing a batch of business objects
Connect me
Like us on Facebook.
Connect!