# Lost code and triggers

**URL:** <https://community.glideapps.com/t/lost-code-and-triggers/7411>\
**Category:** Ask for Help\
**Created:** [April 20, 2020, 9:44am UTC](https://community.glideapps.com/t/lost-code-and-triggers/7411 "2020-04-20T09:44:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mthakershi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mthakershi/32/1715_2.png) [@mthakershi](https://community.glideapps.com/u/mthakershi)\
**Post date:** [April 20, 2020, 9:44am UTC](https://community.glideapps.com/t/lost-code-and-triggers/7411/1 "2020-04-20T09:44:43Z")

</div>

Doesn’t feel like Magic to me!!!

I was getting an alert on my spreadsheets scripts code editor that my code might be upgraded to V8 runtime automatically if I didn’t update it manually. I wasn’t ready for it so I kept dismissing it. Now today I open my script editor and all my code is gone. It says it is running on V8 engine. I also checked my project and triggers in apps-script-dashboard and they’re gone too.

What happened? Can someone help? I am in shock.

Thanks for helping.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 23, 2020, 12:39am UTC](https://community.glideapps.com/t/lost-code-and-triggers/7411/2 "2020-04-23T00:39:58Z")

</div>

Are you sure you aren’t working with a copied sheet? I was just looking at some of my old scripts today and they are still there.

---

<div class="post-metadata">

**Author:** ![mthakershi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mthakershi/32/1715_2.png) [@mthakershi](https://community.glideapps.com/u/mthakershi)\
**Post date:** [April 23, 2020, 11:20am UTC](https://community.glideapps.com/t/lost-code-and-triggers/7411/3 "2020-04-23T11:20:44Z")

</div>

Believe me or not this happened to me. I filed an issue with google issue tracker as well. I restored my scripts from my local source. Then manually added triggers. Hard to believe but if something like this happens in production, it is scary.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 23, 2020, 12:51pm UTC](https://community.glideapps.com/t/lost-code-and-triggers/7411/4 "2020-04-23T12:51:42Z")

</div>

No, I’m not doubting you. Just making sure it wasn’t something else that happened. I’ve seen the V8 warning for awhile, but I have yet to notice any of my scripts being affected by it. Maybe google attempted to automatically migrate and it failed. I haven’t read anything that says they would delete old scripts. Wish I could help more.

[https://developers.google.com/apps-script/guides/v8-runtime#automatic\_migration\_of\_scripts\_to\_v8](https://developers.google.com/apps-script/guides/v8-runtime#automatic_migration_of_scripts_to_v8)
