TMA-0115: Timesheet not found error, when trying to save a timesheet with a high amount of tasks on the PPM Classic UI

Document ID : KB000109657
Last Modified Date : 18/12/2018
Show Technical Document Details
Issue:
When trying to save a timesheet with a high amount of tasks you get an error

1. In 15.4, and prior versions, the error is as follows:
  • In Chrome: TMA-0115: Timesheet not found. Most likely your session has been invalidated. Go back to the timesheet list.
  • In Internet Explorer (IE): ALERT: An expired request has been detected. Request has been canceled.

2. Starting in 15.4.1, the error is different:
"The server was unable to parse the parameters on the URL or from a form. This may be caused by too many parameters on the URL or form - the maximum allowed is 10000. The request has been rejected." 
 
Cause:
This is due to the number of tasks on a timesheet exceeding the allowed limit for PPM.

The scenarios can vary:

If you are using weekly time periods, a single timesheet will throw an error at saving time if more than 250 tasks are added
If you are using monthly time periods, the error will occur at around 70 tasks.

Engineering was involved on setting reasonable limits for timesheets.
These are the *recommended* maximums for each Timesheet period types. 
DAILY = 650 
WEEKLY = 250 
BIWEEKLY = 125 
MONTHLY = 60 
QUARTERLY = 30 
SEMIANNUAL = 15 
ANNUAL = 6 

PPM limits, between those the maximum allowed tasks are specified as governor limits.
See below a KB on these limits:
KB000009826
Resolution:

For SaaS Customers:

  • If you are unable to delete the tasks from the PPM UI, please contact CA Support for assistance

For On Premise Customers:

1. As the KB KB000009826 says the governor limits can be modified for On Premise customers, but it is not recommended to be changed higher to the defaults. Additionally in relation to timesheets, increasing the governor limit might not be enough.

2. If you need to set a bigger number of tasks on timesheets and increasing the governor limit does not help, PPM On Premise customers, please have a look to the below information. (PPM SaaS Customers, please contact CA Support for assistance) Increase the value and set the maxParameterCount to 20000 

{install.dir}\tomcat-app-deploy\conf\server.xml 

    <Connector port="85" protocol="HTTP/1.1" connectionTimeout="60000" secure="false" maxThreads="200" minSpareThreads="1" URIEncoding="UTF-8" useBodyEncodingForURI="true" maxHttpHeaderSize="65536" server="CA Clarity PPM" /> 

If this get's overwritten then update this file as below 

{install.dir}\.setup\scripts\j2ee\tomcat\deploy.xml 

2 places: 
    <xpath file="${app.absolute.deployDir}/conf/server.xml"> 
      <apply select="/Server/@port" value="${app.rmiPort}"/> 
      <apply parent="/Server/Service[@name='Catalina']"> 
        <element if="app.enable.port" removeOtherwise="true" name="Connector" select="Connector[(not(@protocol) or @protocol != 'AJP/1.3') and (not(@secure) or @secure != 'true')]"> 
          <attribute name="port" value="${app.web.port}"/> 
.... 
         <attribute name="maxParameterCount" value="20000"/> 

        <element if="app.enable.ssl.port" removeOtherwise="true" name="Connector" select="Connector[(not(@protocol) or @protocol != 'AJP/1.3') and @secure = 'true']" after="Connector"> 
          <attribute name="port" value="${app.ssl.port}"/> 
.... 
          <attribute name="maxParameterCount" value="20000"/> 

Setting the maxParameterCount to a higher value than 10000 will allow you to increase the number of tasks on timesheets.

3. If the above information does not help, please contact CA Support for further assistance. 
Additional Information:
In 15.4.1 the error you see is:
"The server was unable to parse the parameters on the URL or from a form. This may be caused by too many parameters on the URL or form - the maximum allowed is 10000. The request has been rejected." 

Note.
This error is identical to the message thrown on an IE related defect: DE42037
This is a different case though, as the timesheet error discussed on the current KB is also seen on Chrome browser.
Both issues are different.
  • Reference: KB000004711 if receiving the error TMA-0115 when trying to adjust a posted timesheet
  • Reference: KB000055124 if receiving the error TMA-0115 when logging in if Current Timesheet is set to homepage