Dealing with – Tried to assign more tasks [xxx] than the maximum tasks per transaction threshold [110]. – error message

I had recently worked on an issue where the process had an ‘Assign Mutiple Tasks’ step in it. It was assigning the same task to many users (>110). During runtime, when this step was executed, it would fail with the below error message and stack trace:

Tried to assign more tasks [xxx] than the maximum tasks per transaction threshold [110].
StackTrace:
com.adobe.idp.taskmanager.dsc.client.task.TaskManagerException: Tried to assign more tasks [xxx] than the maximum tasks per transaction threshold [110].
                at com.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.createTaskFromDialogProperties(UserServiceImpl.java:607)
                at com.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.createLongLivedTask(UserServiceImpl.java:1657)
                at com.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.createMultipleTasks(UserServiceImpl.java:1484)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)
                at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
                at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassivationInterceptor.java:53)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
                at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)
                at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTransactionCMTAdapterBean.java:357)
                at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(EjbTransactionCMTAdapterBean.java:227)
                at sun.reflect.GeneratedMethodAccessor714.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
                at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
                at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
                at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
                at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
                at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
                at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
                at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
                at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
                at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
                at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
                at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
                at org.jboss.ejb.Container.invoke(Container.java:960)
                at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
                at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
                at $Proxy396.doSupports(Unknown Source)
                at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvider.java:104)
                at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInterceptor.java:72)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
                at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStrategyInterceptor.java:55)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
                at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateInterceptor.java:37)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
                at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterceptor.java:165)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
                at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
                at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
                at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
                at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
                at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:93)
                at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:209)
                at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:66)
                at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
                at com.adobe.idp.jobmanager.execution.workadapter.AbstractExecutableJob.invokeRequest(AbstractExecutableJob.java:127)
                at com.adobe.idp.jobmanager.execution.workadapter.PersistentExecutableJob.execute(PersistentExecutableJob.java:60)
                at com.adobe.idp.dsc.workmanager.adapter.UnManagedAsynchronousWorkAdapter.run(UnManagedAsynchronousWorkAdapter.java:39)
                at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
                at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
                at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
                at java.lang.Thread.run(Thread.java:619)

The # of max. users to whom a Task can be assigned in the ‘Assign Multiple Tasks’ step is controlled by a System parameter which is hard-coded to 110. To modify this value the below parameter needs to be set as a JVM setting:

Dcom.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.MAX_TASKS_PER_TRANSACTION

Once this value is set, the Application Server needs to be restarted for this value to take affect.
 

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 6.7/10 (21 votes cast)
Dealing with - Tried to assign more tasks [xxx] than the maximum tasks per transaction threshold [110]. - error message, 6.7 out of 10 based on 21 ratings

About Ameeth Palla

Ameeth Palla is a Technical Account Manager for the Adobe Digital Enterprise Platform team. Previously he was in the role of a Technical Expert for LiveCycle for the the Technical Response Team (what is now the Sr.Support Architect role). In both roles, Ameeth handled several technical issues for various customers and worked closely to aid with Sales POC's, Development/Implementation and Manitenance of LiveCycle/ADEP Projects. In the current role he handles several high profile customer accounts and provides guidance in all aspects of LiveCycle/ADEP. Also he is a Certified LiveCycle ES2.5 Process Management Expert. He was nominated for the 'Adobe Founders Award' and the 'Excellence Matters' award for LiveCycle/ADEP BU.
This entry was posted in ADEP, Adobe LiveCycle ES2 (9.0.x), Adobe LiveCycle ES3, Document Services and tagged , , , , , , , , . Bookmark the permalink.

2 Responses to Dealing with – Tried to assign more tasks [xxx] than the maximum tasks per transaction threshold [110]. – error message

  1. Prashast Saxena says:

    Really helpful document. But can you please point us where do we need to make changes for this parameter

    Dcom.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.MAX_TASKS_PER_TRANSACTION

  2. Ameeth Palla says:

    Hi Prashast,
    As I had mentioned in the article, this should be set as a regular JVM parameter. Depending on which App. server, the location to cnfigure JVM parameters will vary. The App. Server admin should be able to help you or you can refer the app. server documentation or Adobe LC Install documents to find how to configure JVM parameters for the app. server that you are using.
    Thanks
    Ameeth