# Revision control fail: Bad index file.

**URL:** <https://forums.unrealengine.com/t/revision-control-fail-bad-index-file/2622908>\
**Category:** Getting Started & Setup\
**Tags:** unreal-editor-for-fortnite, unreal-engine, fortnite\
**Created:** [July 29, 2025, 7:53pm UTC](https://forums.unrealengine.com/t/revision-control-fail-bad-index-file/2622908 "2025-07-29T19:53:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stanicz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stanicz](https://forums.unrealengine.com/u/Stanicz)\
**Post date:** [July 29, 2025, 7:53pm UTC](https://forums.unrealengine.com/t/revision-control-fail-bad-index-file/2622908/1 "2025-07-29T19:53:55Z")

</div>

Hi Guys,

I have attached a picture of the error. I don’t know why I can’t turn on revision control in UEFN. The error: Bad index file.  
I ran a file check in the directory, then reinstalled UEFN. The error is still there.  
What should I do?

 ![bad2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/a/6fa3fc8bebc413d90fc5fd7900b3b7c4f48f7211.jpeg)  
 ![bad1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/e/28e23abcb465728e6a9f5c8a0b1c0aa32ee65e69.jpeg)

Thanks  
Gábor

---

<div class="post-metadata">

**Author:** ![AgentsAndDragons](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AgentsAndDragons](https://forums.unrealengine.com/u/AgentsAndDragons)\
**Post date:** [July 29, 2025, 8:24pm UTC](https://forums.unrealengine.com/t/revision-control-fail-bad-index-file/2622908/2 "2025-07-29T20:24:45Z")

</div>

1. Launch Unreal Editor for Fortnite.
2. _Edit → Editor Preferences → Plugins → Source Control_
3. Ensure “Git” is selected and that the “Path to Git executable” points to your Git install (e.g. `C:\Program Files\Git\bin\git.exe`).
4. Click **Enable** , then **Connect**.

If still failing thn  
Clone a fresh copy: If your project is hosted remotely, clone it anew:

```auto
git clone https://your.git.remote/YourRepo.git NewUEFNProject

```

Then open that in UEFN.  
Check file permissions Make sure nothing in `.git\index` is marked read‑only or locked by another process.  
Try a different folder: Sometimes Windows path–length limits or special characters can corrupt Git’s index. Move the project to something simple like `C:\UEFNProject`.

OR

This error means UEFN’s local Revision‑Control cache has become corrupted and can’t read its “mutable” (i.e. changeable) data store. You’ll need to wipe out the bad cache and let UEFN rebuild it. Here’s how:

* * *

### 1. Close UEFN completely

Before touching any cache files, make sure the editor (and the Epic Games Launcher) are shut down.

* * *

### 2. Remove your project’s local URC cache

1. In **Windows Explorer** , go to your UEFN project folder (where your `.umap` and `.uasset` files live).

2. Open the **Saved** folder, then **SourceControl**.

3. Delete **both** the `MutableStore` and `ImmutableStore` subfolders (and any `ConnectionCache` files) inside there.

* * *

### 3. (Optional) Wipe your global URC cache

If you still see issues, also delete the global cache:

- Open ` %LocalAppData%\FortniteGame\Saved\SourceControl\` and remove its contents.

This ensures no stale data remains locked somewhere else on your machine.

* * *

### 4. Restart UEFN and re‑enable Revision Control

1. Launch **Unreal Editor for Fortnite**.
2. Open your project.
3. Go to **Unreal Revision Control** in the toolbar (or **Edit → Editor Preferences → Source Control** ).
4. Ensure your Git/URC settings are correct and click **Enable → Connect**.
5. Press **Sync Latest** (or in a PowerShell shell inside your project folder run `urc2 project snapshot get` to pull the latest snapshot)

UEFN will now download a fresh copy of your repository’s metadata, rebuilding both mutable and immutable stores.

* * *

### 5. If it still fails

- **Run as Administrator** : Right‑click the Epic Games Launcher and UEFN executables → **Run as administrator**.
- **Shorten your path** : Move the project to something like `C:\UEFNProject` in case Windows path‑length limits are interfering.
- **Clone a fresh project** : Use the CLI to sync into a new folder (`urc2 project snapshot get latest --output="C:\NewProject"`), then open that instead.

Let me know if any of these steps hit snags!

---

<div class="post-metadata">

**Author:** ![Stanicz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Stanicz](https://forums.unrealengine.com/u/Stanicz)\
**Post date:** [July 30, 2025, 12:47pm UTC](https://forums.unrealengine.com/t/revision-control-fail-bad-index-file/2622908/3 "2025-07-30T12:47:51Z")

</div>

Thank you for your help.  
I did what I could, but for example, I don’t have “Edit → Editor Preferences → Source Control.”  
However, I deleted what I could, and then I got this error:

 ![bad3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/f/7cf5fe1577224502fcd0b32a62f06341c008a3a8.png)

---

<div class="post-metadata">

**Author:** ![gxg\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gxg\_work](https://forums.unrealengine.com/u/gxg_work)\
**Post date:** [July 30, 2025, 5:07pm UTC](https://forums.unrealengine.com/t/revision-control-fail-bad-index-file/2622908/4 "2025-07-30T17:07:03Z")

</div>

@Stanicz could you please try the steps I outlined here: [Error "Branch does not exist" in Unreal Revision Control - #8 by gxg\_work](https://forums.unrealengine.com/t/error-branch-does-not-exist-in-unreal-revision-control/2595259/8) Though the error is different this should help you reset your the revision control state for the project.
