# Most of my automation script got deleted?

**URL:** <https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [December 27, 2018, 1:40am UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005 "2018-12-27T01:40:19Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![vweerasinghe](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@vweerasinghe](https://forum.katalon.com/u/vweerasinghe)\
**Post date:** [December 27, 2018, 1:40am UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/1 "2018-12-27T01:40:19Z")

</div>

Hey everyone,  
I wrote a 800+ step test case; I experienced an error around 800 and the work around was to start an new test case, so I used a Call test case method. I believe the error was “Method overload” or something like that. I opened the test case today and for some reason, about 700 steps were deleted? I have no clue why. I should have closed Katalon studio the way I normally do. I am not sure if I accidently deleted these steps or if this is an issue outside of the user.

If I did delete these steps, is there any way for me to get those steps back?

If the deletion was caused by a Katalon issue, is there any way for me to get those steps back?

Kind Regards

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [December 27, 2018, 3:23am UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/2 "2018-12-27T03:23:09Z")

</div>

Could you please take a look into the _Scripts_ directory using OS’s file explorer?

---

<div class="post-metadata">

**Author:** ![vweerasinghe](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@vweerasinghe](https://forum.katalon.com/u/vweerasinghe)\
**Post date:** [December 27, 2018, 10:46pm UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/3 "2018-12-27T22:46:59Z")

</div>

I took a look at the Scripts folder that is located within the respective Project folder. It contains a groovy file and I opened it using notepad. It does not contain the missing information.

---

<div class="post-metadata">

**Author:** ![vweerasinghe](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@vweerasinghe](https://forum.katalon.com/u/vweerasinghe)\
**Post date:** [January 15, 2019, 2:27am UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/4 "2019-01-15T02:27:25Z")

</div>

Hi Devalex88,

I believe I found the a bug in Katalon Studio.

To replicate:

1. Draft an automation script with 10 lines of code.
2. In script view, comment out an end chunk such as line 6 through 10 or 7 through 10.
3. Switch to Manual View.
4. Right click line 4. Hold down “Shift” button and right click line 2. This will select lines 2 through 4. Click Delete icon(trash symbol).
5. Switch to Script View.

Expected: Lines 2 to 4 are deleted.  
Actual: Lines 2 to 4 and commented out end chunk(lines 6-10 or 7-10) are deleted.

I believe this bug is what caused the original issue I posted.

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [January 15, 2019, 3:38am UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/5 "2019-01-15T03:38:11Z")

</div>

@vweerasinghe Thank you so much for the report.

@Loan_Tran @Alice Please try to reproduce.

---

<div class="post-metadata">

**Author:** ![Loan\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/loan_tran/32/11091_2.png) [@Loan\_Tran](https://forum.katalon.com/u/Loan_Tran)\
**Post date:** [January 16, 2019, 6:58am UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/6 "2019-01-16T06:58:45Z")

</div>

Hi @vweerasinghe,  
An issue has just been submitted to Katalon team to fix your bug: [https://github.com/kms-technology/katalon/issues/2040](https://github.com/kms-technology/katalon/issues/2040).  
We’re sorry that there is no way to get back your deleted lines once Katalon tool is closed.

---

<div class="post-metadata">

**Author:** ![Loan\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/loan_tran/32/11091_2.png) [@Loan\_Tran](https://forum.katalon.com/u/Loan_Tran)\
**Post date:** [January 17, 2019, 3:32am UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/7 "2019-01-17T03:32:37Z")

</div>

Hi @vweerasinghe,  
I get back after Katalon team’s discussion to inform you that the issue you’re facing is currently the limitation of Katalon Studio tool.  
You can add a command like println() at the end of the script to make sure that the lines you commented are not the last lines. This is a work-around solution for temporary.  
We’ll consider to fix this issue.

---

<div class="post-metadata">

**Author:** ![vweerasinghe](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@vweerasinghe](https://forum.katalon.com/u/vweerasinghe)\
**Post date:** [January 17, 2019, 5:09pm UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/8 "2019-01-17T17:09:49Z")

</div>

Great, thanks Loan!

---

<div class="post-metadata">

**Author:** ![vweerasinghe](https://avatars.discourse-cdn.com/v4/letter/v/977dab/32.png) [@vweerasinghe](https://forum.katalon.com/u/vweerasinghe)\
**Post date:** [January 17, 2019, 5:10pm UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/9 "2019-01-17T17:10:52Z")

</div>

Great, thanks @Loan_Tran!

---

<div class="post-metadata">

**Author:** ![Bhawna\_Rani](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/bhawna_rani/32/16104_2.png) [@Bhawna\_Rani](https://forum.katalon.com/u/Bhawna_Rani)\
**Post date:** [June 21, 2019, 12:10am UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/10 "2019-06-21T00:10:18Z")

</div>

@devalex88 Any idea when this issue will be fixed? this is very annoying, it deletes the hard work done when end lines are commented out just for testing something.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [June 20, 2020, 12:10am UTC](https://forum.katalon.com/t/most-of-my-automation-script-got-deleted/16005/11 "2020-06-20T00:10:20Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
