<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log</link><pubDate>Fri, 07 Nov 2025 16:13:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Kaushal Patel</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Current Revision posted to Appian Knowledge Base by Kaushal Patel on 11/7/2025 4:13:57 PM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large] &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;... Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp} &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like one of the following:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/0435.pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/1423.pastedimage1591257524200v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001) &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/8765.pastedimage1591257524201v2.png" /&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;The System Has Encountered an Error. &lt;br /&gt;HTTP Code: 413&lt;br /&gt;The system has encountered an error. Please try again later. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="symptom-2"&gt;Symptom 4&lt;/h3&gt;
&lt;p&gt;The user experiences a HTTP 500 Error when navigating to:&amp;nbsp;&lt;span&gt;&lt;code&gt;*/suite/rest/a/applications/latest/app/design/monitoring&lt;/code&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="symptom-3"&gt;&lt;/h3&gt;
&lt;h2 id="mcetoc_1i88k1rl90"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-11/5025.pastedimage1594385093480v1.png" /&gt;&lt;/h2&gt;
&lt;p&gt;The following&amp;nbsp;entries are printed to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre class="code-java"&gt;com.appiancorp.&lt;span class="code-keyword"&gt;rest&lt;/span&gt;.shared.FallbackExceptionMapper - Internal Server Error on REST API invocation. java.lang.IllegalArgumentException: Header message of length [x] received but the packetSize is only [&lt;span&gt;8,192&lt;/span&gt;]  at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:636)  at org.apache.coyote.ajp.AjpProcessor.receive(AjpProcessor.java:577)&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1i88k1rl91"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3 id="mcetoc_1i88k1rl92"&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxReceivedMessageSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id="mcetoc_1i88k1rl93"&gt;For Symptoms 3 and 4&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file under the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt;  &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat (Appian 21.2 and later)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties inside the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;custom.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file, located in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.ajp.maxPacketSize=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.maxHeaderSize=65535&lt;/pre&gt;
&lt;/div&gt;
&lt;strong&gt;Note&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;that the default value for the maxPacketSize is set to 8192 and for the maxHeaderSize, the max is 66536.&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Remember to update these configurations in&amp;nbsp;&lt;strong&gt;custom.properties.&amp;lt;env&amp;gt;&lt;/strong&gt;&amp;nbsp;located inside&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_REPO&amp;gt;/conf/&lt;/code&gt;&amp;nbsp;for future deployments.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Tomcat (Appian 21.1)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property inside the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;custom.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file, located in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.maxHeaderSize=65535&lt;/pre&gt;
&lt;/div&gt;
&lt;strong&gt;Note&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;The max value for maxHeaderSize is 66536.&lt;/li&gt;
&lt;li&gt;Find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag in the Tomcat&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP and HTTP protocol:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;packetSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the AJP tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot; packetSize=&amp;quot;24576&amp;quot;/&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="content-scrollable-wrapper"&gt;Restart the application server.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Remember to update these configurations in&amp;nbsp;&lt;strong&gt;custom.properties.&amp;lt;env&amp;gt;&lt;/strong&gt;&amp;nbsp;located inside&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_REPO&amp;gt;/conf/&lt;/code&gt;&amp;nbsp;for future deployments.&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Tomcat (Appian 20.4 and earlier)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag in the Tomcat&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP and HTTP protocol:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;packetSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the AJP tag, the default is set to 8192 and the max is 65536. Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxHttpHeaderSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the HTTP tag, the max is 65536:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot; packetSize=&amp;quot;24576&amp;quot;/&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot; maxHttpHeaderSize=&amp;quot;65535&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;workers.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching the AJP value previously set in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using Apache as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;In the Apache &lt;strong&gt;httpd.conf&lt;/strong&gt; file (located in &lt;code&gt;&amp;lt;APACHE_HOME&amp;gt;\conf&lt;/code&gt;), update or add the following properties to align with your Tomcat &lt;strong&gt;AJP&lt;/strong&gt; configuration values:
&lt;ul&gt;
&lt;li&gt;Set the maximum HTTP header field size to match the Tomcat &lt;code&gt;maxHttpHeaderSize&lt;/code&gt; value:
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;LimitRequestFieldSize 65535&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Set the AJP worker packet size to match the &lt;code&gt;AJP maxPacketSize&lt;/code&gt; configured in Tomcat&amp;rsquo;s &lt;code&gt;server.xml&lt;/code&gt; or Appian&amp;rsquo;s &lt;code&gt;custom.properties&lt;/code&gt;:
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;JKWorkerProperty worker.&amp;lt;node&amp;gt;.max_packet_size=X&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
where:
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&amp;lt;node&amp;gt;&lt;/strong&gt; is the Tomcat/AJP worker node name defined in your Apache configuration.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;X&lt;/strong&gt; is the same value as your AJP &lt;code&gt;maxPacketSize&lt;/code&gt; (for example, &lt;code&gt;24576&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Save your changes.&lt;/li&gt;
&lt;li&gt;Restart the Apache web server for the new configuration to take effect.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Console&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/8105.pastedimage1591257524201v3.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1i88k1rl94"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&lt;span&gt;&amp;nbsp;January&amp;nbsp;&lt;/span&gt;&lt;span&gt;2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/23</link><pubDate>Wed, 22 Jan 2025 22:45:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 23 posted to Appian Knowledge Base by pauline.delacruz on 1/22/2025 10:45:59 PM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large] &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;... Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp} &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like one of the following:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/0435.pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/1423.pastedimage1591257524200v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001) &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/8765.pastedimage1591257524201v2.png" /&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;The System Has Encountered an Error. &lt;br /&gt;HTTP Code: 413&lt;br /&gt;The system has encountered an error. Please try again later. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="symptom-2"&gt;Symptom 4&lt;/h3&gt;
&lt;p&gt;The user experiences a HTTP 500 Error when navigating to:&amp;nbsp;&lt;span&gt;&lt;code&gt;*/suite/rest/a/applications/latest/app/design/monitoring&lt;/code&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="symptom-3"&gt;&lt;/h3&gt;
&lt;h2 id="mcetoc_1i88k1rl90"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-11/5025.pastedimage1594385093480v1.png" /&gt;&lt;/h2&gt;
&lt;p&gt;The following&amp;nbsp;entries are printed to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre class="code-java"&gt;com.appiancorp.&lt;span class="code-keyword"&gt;rest&lt;/span&gt;.shared.FallbackExceptionMapper - Internal Server Error on REST API invocation. java.lang.IllegalArgumentException: Header message of length [x] received but the packetSize is only [&lt;span&gt;8,192&lt;/span&gt;]  at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:636)  at org.apache.coyote.ajp.AjpProcessor.receive(AjpProcessor.java:577)&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1i88k1rl91"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3 id="mcetoc_1i88k1rl92"&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxReceivedMessageSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id="mcetoc_1i88k1rl93"&gt;For Symptoms 3 and 4&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file under the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt;  &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat (Appian 21.2 and later)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties inside the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;custom.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file, located in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.ajp.maxPacketSize=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.maxHeaderSize=65535&lt;/pre&gt;
&lt;/div&gt;
&lt;strong&gt;Note&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;that the default value for the maxPacketSize is set to 8192 and for the maxHeaderSize, the max is 66536.&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Remember to update these configurations in&amp;nbsp;&lt;strong&gt;custom.properties.&amp;lt;env&amp;gt;&lt;/strong&gt;&amp;nbsp;located inside&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_REPO&amp;gt;/conf/&lt;/code&gt;&amp;nbsp;for future deployments.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Tomcat (Appian 21.1)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property inside the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;custom.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file, located in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.maxHeaderSize=65535&lt;/pre&gt;
&lt;/div&gt;
&lt;strong&gt;Note&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;The max value for maxHeaderSize is 66536.&lt;/li&gt;
&lt;li&gt;Find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag in the Tomcat&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP and HTTP protocol:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;packetSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the AJP tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot; packetSize=&amp;quot;24576&amp;quot;/&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="content-scrollable-wrapper"&gt;Restart the application server.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Remember to update these configurations in&amp;nbsp;&lt;strong&gt;custom.properties.&amp;lt;env&amp;gt;&lt;/strong&gt;&amp;nbsp;located inside&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_REPO&amp;gt;/conf/&lt;/code&gt;&amp;nbsp;for future deployments.&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Tomcat (Appian 20.4 and earlier)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag in the Tomcat&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP and HTTP protocol:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;packetSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the AJP tag, the default is set to 8192 and the max is 65536. Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxHttpHeaderSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the HTTP tag, the max is 65536:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot; packetSize=&amp;quot;24576&amp;quot;/&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot; maxHttpHeaderSize=&amp;quot;65535&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;workers.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching the AJP value previously set in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using Apache as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property&amp;nbsp;&lt;span&gt;&lt;code&gt;LimitRequestFieldSize&lt;/code&gt;&amp;nbsp;in the Apache&amp;nbsp;&lt;strong&gt;httpd.conf&amp;nbsp;&lt;/strong&gt;file (Located in the&amp;nbsp;&lt;code&gt;&amp;lt;APACHE_Home&amp;gt;\conf&lt;/code&gt;) matching the HTTP value previously&amp;nbsp;set in the&amp;nbsp;&lt;strong&gt;server.xml&amp;nbsp;&lt;/strong&gt;file:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LimitRequestFieldSize&lt;span&gt;&amp;nbsp;&lt;/span&gt;65535&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Restart Apache&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Console&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/8105.pastedimage1591257524201v3.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1i88k1rl94"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&lt;span&gt;&amp;nbsp;January&amp;nbsp;&lt;/span&gt;&lt;span&gt;2025&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/22</link><pubDate>Wed, 18 Sep 2024 15:55:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Ryan Good</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 22 posted to Appian Knowledge Base by Ryan Good on 9/18/2024 3:55:15 PM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large] &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;... Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp} &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like one of the following:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/8306.pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/8461.pastedimage1591257524200v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001) &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/3730.pastedimage1591257524201v2.png" /&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;The System Has Encountered an Error. &lt;br /&gt;HTTP Code: 413&lt;br /&gt;The system has encountered an error. Please try again later. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="symptom-2"&gt;Symptom 4&lt;/h3&gt;
&lt;p&gt;The user experiences a HTTP 500 Error when navigating to:&amp;nbsp;&lt;span&gt;&lt;code&gt;*/suite/rest/a/applications/latest/app/design/monitoring&lt;/code&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="symptom-3"&gt;&lt;/h3&gt;
&lt;h2&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-11/6443.pastedimage1594385093480v1.png" /&gt;&lt;/h2&gt;
&lt;p&gt;The following&amp;nbsp;entries are printed to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre class="code-java"&gt;com.appiancorp.&lt;span class="code-keyword"&gt;rest&lt;/span&gt;.shared.FallbackExceptionMapper - Internal Server Error on REST API invocation. java.lang.IllegalArgumentException: Header message of length [x] received but the packetSize is only [&lt;span&gt;8,192&lt;/span&gt;]  at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:636)  at org.apache.coyote.ajp.AjpProcessor.receive(AjpProcessor.java:577)&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxReceivedMessageSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptoms 3 and 4&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file under the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt;  &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat (Appian 21.2 and later)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties inside the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;custom.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file, located in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.ajp.maxPacketSize=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.maxHeaderSize=65535&lt;/pre&gt;
&lt;/div&gt;
&lt;strong&gt;Note&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;that the default value for the maxPacketSize is set to 8192 and for the maxHeaderSize, the max is 66536.&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Remember to update these configurations in&amp;nbsp;&lt;strong&gt;custom.properties.&amp;lt;env&amp;gt;&lt;/strong&gt;&amp;nbsp;located inside&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_REPO&amp;gt;/conf/&lt;/code&gt;&amp;nbsp;for future deployments.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Tomcat (Appian 21.1 and earlier)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag in the Tomcat&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP and HTTP protocol:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;packetSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the AJP tag, the default is set to 8192 and the max is 65536. Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxHttpHeaderSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the HTTP tag, the max is 65536:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot; packetSize=&amp;quot;24576&amp;quot;/&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot; maxHttpHeaderSize=&amp;quot;65535&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;workers.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching the AJP value previously set in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using Apache as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property&amp;nbsp;&lt;span&gt;&lt;code&gt;LimitRequestFieldSize&lt;/code&gt;&amp;nbsp;in the Apache&amp;nbsp;&lt;strong&gt;httpd.conf&amp;nbsp;&lt;/strong&gt;file (Located in the&amp;nbsp;&lt;code&gt;&amp;lt;APACHE_Home&amp;gt;\conf&lt;/code&gt;) matching the HTTP value previously&amp;nbsp;set in the&amp;nbsp;&lt;strong&gt;server.xml&amp;nbsp;&lt;/strong&gt;file:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LimitRequestFieldSize&lt;span&gt;&amp;nbsp;&lt;/span&gt;65535&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Restart Apache&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Console&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/4705.pastedimage1591257524201v3.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&lt;span&gt;&amp;nbsp;September&amp;nbsp;&lt;/span&gt;&lt;span&gt;2024&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/21</link><pubDate>Wed, 18 Sep 2024 15:42:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Ryan Good</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 21 posted to Appian Knowledge Base by Ryan Good on 9/18/2024 3:42:33 PM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large] &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;... Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp} &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like one of the following:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/8306.pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/8461.pastedimage1591257524200v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001) &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/3730.pastedimage1591257524201v2.png" /&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;The System Has Encountered an Error. &lt;br /&gt;HTTP Code: 413&lt;br /&gt;The system has encountered an error. Please try again later. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="symptom-2"&gt;Symptom 4&lt;/h3&gt;
&lt;p&gt;The user experiences a HTTP 500 Error when navigating to:&amp;nbsp;&lt;span&gt;&lt;code&gt;*/suite/rest/a/applications/latest/app/design/monitoring&lt;/code&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="symptom-3"&gt;&lt;/h3&gt;
&lt;h2&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-11/6443.pastedimage1594385093480v1.png" /&gt;&lt;/h2&gt;
&lt;p&gt;The following&amp;nbsp;entries are printed to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre class="code-java"&gt;com.appiancorp.&lt;span class="code-keyword"&gt;rest&lt;/span&gt;.shared.FallbackExceptionMapper - Internal Server Error on REST API invocation. java.lang.IllegalArgumentException: Header message of length [x] received but the packetSize is only [&lt;span&gt;8,192&lt;/span&gt;]  at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:636)  at org.apache.coyote.ajp.AjpProcessor.receive(AjpProcessor.java:577)&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxReceivedMessageSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptoms 3 and 4&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file under the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt;  &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat (Appian 21.2 and later)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties inside the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;custom.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file, located in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.ajp.maxPacketSize=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.maxHeaderSize=65535&lt;/pre&gt;
&lt;/div&gt;
&lt;strong&gt;Note&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;that the default value for the maxPacketSize is set to 8192 and for the maxHeaderSize, the max is 66536.&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Remember to update these configurations in&amp;nbsp;&lt;strong&gt;custom.properties.&amp;lt;env&amp;gt;&lt;/strong&gt;&amp;nbsp;located inside&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_REPO&amp;gt;/conf/&lt;/code&gt;&amp;nbsp;for future deployments.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Tomcat (Appian 20.4 and earlier)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag in the Tomcat&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP and HTTP protocol:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;packetSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the AJP tag, the default is set to 8192 and the max is 65536. Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxHttpHeaderSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the HTTP tag, the max is 65536:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot; packetSize=&amp;quot;24576&amp;quot;/&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot; maxHttpHeaderSize=&amp;quot;65535&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;workers.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching the AJP value previously set in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using Apache as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property&amp;nbsp;&lt;span&gt;&lt;code&gt;LimitRequestFieldSize&lt;/code&gt;&amp;nbsp;in the Apache&amp;nbsp;&lt;strong&gt;httpd.conf&amp;nbsp;&lt;/strong&gt;file (Located in the&amp;nbsp;&lt;code&gt;&amp;lt;APACHE_Home&amp;gt;\conf&lt;/code&gt;) matching the HTTP value previously&amp;nbsp;set in the&amp;nbsp;&lt;strong&gt;server.xml&amp;nbsp;&lt;/strong&gt;file:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LimitRequestFieldSize&lt;span&gt;&amp;nbsp;&lt;/span&gt;65535&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Restart Apache&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Console&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/4705.pastedimage1591257524201v3.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&lt;span&gt;&amp;nbsp;March&lt;/span&gt;&lt;span&gt;&amp;nbsp;2024&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/20</link><pubDate>Wed, 13 Mar 2024 20:17:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 20 posted to Appian Knowledge Base by pauline.delacruz on 3/13/2024 8:17:11 PM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large] &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;... Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp} &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like one of the following:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/8306.pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/8461.pastedimage1591257524200v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001) &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/3730.pastedimage1591257524201v2.png" /&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;The System Has Encountered an Error. &lt;br /&gt;HTTP Code: 413&lt;br /&gt;The system has encountered an error. Please try again later. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log. &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;h3 id="symptom-2"&gt;Symptom 4&lt;/h3&gt;
&lt;p&gt;The user experiences a HTTP 500 Error when navigating to:&amp;nbsp;&lt;span&gt;&lt;code&gt;*/suite/rest/a/applications/latest/app/design/monitoring&lt;/code&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="symptom-3"&gt;&lt;/h3&gt;
&lt;h2&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-11/6443.pastedimage1594385093480v1.png" /&gt;&lt;/h2&gt;
&lt;p&gt;The following&amp;nbsp;entries are printed to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre class="code-java"&gt;com.appiancorp.&lt;span class="code-keyword"&gt;rest&lt;/span&gt;.shared.FallbackExceptionMapper - Internal Server Error on REST API invocation. java.lang.IllegalArgumentException: Header message of length [x] received but the packetSize is only [&lt;span&gt;8,192&lt;/span&gt;]  at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:636)  at org.apache.coyote.ajp.AjpProcessor.receive(AjpProcessor.java:577)&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxReceivedMessageSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptoms 3 and 4&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file under the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt;  &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat (Appian 21.1 and later)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties inside the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;custom.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file, located in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.ajp.maxPacketSize=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;conf.appserver.maxHeaderSize=65535&lt;/pre&gt;
&lt;/div&gt;
&lt;strong&gt;Note&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;that the default value for the maxPacketSize is set to 8192 and for the maxHeaderSize, the max is 66536.&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Remember to update these configurations in&amp;nbsp;&lt;strong&gt;custom.properties.&amp;lt;env&amp;gt;&lt;/strong&gt;&amp;nbsp;located inside&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_REPO&amp;gt;/conf/&lt;/code&gt;&amp;nbsp;for future deployments.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Tomcat (Appian 20.4 and earlier)&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag in the Tomcat&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP and HTTP protocol:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;packetSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the AJP tag, the default is set to 8192 and the max is 65536. Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxHttpHeaderSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the HTTP tag, the max is 65536:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot; packetSize=&amp;quot;24576&amp;quot;/&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot; maxHttpHeaderSize=&amp;quot;65535&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;workers.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching the AJP value previously set in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file:&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using Apache as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property&amp;nbsp;&lt;span&gt;&lt;code&gt;LimitRequestFieldSize&lt;/code&gt;&amp;nbsp;in the Apache&amp;nbsp;&lt;strong&gt;httpd.conf&amp;nbsp;&lt;/strong&gt;file (Located in the&amp;nbsp;&lt;code&gt;&amp;lt;APACHE_Home&amp;gt;\conf&lt;/code&gt;) matching the HTTP value previously&amp;nbsp;set in the&amp;nbsp;&lt;strong&gt;server.xml&amp;nbsp;&lt;/strong&gt;file:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LimitRequestFieldSize&lt;span&gt;&amp;nbsp;&lt;/span&gt;65535&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Restart Apache&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Console&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/4705.pastedimage1591257524201v3.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&lt;span&gt;&amp;nbsp;March&lt;/span&gt;&lt;span&gt;&amp;nbsp;2024&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/19</link><pubDate>Wed, 10 Feb 2021 21:44:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Nicholas Van Dyke</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 19 posted to Appian Knowledge Base by Nicholas Van Dyke on 2/10/2021 9:44:13 PM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large] &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;... Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp} &lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like one of the following:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/5556.pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1591257524200v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001) &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1591257524201v2.png" /&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;The System Has Encountered an Error. &lt;br /&gt;HTTP Code: 413&lt;br /&gt;The system has encountered an error. Please try again later. &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log. &lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-2"&gt;Symptom 4&lt;/h3&gt;
&lt;p&gt;The user experiences a HTTP 500 Error when navigating to:&amp;nbsp;&lt;span&gt;&lt;code&gt;*/suite/rest/a/applications/latest/app/design/monitoring&lt;/code&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="symptom-3"&gt;&lt;/h3&gt;
&lt;h2&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1594385093480v1.png" /&gt;&lt;/h2&gt;
&lt;p&gt;The following&amp;nbsp;entries are printed to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code-java"&gt;com.appiancorp.&lt;span class="code-keyword"&gt;rest&lt;/span&gt;.shared.FallbackExceptionMapper - Internal Server Error on REST API invocation. java.lang.IllegalArgumentException: Header message of length [x] received but the packetSize is only [&lt;span&gt;8,192&lt;/span&gt;]  at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:636)  at org.apache.coyote.ajp.AjpProcessor.receive(AjpProcessor.java:577)&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;Cause&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2&gt;&lt;span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxReceivedMessageSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptoms 3 and 4&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file under the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt;  &lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag in the Tomcat&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP and HTTP protocol:&lt;br /&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;packetSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the AJP tag, the default is set to 8192 and the max is 65536. Add the &lt;code&gt;maxHttpHeaderSize&lt;/code&gt; property to the HTTP tag, the max is 65536:&lt;br /&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot; packetSize=&amp;quot;24576&amp;quot;/&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot; maxHttpHeaderSize=&amp;quot;65535&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If any of the referenced tags are not present in the &lt;strong&gt;server.xml&lt;/strong&gt; file, add them exactly as they are written in the above examples.&lt;/p&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;workers.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching the AJP value previously set in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using Apache as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property&amp;nbsp;&lt;span&gt;&lt;code&gt;LimitRequestFieldSize&lt;/code&gt; in the Apache&amp;nbsp;&lt;strong&gt;httpd.conf&amp;nbsp;&lt;/strong&gt;file (Located in the &lt;code&gt;&amp;lt;APACHE_Home&amp;gt;\conf&lt;/code&gt;) matching the HTTP value previously&amp;nbsp;set in the&amp;nbsp;&lt;strong&gt;server.xml&amp;nbsp;&lt;/strong&gt;file:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LimitRequestFieldSize&lt;span&gt;&amp;nbsp;&lt;/span&gt;65535&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Restart Apache&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Console&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1591257524201v3.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Self-managed.&lt;/p&gt;
&lt;p&gt;Last Reviewed: &lt;span&gt;January 2021&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/18</link><pubDate>Fri, 10 Jul 2020 12:45:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 18 posted to Appian Knowledge Base by James Lee on 7/10/2020 12:45:19 PM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt; &lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt; &lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt; &lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt; &lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large] &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt; &lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt; &lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt; &lt;pre&gt;&lt;code&gt;... Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp} &lt;/code&gt;&lt;/pre&gt; &lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt; &lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like one of the following:&lt;/p&gt; &lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/5556.pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1591257524200v1.png" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001) &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1591257524201v2.png" /&gt;&lt;/p&gt; &lt;pre&gt;&lt;code&gt;The System Has Encountered an Error. &lt;br /&gt;HTTP Code: 413&lt;br /&gt;The system has encountered an error. Please try again later. &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt; &lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log. &lt;/code&gt;&lt;/pre&gt; &lt;h3 id="symptom-2"&gt;Symptom 4&lt;/h3&gt; &lt;p&gt;The user experiences a HTTP 500 Error when navigating to:&amp;nbsp;&lt;span&gt;&lt;code&gt;*/suite/rest/a/applications/latest/app/design/monitoring&lt;/code&gt;:&lt;/span&gt;&lt;/p&gt; &lt;h3 id="symptom-3"&gt;&lt;/h3&gt; &lt;h2&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1594385093480v1.png" alt=" " /&gt;&lt;/h2&gt; &lt;p&gt;The following&amp;nbsp;entries are printed to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt; &lt;div class="content-scrollable-wrapper"&gt; &lt;pre class="code-java"&gt;com.appiancorp.&lt;span class="code-keyword"&gt;rest&lt;/span&gt;.shared.FallbackExceptionMapper - Internal Server Error on REST API invocation. java.lang.IllegalArgumentException: Header message of length [x] received but the packetSize is only [&lt;span&gt;8,192&lt;/span&gt;]  at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:636)  at org.apache.coyote.ajp.AjpProcessor.receive(AjpProcessor.java:577)&lt;/pre&gt; &lt;/div&gt; &lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt; &lt;h2&gt;Cause&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/h2&gt; &lt;h2&gt;&lt;span&gt;&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt; &lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt; &lt;h2 id="action"&gt;Action&lt;/h2&gt; &lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt; &lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt; &lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt; &lt;p&gt;For IIS, the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxReceivedMessageSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt; &lt;h3&gt;For Symptoms 3 and 4&lt;/h3&gt; &lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt; &lt;h4&gt;JBoss&lt;/h4&gt; &lt;ol&gt; &lt;li&gt;Add the following properties to the JBoss&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file under the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag:&lt;br /&gt; &lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt; &lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt;  &lt;/pre&gt; &lt;/li&gt; &lt;li&gt;Restart the application server.&lt;/li&gt; &lt;/ol&gt; &lt;h4&gt;Tomcat&lt;/h4&gt; &lt;ol&gt; &lt;li&gt;Find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag in the Tomcat&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP and HTTP protocol:&lt;br /&gt; &lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt; &lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot;/&amp;gt; &lt;/pre&gt; &lt;/li&gt; &lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;packetSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the AJP tag, the default is set to 8192 and the max is 65536. Add the &lt;code&gt;maxHttpHeaderSize&lt;/code&gt; property to the HTTP tag, the max is 65536:&lt;br /&gt; &lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot; packetSize=&amp;quot;24576&amp;quot;/&lt;/span&gt;&amp;gt;&lt;/pre&gt; &lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot; maxHttpHeaderSize=&amp;quot;65535&amp;quot;/&amp;gt; &lt;/pre&gt; &lt;/li&gt; &lt;li&gt;Restart the application server.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If any of the referenced tags are not present in the &lt;strong&gt;server.xml&lt;/strong&gt; file, add them exactly as they are written in the above examples.&lt;/p&gt; &lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt; &lt;ol&gt; &lt;li&gt;Add the following property to the IIS&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;workers.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching the AJP value previously set in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file:&lt;br /&gt; &lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt; &lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt; &lt;/li&gt; &lt;li&gt;Restart IIS.&lt;/li&gt; &lt;/ol&gt; &lt;h4&gt;Additional Configurations if Using Apache as a Web Server&lt;/h4&gt; &lt;ol&gt; &lt;li&gt;Add the following property&amp;nbsp;&lt;span&gt;&lt;code&gt;LimitRequestFieldSize&lt;/code&gt; in the Apache&amp;nbsp;&lt;strong&gt;httpd.conf&amp;nbsp;&lt;/strong&gt;file (Located in the &lt;code&gt;&amp;lt;APACHE_Home&amp;gt;\conf&lt;/code&gt;) matching the HTTP value previously&amp;nbsp;set in the&amp;nbsp;&lt;strong&gt;server.xml&amp;nbsp;&lt;/strong&gt;file:&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt; &lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LimitRequestFieldSize&lt;span&gt;&amp;nbsp;&lt;/span&gt;65535&lt;/pre&gt; &lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Restart Apache&lt;/span&gt;&lt;/p&gt; &lt;p&gt;If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/p&gt; &lt;ol&gt; &lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode. &lt;ol&gt; &lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt; &lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt; &lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt; &lt;li&gt;Select the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Console&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tab.&lt;/li&gt; &lt;li&gt;Run the following string within the IE Dev Console:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt; &lt;li&gt;Press the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt; &lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1591257524201v3.png" /&gt;&lt;/li&gt; &lt;/ol&gt; &lt;h2&gt;Affected Versions&lt;/h2&gt; &lt;p&gt;This article applies to all versions of Appian Self-managed.&lt;/p&gt; &lt;p&gt;Last Reviewed: July 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/17</link><pubDate>Wed, 17 Jun 2020 20:59:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 17 posted to Appian Knowledge Base by Rebecca Jonas on 6/17/2020 8:59:52 PM&lt;br /&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like one of the following:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/5556.pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1591257524200v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1591257524201v2.png" /&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;The System Has Encountered an Error. &lt;br /&gt;HTTP Code: 413&lt;br /&gt;The system has encountered an error. Please try again later.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;maxReceivedMessageSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;standalone.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file under the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tag in the Tomcat&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP and HTTP protocol:&lt;br /&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;packetSize&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;property to the AJP tag, the default is set to 8192 and the max is 65536. Add the &lt;code&gt;maxHttpHeaderSize&lt;/code&gt; property to the HTTP tag, the max is 65536:&lt;br /&gt;
&lt;pre&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot; packetSize=&amp;quot;24576&amp;quot;/&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;Connector port=&amp;quot;9080&amp;quot; protocol=&amp;quot;HTTP/1.1&amp;quot; connectionTimeout=&amp;quot;20000&amp;quot; redirectPort=&amp;quot;8443&amp;quot; maxHttpHeaderSize=&amp;quot;65535&amp;quot;/&amp;gt; &lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If any of the referenced tags are not present in the &lt;strong&gt;server.xml&lt;/strong&gt; file, add them exactly as they are written in the above examples.&lt;/p&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;workers.properties&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file (Located in the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching the AJP value previously set in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;server.xml&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using Apache as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property&amp;nbsp;&lt;span&gt;&lt;code&gt;LimitRequestFieldSize&lt;/code&gt; in the Apache&amp;nbsp;&lt;strong&gt;httpd.conf&amp;nbsp;&lt;/strong&gt;file (Located in the &lt;code&gt;&amp;lt;APACHE_Home&amp;gt;\conf&lt;/code&gt;) matching the HTTP value previously&amp;nbsp;set in the&amp;nbsp;&lt;strong&gt;server.xml&amp;nbsp;&lt;/strong&gt;file:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; LimitRequestFieldSize&lt;span&gt;&amp;nbsp;&lt;/span&gt;65535&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Restart Apache&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Tools&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Console&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1591257524201v3.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian On-Premise.&lt;/p&gt;
&lt;p&gt;Last Reviewed: June 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/16</link><pubDate>Mon, 02 Sep 2019 05:52:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 16 posted to Appian Knowledge Base by Parmida Borhani on 9/2/2019 5:52:48 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like one of the following:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/413Error.png" /&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;The System Has Encountered an Error. &lt;br /&gt;HTTP Code: 413&lt;br /&gt;The system has encountered an error. Please try again later.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;code&gt;maxReceivedMessageSize&lt;/code&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt; tag in the Tomcat &lt;strong&gt;server.xml&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the &lt;code&gt;packetSize&lt;/code&gt; property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/div&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select &lt;strong&gt;Tools&lt;/strong&gt; &amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Console&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console: &lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/IEConsole.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: September 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/15</link><pubDate>Mon, 02 Sep 2019 05:52:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 15 posted to Appian Knowledge Base by Parmida Borhani on 9/2/2019 5:52:16 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a generic error like on of the following:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/413Error.png" /&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;The System Has Encountered an Error. &lt;br /&gt;HTTP Code: 413&lt;br /&gt;The system has encountered an error. Please try again later.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;code&gt;maxReceivedMessageSize&lt;/code&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt; tag in the Tomcat &lt;strong&gt;server.xml&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the &lt;code&gt;packetSize&lt;/code&gt; property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/div&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select &lt;strong&gt;Tools&lt;/strong&gt; &amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Console&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console: &lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/IEConsole.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: September 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/14</link><pubDate>Mon, 02 Sep 2019 05:50:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 14 posted to Appian Knowledge Base by Parmida Borhani on 9/2/2019 5:50:06 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;code&gt;maxReceivedMessageSize&lt;/code&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt; tag in the Tomcat &lt;strong&gt;server.xml&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the &lt;code&gt;packetSize&lt;/code&gt; property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/div&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Attempt to reproduce the issue while using the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still present, create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart the browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select &lt;strong&gt;Tools&lt;/strong&gt; &amp;gt;&amp;nbsp;&lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Console&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console: &lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be output on the console:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/IEConsole.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: September 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/13</link><pubDate>Mon, 02 Sep 2019 05:39:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 13 posted to Appian Knowledge Base by Parmida Borhani on 9/2/2019 5:39:57 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, the following error can be observed in the&amp;nbsp;&lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;code&gt;maxReceivedMessageSize&lt;/code&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt; tag in the Tomcat &lt;strong&gt;server.xml&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the &lt;code&gt;packetSize&lt;/code&gt; property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to the IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/div&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Test whether the issue if the issue can be reproduced while&amp;nbsp;the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still reproduced please create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart your browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and&amp;nbsp;the user is on Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select &lt;strong&gt;Tools&lt;/strong&gt; &amp;gt; Select &lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Console&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console: &lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be outputted on the console:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/IEConsole.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: September 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/12</link><pubDate>Mon, 02 Sep 2019 05:38:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 12 posted to Appian Knowledge Base by Parmida Borhani on 9/2/2019 5:38:00 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, you will see the following error in &lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, we need to raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;code&gt;maxReceivedMessageSize&lt;/code&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt; tag in the Tomcat &lt;strong&gt;server.xml&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the &lt;code&gt;packetSize&lt;/code&gt; property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to your IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/div&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Test whether the issue if the issue can be reproduced while&amp;nbsp;the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still reproduced please create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart your browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and you are using Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select &lt;strong&gt;Tools&lt;/strong&gt; &amp;gt; Select &lt;strong&gt;Developer Tools&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;Console&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console: &lt;code&gt;javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Press the &lt;strong&gt;Enter&lt;/strong&gt;&amp;nbsp;key.&lt;/li&gt;
&lt;li&gt;The following should be outputted on the console:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/IEConsole.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:September 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, 413, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/11</link><pubDate>Mon, 02 Sep 2019 05:35:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 11 posted to Appian Knowledge Base by Parmida Borhani on 9/2/2019 5:35:47 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img alt=" " src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, you will see the following error in &lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, we need to raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;code&gt;maxReceivedMessageSize&lt;/code&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt; tag in the Tomcat &lt;strong&gt;server.xml&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the &lt;code&gt;packetSize&lt;/code&gt; property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to your IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
If Error Code 413 only occurs for one user please proceed with the following steps:&lt;/div&gt;
&lt;ol&gt;
&lt;li class="row content_container"&gt;Test whether the issue if the issue can be reproduced while&amp;nbsp;the browser&amp;#39;s Private/Incognito mode.
&lt;ol&gt;
&lt;li class="row content_container"&gt;If the issue cannot be reproduced in Private/Incognito mode, continue with step 2.&lt;/li&gt;
&lt;li class="row content_container"&gt;If it the issue is still reproduced please create a support case with Appian Support.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li class="row content_container"&gt;Clear the cache and all cookies on your browser using the instructions provided in the browser documentation.&lt;/li&gt;
&lt;li class="row content_container"&gt;Restart your browser and attempt to repeat the action that caused the 413 error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the steps above do not resolve the issue and you are using Internet Explorer, continue with the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select Tools &amp;gt; Select &amp;#39;Developer Tools&amp;#39;.&lt;/li&gt;
&lt;li&gt;Select the Console tab.&lt;/li&gt;
&lt;li&gt;Run the following string within the IE Dev Console: javascript:document.execCommand(&amp;quot;ClearAuthenticationCache&amp;quot;);&lt;/li&gt;
&lt;li&gt;Press the &amp;#39;Enter&amp;#39; key.&lt;/li&gt;
&lt;li&gt;The following should be outputted on the console:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/IEConsole.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:September 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/10</link><pubDate>Tue, 13 Nov 2018 19:30:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 10 posted to Appian Knowledge Base by Parmida Borhani on 11/13/2018 7:30:04 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, you will see the following error in &lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, we need to raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;code&gt;maxReceivedMessageSize&lt;/code&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt; tag in the Tomcat &lt;strong&gt;server.xml&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the &lt;code&gt;packetSize&lt;/code&gt; property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to your IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart IIS.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/9</link><pubDate>Mon, 12 Nov 2018 11:06:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 9 posted to Appian Knowledge Base by Jordan Horwat on 11/12/2018 11:06:45 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, you will see the following error in &lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, we need to raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;code&gt;maxReceivedMessageSize&lt;/code&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;code&gt;LimitRequestBody&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &lt;code&gt;&amp;lt;connector&amp;gt;&lt;/code&gt; tag in the Tomcat &lt;strong&gt;server.xml&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the &lt;code&gt;packetSize&lt;/code&gt; property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to your IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/8</link><pubDate>Mon, 12 Nov 2018 11:05:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 8 posted to Appian Knowledge Base by Jordan Horwat on 11/12/2018 11:05:38 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, you will see the following error in &lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, we need to raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;strong&gt;maxReceivedMessageSize&lt;/strong&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;strong&gt;LimitRequestBody&lt;/strong&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &amp;lt;connector&amp;gt; tag in the Tomcat server.xml file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the packetSize property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to your IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/7</link><pubDate>Mon, 12 Nov 2018 11:00:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Jordan Horwat on 11/12/2018 11:00:27 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, you will see the following error in &lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, we need to raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;strong&gt;maxReceivedMessageSize&lt;/strong&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;strong&gt;LimitRequestBody&lt;/strong&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;
&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &amp;lt;connector&amp;gt; tag in the Tomcat server.xml file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the packetSize property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to your IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/6</link><pubDate>Mon, 12 Nov 2018 10:57:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Jordan Horwat on 11/12/2018 10:57:16 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, you will see the following error in &lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, we need to raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;strong&gt;maxReceivedMessageSize&lt;/strong&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;strong&gt;LimitRequestBody&lt;/strong&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;
&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &amp;lt;connector&amp;gt; tag in the Tomcat server.xml file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the packetSize property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to your IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
worker.ajp13w2.max_packet_size=24576&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/5</link><pubDate>Mon, 12 Nov 2018 10:36:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Jordan Horwat on 11/12/2018 10:36:08 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, you will see the following error in &lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, we need to raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;strong&gt;maxReceivedMessageSize&lt;/strong&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;strong&gt;LimitRequestBody&lt;/strong&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;
&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &amp;lt;connector&amp;gt; tag in the Tomcat server.xml file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Add the packetSize property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to your IIS &lt;strong&gt;workers.properties&lt;/strong&gt; file (Located in the directory &lt;code&gt;&amp;lt;ISAPI_HOME&amp;gt;\conf&lt;/code&gt;) matching value previously set to the &lt;strong&gt;server.xml&lt;/strong&gt; file:&lt;br /&gt; &lt;code&gt;worker.ajp13w1.max_packet_size=24576&lt;/code&gt;&lt;br /&gt;&lt;code&gt; worker.ajp13w2.max_packet_size=24576&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1161 "HTTP/1.1 413 Request Entity Too Large"/"Email body failed to render" errors thrown in application server log</title><link>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log/revision/4</link><pubDate>Mon, 12 Nov 2018 10:21:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b8edb99a-6d49-4d2b-84a7-12ded5f033c8</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/378/kb-1161-http-1-1-413-request-entity-too-large-email-body-failed-to-render-errors-thrown-in-application-server-log#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Jordan Horwat on 11/12/2018 10:21:52 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;Users may experience one of the following symptoms:&lt;/p&gt;
&lt;h3 id="symptom-1"&gt;Symptom 1&lt;/h3&gt;
&lt;p&gt;The HTTP File Upload Smart Service fails to upload files larger than 64KB (the threshold can be larger) with the following message in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;com.appian.integration.httpclient.smartnode.HttpFileUploadSmartNode - ConnectorRuntimeException [title=HTTP error connecting to ##URL##, com.appian.integration.core.exception.ConnectorRuntimeException: HTTP/1.1 413 Request Entity Too Large]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In the smart service&amp;rsquo;s output, an HTTP response code of 413 is returned.&lt;/p&gt;
&lt;h3 id="symptom-2"&gt;Symptom 2&lt;/h3&gt;
&lt;p&gt;Appian auto-generated email alerts are not sent by the server with the following error in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
Caused by: java.io.IOException: Server returned HTTP response code: 414 for URL: XXXX
Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{filename=/ntf/emailHtml/XXXX_emailHtml.jsp}
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="symptom-3"&gt;Symptom 3&lt;/h3&gt;
&lt;p&gt;When a specific user performs an action that works for other users, like clicking on a form, task or report, they receive a pink box error:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png"&gt;&lt;img src="/resized-image/__size/1200x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1488312128147v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;An internal error has occurred. The page could not be loaded. [HTTP Code = 413] (APNX-1-4279-001)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If using Apache, you will see the following error in &lt;strong&gt;mod_jk.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[error] ajp_marshal_into_msgb::jk_ajp_common.c (469): failed appending the header value&amp;rdquo; in the mod_jk log.
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This usually occurs because the web server has received a request that is larger than the configured limit. The web server is currently configured to limit the file size and will throw an error when it receives a request that is too large.&lt;/p&gt;
&lt;p&gt;Depending on the exact action being performed by the user, and the subsequent request being made to the web server, the error could be due to the size of the request&amp;rsquo;s header, message body or the total size of the request as a whole.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To prevent this error from reoccurring, and to allow the requests to be fulfilled by the web server, we need to raise the maximum allowed size for the area of the message (header, body, etc) that is causing the error.&lt;/p&gt;
&lt;h3&gt;For Symptoms 1 and 2&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s body is too large:&lt;/p&gt;
&lt;p&gt;For IIS, the &lt;strong&gt;maxReceivedMessageSize&lt;/strong&gt; parameter will have to be increased. By default, it is 64KB to prevent DOS attacks. For Apache, the parameter to be modified is &lt;strong&gt;LimitRequestBody&lt;/strong&gt;.&lt;/p&gt;
&lt;h3&gt;For Symptom 3&lt;/h3&gt;
&lt;p&gt;When the size of the request&amp;rsquo;s header is too large:&lt;/p&gt;
&lt;h4&gt;JBoss&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following properties to the JBoss &lt;strong&gt;standalone.xml&lt;/strong&gt; file under the &lt;code&gt;&amp;lt;system-properties&amp;gt;&lt;/code&gt; tag:&lt;br /&gt;
&lt;pre&gt;&amp;lt;property name=&amp;quot;org.apache.coyote.http11.Http11Protocol.MAX_HEADER_SIZE&amp;quot; value=&amp;quot;65535&amp;quot;/&amp;gt;
&amp;lt;property name=&amp;quot;org.apache.coyote.ajp.MAX_PACKET_SIZE&amp;quot; value=&amp;quot;65536&amp;quot;/&amp;gt; 
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Tomcat&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Find the &amp;lt;connector&amp;gt; tag in the Tomcat server.xml file (Located in the directory &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;\tomcat\apache-tomcat\conf&lt;/code&gt;) for the AJP protocol:&lt;br /&gt; &lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add the packetSize property to the tag, the default is set to 8192 and the max is 65536:&lt;br /&gt; &lt;code&gt;&amp;lt;Connector port=&lt;span class="code-quote"&gt;&amp;quot;8009&amp;quot;&lt;/span&gt; protocol=&lt;span class="code-quote"&gt;&amp;quot;AJP/1.3&amp;quot;&lt;/span&gt; redirectPort=&lt;span class="code-quote"&gt;&amp;quot;8443&amp;quot;&lt;/span&gt; packetSize=&lt;span class="code-quote"&gt;&amp;quot;24576&amp;quot;&lt;/span&gt;/&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Additional Configurations if Using IIS as a Web Server&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Add the following property to your IIS workers.properties file (Located in the directory &amp;lt;ISAPI_HOME&amp;gt;\conf) matching value previously set to the server.xml file:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="code panel"&gt;
&lt;div class="codeContent panelContent"&gt;
&lt;pre class="code-java"&gt;worker.ajp13w1.max_packet_size=24576
worker.ajp13w2.max_packet_size=24576&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Restart the application server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: email, web server, application server, infrastructure&lt;/div&gt;
</description></item></channel></rss>