When i save the object from spy web it display this type error "cannot save entity:file path length limit exceeded (329/255).You should shorten the name and try again."

when i save the object from spy web it display this type error “cannot save entity:file path length limit exceeded (329/255).You should shorten the name and try again.”
even i am tring with create new folder but still display this type of error.and also tring with change name of object but still facing this issue.
can anyone please tell me that what can i do in this situation.?
Here,add the screen short for easily understanding:-

Same issue was once discussed and addressed.

Which version of Katalon Studio do you use?

i am using the version of 7.2.6 but still facing this issue.

1 Like

Hey, @Jass. @ThanhTo. Do you hear us?

1 Like

CannotSaveEntity2

Ah, this is an unfortunate case. The locator contains a lot of whitespaces

The message says “file path length limit exceeded”. I guess, the message is inappropriate. May be it should have said “locator is too long”. I am not sure.

You can edit the expression manually to:

//*[contains(text(),'Shoes(22)')]

This expression is semantically equivalent to the original, and is much shorter.

I guess, it would be successfully saved.

@Jass

You can improve the Recorder tool. Currently it generates this:

//*[text()='xxxxxxxxxxxxxxxxxxxx' or .= 'xxxxxxxxxxxxxxxxxxxx']

This is verbose. The following one is equivalent, and much shorter.

//*[text()='xxxxxxxxxxxxxxxxxxxx']

And the following one would be better:

//*[contains(text(),'wwww')]

where wwww is a shorter string derived from xxxxxxxxxxxxxxxxxxxx by triming leading and trailing whitespace characters including  .

2 Likes