Cannot save Entity : file patch length limit exceeded (255) . You should shorten the name and try again


#1

Hello everyone, in this article, the current version of Katalon Studio is often encountered in tests that perform “Entity: file patch length limit exceeded (308/255). I want to talk about the error message and how to fix it.

After recording the tests with record feature, the error message may be displayed during the recording of test steps and Object Repository contents as shown in the screenshot below.

The reason for this error message is that the length of any or several of the Object Repository contents to be recorded exceeds the acceptable length of the variable name field.

To resolve this error, first of all:

1-After the error message, the object name field exceeding the length is detected on the Web Recorder page.

2-Select the relevant object name and click the Show Captured Objects button and update the variable name so that it does not fit the 255 limit.

3-Then the saving process is confirmed again. At this stage, the “Can not save Entity: file patch length limit exceeded (308/255). The error message will no longer appear.


#2

Thanks for the tip.
Also, if you are on Windows 10, you can increase the character limit