Support Article

Maximum length for property is not working

SA-34072

Summary



Developers created a property with no maximum length.

Later, they updated the property and added a maximum length of 128.

After migrating the updated property to production errors indicating the content exceeds maximum length were observed.


Error Messages



"Field name -" is too long, maximum length allowed is 128.


Steps to Reproduce



Add a maximum length to a property that has existed for some time and has some saved instances with values greater than the new maximum length.


Root Cause



An issue in the custom application code or rules.

Resolution



Once a maximum length has been applied to a property, one can only make it shorter, not longer.

See: https://pdn.pega.com/sites/default/files/help_v722/procomhelpmain.htm#rule-/rule-obj-/rule-obj-property/advanced.htm

Published February 22, 2017 - Updated March 1, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.