# Project files get corrupted

**URL:** https://discourse.nodered.org/t/project-files-get-corrupted/73822
**Category:** General
**Created:** [17 January 2023 16:50 UTC](https://discourse.nodered.org/t/project-files-get-corrupted/73822 "2023-01-17T16:50:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![regissg](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@regissg](https://discourse.nodered.org/u/regissg)
#### Post date: [17 January 2023 16:50 UTC](https://discourse.nodered.org/t/project-files-get-corrupted/73822/1 "2023-01-17T16:50:43Z")

</div>

After trying to reverse to a previous version my flow is not loading anymore and I got an error: "you need to resolve your current index first".

I could see the flow.json file in the project folder. When I try to import the flow file directly in node red I got another error as the file is mixing 2 version of the flow.

I am kind of stuck and some help will be greatly appreciated. This flow is rather complex and it controls my home heating system with the outside temperature getting close to 0°C...

---

<div class="post-metadata">

### Author: ![regissg](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@regissg](https://discourse.nodered.org/u/regissg)
#### Post date: [17 January 2023 17:23 UTC](https://discourse.nodered.org/t/project-files-get-corrupted/73822/2 "2023-01-17T17:23:40Z")

</div>

I was able to regenerate the flow with a backup so my heating system is back online. But I am still interested to understand how to fix a corrupted project as well as the proper way to reverse to a previously committed version.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [18 March 2023 17:24 UTC](https://discourse.nodered.org/t/project-files-get-corrupted/73822/3 "2023-03-18T17:24:08Z")

</div>

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