# Corrupt Dynamo file

**URL:** <https://forum.dynamobim.com/t/corrupt-dynamo-file/102340>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 30, 2024, 8:19pm UTC](https://forum.dynamobim.com/t/corrupt-dynamo-file/102340 "2024-06-30T20:19:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiamaria](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@chiamaria](https://forum.dynamobim.com/u/chiamaria)\
**Post date:** [June 30, 2024, 8:19pm UTC](https://forum.dynamobim.com/t/corrupt-dynamo-file/102340/1 "2024-06-30T20:19:21Z")

</div>

I’ve been working on a Dynamo script and the laptop I’ve been using has started malfunctioning recently. I had saved my script just in the nick of time and started running it when my laptop suddenly switched off. When I turned it back on and tried to reopen my script, it said that it’s corrupted and can’t open it. This definitely isn’t a dynamo version issue as I opened another script successfully in the same version. It’s specifically this file and I’m sure it’s due to the laptop just switching off while I was in the middle of running it.

I’ve tried renaming it and also tried opening it in a later Revit version and no good. I’ve also cleared out the temp folder and still nothing. Has anyone come across this problem and found a way to fix it? I have a slightly older version of this script under a different name that I can always use if the worst comes to the worst, but I’ve put a few months of work into the script with thousands of lines of code and put quite a bit of work into it in the last couple of days and I’m not about to let it go.

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [June 30, 2024, 8:20pm UTC](https://forum.dynamobim.com/t/corrupt-dynamo-file/102340/2 "2024-06-30T20:20:10Z")

</div>

Have you tried making a copy?

---

<div class="post-metadata">

**Author:** ![chiamaria](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@chiamaria](https://forum.dynamobim.com/u/chiamaria)\
**Post date:** [June 30, 2024, 8:29pm UTC](https://forum.dynamobim.com/t/corrupt-dynamo-file/102340/3 "2024-06-30T20:29:00Z")

</div>

Yes I tried making a copy and saved it on my desktop and it won’t open either

---

<div class="post-metadata">

**Author:** ![Mike.Buttery](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mike.Buttery](https://forum.dynamobim.com/u/Mike.Buttery)\
**Post date:** [June 30, 2024, 11:47pm UTC](https://forum.dynamobim.com/t/corrupt-dynamo-file/102340/4 "2024-06-30T23:47:15Z")

</div>

You could check your backup folder `%APPDATA%\Dynamo\Dynamo Revit\backup`  
Try opening the file in notepad or other text editor - it should be a readable JSON and start something like this

```json
{
  "Uuid": "419341d0-9071-411c-9835-0400cb7bb997",
  "IsCustomNode": false,
  "Description": "",
  "Name": "Home",
  "ElementResolver": {
    "ResolutionMap": {}
  },
  "Inputs": [],
  "Outputs": [],

```

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 1, 2024, 2:16am UTC](https://forum.dynamobim.com/t/corrupt-dynamo-file/102340/5 "2024-07-01T02:16:39Z")

</div>

> [@chiamaria](#):
>
> . Has anyone come across this problem and found a way to fix it?

Can’t say I have. If you post the file we can take a look, but it may be that you’ve cleared out the backup already by reopening the original file.

---

<div class="post-metadata">

**Author:** ![chiamaria](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@chiamaria](https://forum.dynamobim.com/u/chiamaria)\
**Post date:** [July 1, 2024, 8:37am UTC](https://forum.dynamobim.com/t/corrupt-dynamo-file/102340/6 "2024-07-01T08:37:21Z")

</div>

I tried this and it worked. I did lose about half an hour of work, but it backed up the rest of my work on the weekend and I remember the last half hour anyway and can redo it, so it’s good enough! Thank you very much, Mike!

---

<div class="post-metadata">

**Author:** ![chiamaria](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@chiamaria](https://forum.dynamobim.com/u/chiamaria)\
**Post date:** [July 1, 2024, 8:39am UTC](https://forum.dynamobim.com/t/corrupt-dynamo-file/102340/7 "2024-07-01T08:39:08Z")

</div>

All good, most of it has been salvaged. The original file I saved under a different name so it wouldn’t have overridden the backup. Thank you though.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 1, 2024, 8:51am UTC](https://forum.dynamobim.com/t/corrupt-dynamo-file/102340/8 "2024-07-01T08:51:03Z")

</div>

Glad you’re squared away. If you could submit a support ticket via the accounts portal or post to the Dynamo GitHub it would help us to prevent future issues. Thanks!
