Unable to remove/delete object from the object repository.

I hope it gets fixed soon too as well. Crossing my fingers.

2 Likes

Currently using KS 5.4 on Windows 7. I have noticed when attempting to delete an object nothing really occurs within the KS ‘Test Explorer’ or the Windows Explorer. So the delete function does not appear to work within KS. When attempting to rename an object an error message displays informing me “Unable to rename Test Object.”. Now from this I have noticed within the Windows Explorer side the object actually does get renamed and refreshing the KS Test Explorer does not seem to help identify this. Here have been my work around steps for this until this bug is resolved:

  1. DELETE test object, right-click on the object and select ‘Open containing folder’ and delete the object from the Windows explorer. Go back to the KS Test Explorer and refresh the folder or project (Ctrl + F5).
  2. RENAMING test object, press F2 rename the object. Upon receiving the error click ‘OK’ and press F2 and rename the object the exact same way again. The second time always works, unless you rename differently again. Very odd.

This is a big pain when trying to manage a large object repo., hope this is resolved soon!

Jeff K.

4 Likes

Todd Bruss said:

With the project that is “corrupted”, I cannot move Repository objects in it from within Katalon Studio. Unable to move the selection: null

I tried making sure none of the directories and files are read only. some where but setting them to be read/write did not seem to help.

Wish there was tool that could go in an validate the project and fix any issues*.

*I found a good workaround to this problem. What I did was copy all my repository objects from within Katalon Studio, creating a new project and pasted the objects, it copied all of them and allow me to delete and move again.

Todd Bruss - from what I have noticed is the object actually does move folders on the backside but does not inform the KS Test Explorer correctly for some reason. I use Window 7, and would get this error and would check the Windows Explorer folder to see if it was being move, and in fact they were. When I did a folder refresh or project refresh the Test Explorer would update the objects to the correct folders… I know this doesn’t help with the bug you’re receiving, but I thought I would share my observations…

3 Likes

I am experiencing exactly the same situation referenced above. I am using Windows 10 and KS 5.8.0. I noticed this two revisions back and hoped that each new release would fix the issue. The only workaround I have been using is to move objects in Windows Explorer and refresh Katalon, however this does not always work, sometimes I have to close Katalon and reopen it just to see changes. Still awaiting a fix and hopefully a fix is available soon.

1 Like

Hi, I am also experiencing problems with the inability to remove Object from Repository. I checked on three versions of KS ( 5.9.1, 5.6.3 and 5.7.1) . The only way, that I found, to delete Object from Repository, is to directly remove it from the Project folder.
Yes I know, It’s not how it should be.

1 Like

Hi,

I’ve got a got a folder in the Object Repository where I can’'t see the web element, but I can use them in test cases and everything works fine. I have folders where I can’t rename or move the web elements.
The only way I can modify the web elements is to go in the source folder.

I’ve tried to copy files in a new project but it still doesn’t work.

1 Like

Has there been any movement on this from Katalon’s side? I am now experiencing this issue and it is a fairly big grievance for us.

This worked for me - thanks :slight_smile:

If you right click and click on open containing folder - Locate the file in question, then delete it from there - go back to katalon and refresh the folder/repository it used to be in and it should be deleted. It worked for me, hope it helps

Make sure that you are sure of deleting the correct file :slight_smile:

HI All,
just killed a day trying figure the same issue.

Symptoms:
Unable to rename object from Katalon Studio
Unable to delete object from Katalon Studio

Cause:
Corrupted object in the object repository. A single corrupted object will brick your object repository functionality.
I my case multiple engineers were working on the same project pushing and pulling their updates from GIT.
At some point they messed up the merge and 76 out of 750 object got rewritten with <<<<<< HEAD and REVISION notes, completely breaking XML structure of the object.

The fix:
Remove corrupted object(s) from repository. I created groovy script to iterate through files and folder in repository scanning each object source for <<<<<< HEAD comment. Your corruption maybe be different , but the cause is most likely the same .

An easy way to spot corrupted object(s) is by looking at the count of objects in Katalon project >> Object Repository and comparing it to objects located in project folder ..//projectName/Object Repository folder. Corrupted object(s) can be found in Object Repository folder, but will not show up in Katalon Studio.
Remove corrupted object(s), refresh project , try renaming any existing test object in Katalon Studio. It should work.

Example of corrupted object opened in Notepad++. You can see that XML structure of object properties is broken by commit comments.

5 Likes

Hi Everyone, I hope this can help you.

Steps to reproduce:
Go to you local and find the object repository of your project
Delete your object in Object Repository folder
Launch your Katalon Studio
Open your project
Go to your Repository and check if the object is already deleted.

1 Like

Thank you for your response. By discovering that it was a corrupt object, I began hunting down the culprit that was causing the same issue in my Object Repo. It turned out to be an object that contained the following text in its object file:

//<![CDATA[
(some XML)
//]]>

Checking the log, I saw that there were warnings/errors due to the text “//]]>” Is there a way for a developer to shine some light on this idea of “corrupt objects” that basically derails the Object Repo’s functionality?

3 Likes

I was able to solve this by copying each folder in my project repo to a new project and then performing test edits to see if they reflect in the explorer. Luckily I the folder containing the corrupt object wasn’t being used and I could delete the entire thing returning to normal functionality.

There needs to be an easier way of detecting and corrupt object. I saw no errors or logs pointing to an inaccessible file.

1 Like

I’m just seeing this now, but I can’t thank you enough! Sure enough, the <<<<< HEAD comment was in one of my objects after I pulled changes. Thank you!!!

1 Like

Yep it really is just a corrupt object somewhere. One corrupt objects makes sure your entire Object depository gets destroyed. I sorted out all my files and found one really weird file that had a bunch of broken XML code.

Same problem here. 31 folder 430 files. Not knowing which file is causing the problem. But the whole Repository isn’t accessible anymore for renamings, deletions, movement of objects.

@Pascal_Donauer

Please provide the physical file of a particular test object that you’re unable to modify, and also the log file under Help > Error Log.

Thanky for your reply. I deleted one meta file and changed in the xml the name accordingly to the file name ob the object itself in windows explorer. I think the problem is now solved for me.

1 Like

@ThanhTo

It happened again.
I changed the name of the test object which killed it.
Previous name: creditcard_parent_iframe

error.log (395.0 KB) eu_creditcard_parent_iframe_number.zip (506 Bytes)

Is there a way to open all the objects under object repository from one file? @Serhiy_Malyy