EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB485882: Unable to create a complex derived metric – the POST request size exceeds size allowed by the Web Server.


Cezary Wisniewski

Senior Support Engineer • MicroStrategy


Issue originally observed while creating a long case statement for a derived metric in a dossier.

Starting with the release of Strategy ONE (March 2024), dossiers are also known as dashboards.

Symptom


We have identified a problem while creating a long case statement for a derived metric in a dossier, the formula can be validated correctly in the metric editor, but when clicking Save, the metric does not save and the derived metric Editor does not close like it should. The derived metric can’t be created successfully, and, in the process, a generic error message can pop up:
“There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.”
Error message:

ka0PW0000001JkCYAU_0EM4W000006yGNZ.jpeg

 

Error


While analyzing the network trace we’ve found out that the actual error message behind this problem is:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >
<html>
<head>
	
	<script>
		self.mstrResponse = {
				'errorMessage':  'We could not locate a task from the supplied request. Please specify a value for the \'taskId\' parameter. ',
				'statusCode':    303,
				
		};
		
		if(parent && parent.mstr && parent.mstr.http && parent.mstr.http.Governor){
			parent.mstr.http.Governor.onFrameProcLoad(self);
		}
	</script>
</head>
</body>
</html>

Cause


The root cause of the problem is the POST request size that exceeds size allowed by the Web Server (in this case Tomcat).
 

Action


A valid workaround is to edit the server.xml file in Tomcat’s config files and set parameter maxPostSize=”-1” in the “Connector” tag. After saving the changes Tomcat needs to be restarted and form now on it should allow to create very complex derived metrics.
C:\Program Files (x86)\Common Files\Strategy\Tomcat\apache-tomcat-9.0.58\conf\server.xml

ka0PW0000001JkCYAU_0EM4W000006yGNj.jpeg

 


Comment

0 comments

Details

Knowledge Article

Published:

January 4, 2023

Last Updated:

March 21, 2024