Legacy Knowledge Base
Published Jun. 30, 2025

Trying to save a form with many fields fails showing a blank page

Written By

Jorge García Jiménez

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • I'm creating a new form that has numerous fields.
  • At some point when I try to save the form it won't let me add any more fields: when I try to save it, a blank page appears and the error below is shown in the logs:
    PortletServlet:117] null
    javax.portlet.PortletException: java.lang.IllegalStateException: The property "serializedFormContext" is required
    at com.liferay.portal.kernel.portlet.bridges.mvc.BaseTransactionalMVCActionCommand.processAction(BaseTransactionalMVCActionCommand.java:58) ~[portal-kernel.jar:?]
    ....
    Caused by: java.lang.IllegalStateException: The property "serializedFormContext" is required
    at com.liferay.dynamic.data.mapping.form.builder.internal.context.DDMFormContextToDDMForm.deserialize(DDMFormContextToDDMForm.java:77) ~[?:?]
  • Is there any limitation regarding the number of fields in a form?

Environment

  • Liferay DXP 7.4

Resolution

  • This is a known issue, but there's an existing workaround.
  • Modify default value of the property com.liferay.portal.kernel.upload.FileItem.threshold.size in portal-ext.properties. Its default value is 1048576 (1 MB). Increase it to 2097152 (2 MB) or more.
  • If the new value is higher than 2 MB, and you are using tomcat, you also have to modify server.xml file increasing the maxPostSize value. 
    <Connector port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000"
    redirectPort="8443" URIEncoding="UTF-8"
    maxPostSize="8000000" />

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base