# The world contains invalid actor files. Migration to UE5.1

**URL:** <https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617>\
**Category:** International\
**Tags:** unreal-engine, crash, UE5-1, question\
**Created:** [November 21, 2022, 8:05am UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617 "2022-11-21T08:05:18Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![cihantoraman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cihantoraman](https://forums.unrealengine.com/u/cihantoraman)\
**Post date:** [November 21, 2022, 8:05am UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/1 "2022-11-21T08:05:18Z")

</div>

Hello guys, I have a problem after migrating UE5.0 to UE5.1

The project almost working normally, but there is a warning:

“The world contains invalid actor files. Click the Repair button to repair them.”

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/7/7b72ac945a051f90f61c85c4019b89492622264d.png)

When I click the repair button, it crashes immediately. And give an error message like that:

> Blockquote  
> Unhandled Exception: EXCEPTION\_ACCESS\_VIOLATION reading address 0x0000000000000048  
> UnrealEditor\_SceneOutliner  
> UnrealEditor\_SceneOutliner  
> UnrealEditor\_Slate  
> UnrealEditor\_Slate  
> UnrealEditor\_Slate  
> UnrealEditor\_Slate  
> UnrealEditor\_Slate  
> UnrealEditor\_Slate  
> UnrealEditor\_Slate  
> UnrealEditor\_ApplicationCore  
> UnrealEditor\_ApplicationCore  
> UnrealEditor\_ApplicationCore  
> UnrealEditor\_ApplicationCore  
> user32  
> user32  
> InkObj  
> atlthunk  
> user32  
> user32  
> UnrealEditor\_ApplicationCore  
> UnrealEditor  
> UnrealEditor  
> UnrealEditor  
> UnrealEditor  
> UnrealEditor  
> UnrealEditor  
> kernel32  
> ntdll

Do you have any idea, how can I fix this?

Thanks

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [November 21, 2022, 9:44pm UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/2 "2022-11-21T21:44:10Z")

</div>

I have the exact issue. Hopefuly somebody can share solution. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Online\_Learner\_Svoez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Online\_Learner\_Svoez](https://forums.unrealengine.com/u/Online_Learner_Svoez)\
**Post date:** [November 22, 2022, 8:37am UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/3 "2022-11-22T08:37:30Z")

</div>

Try deleting ‘Intermediate’, ‘Saved’, ‘Binaries’ and sln file in your project and recreating the project file by left clicking .uproject and clicking generate project file.  
This helps me to figure out this problem

---

<div class="post-metadata">

**Author:** ![cihantoraman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cihantoraman](https://forums.unrealengine.com/u/cihantoraman)\
**Post date:** [November 22, 2022, 10:37am UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/4 "2022-11-22T10:37:28Z")

</div>

> [@Online\_Learner\_Svoez](#):
>
> Try deleting ‘Intermediate’, ‘Saved’, ‘Binaries’ and sln file in your project and recreating the project file by left clicking .uproject and clicking generate project file.

Thanks for the answer.  
The project is based on blueprint, and it didn’t have any binaries folder and sln file.

To generate project files, I created an empty C++ project with the same name and copy its “source” folder to my project. [How do add c++ source files to BP project?](https://forums.unrealengine.com/t/how-do-add-c-source-files-to-bp-project/454984)

It still didn’t generate the file with the following error: " [Couldn’t set association for project. Check if file is writable.](https://forums.unrealengine.com/t/couldnt-set-association-for-project-check-if-file-is-writable-after-deleting-plugin-field/348823)" I realized it because the name of the project folder includes special characters.

After fixing these, I was able to generate project files. I edited uproject file with a text editor and removed plugins, in case they’re the problem. Also, I verified engine files.

Then I tried deleting folders and files you said, then generated project files.

Unfortunately, that “repair errors” button is still there and still it’s crashing when I click it.

---

<div class="post-metadata">

**Author:** ![vancouver\_dave](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vancouver\_dave](https://forums.unrealengine.com/u/vancouver_dave)\
**Post date:** [December 2, 2022, 1:52am UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/5 "2022-12-02T01:52:02Z")

</div>

Same issue here. The repair button crashes the engine and Visual Studio doesn’t point us in any direction as to what are the “invalid actor files” .  
Tried the solution above but that didn’t fix the issue.  
Anyone solve this issue?

---

<div class="post-metadata">

**Author:** ![rabellogp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rabellogp](https://forums.unrealengine.com/u/rabellogp)\
**Post date:** [December 13, 2022, 1:53pm UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/6 "2022-12-13T13:53:49Z")

</div>

That issue seems to happen when one or more actors in the scene lose reference during the migration process. It may be due to a plugin that is not present in 5.1.

The tool that is supposed to fix it is definitely broken. The only way I could avoid those warnings for now is getting rid of the content that is not available in 5.1 **before** the migration process. After migrating it there is no easy way to find, select and delete the broken references from the level.

---

<div class="post-metadata">

**Author:** ![Poeta\_Kodu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Poeta\_Kodu](https://forums.unrealengine.com/u/Poeta_Kodu)\
**Post date:** [December 13, 2022, 5:40pm UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/7 "2022-12-13T17:40:19Z")

</div>

**Do not click this button**. It is internally broken.

I’ve debugged this piece of code and it is caused by invalid usage of `TUniquePtr` inside the it.

Exact location: [https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Editor/SceneOutliner/Private/ActorBrowsingMode.cpp#L1127](https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Editor/SceneOutliner/Private/ActorBrowsingMode.cpp#L1127)

Summary:

1. Collect each invalid actor info (raw pointer)
2. Clear original array of invalid actors (unique pointers clear memory, **raw pointers are no longer valid** )
3. Access objects using invalid raw pointers

It seems like there’s another flaw: the actor desc pointer can be `nullptr` from the beginning, and is later accessed by the code without any checks.

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [December 15, 2022, 5:14pm UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/8 "2022-12-15T17:14:28Z")

</div>

Had same error, did some testing, it seems caused by some missing plugin, check you have all plugins enabled for content you use on your map. Hope repair button will be fixed in future update

---

<div class="post-metadata">

**Author:** ![XilenceX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XilenceX](https://forums.unrealengine.com/u/XilenceX)\
**Post date:** [January 5, 2023, 3:13am UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/9 "2023-01-05T03:13:04Z")

</div>

So I’ve already tried installing the required plugins and even deleting all content from the outliner in my map. However, this has NOT fixed the The world contains invalid actor files. issue for me! (Even though the level outliner appears to be empty in the editor.)  
Has anyone found a solution to this issue, that goes beyond checking plugins are installed?

Maybe even a word from Epic on whether or not the crash will be fixed in the next Unreal Update?  
Currently this issue is preventing us from upgrading to Unreal Engine 5.1.

One theoretical solution would be to just copy+paste everything from the level outliner to a new level. This solves the issue in our case, but the landscape doesn’t seem to get copied over in a world partitioned level. So this is not really a practical solution afaik.

---

<div class="post-metadata">

**Author:** ![ploraxUnreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ploraxUnreal](https://forums.unrealengine.com/u/ploraxUnreal)\
**Post date:** [January 10, 2023, 11:44pm UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/10 "2023-01-10T23:44:03Z")

</div>

Experiencing the same problem as everyone else. Has anyone filed a bug report with Epic yet ?

---

<div class="post-metadata">

**Author:** ![oriongame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oriongame](https://forums.unrealengine.com/u/oriongame)\
**Post date:** [January 23, 2023, 8:51am UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/11 "2023-01-23T08:51:40Z")

</div>

I got this error when I removed the C++ files. It is required to remove Binaries and Intermediate, after recompiling the project in the studio and after opening UE Editor

---

<div class="post-metadata">

**Author:** ![m3M0RyHuN73R](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/m3m0ryhun73r/32/676829_2.png) [@m3M0RyHuN73R](https://forums.unrealengine.com/u/m3M0RyHuN73R)\
**Post date:** [April 9, 2023, 4:38pm UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/12 "2023-04-09T16:38:13Z")

</div>

I fixed it by:  
First, recompile the whole project from the button at the bottom right.  
Then go:  
Content Drawer → Currently loaded world → Right click → Asset Actions → Reload

To not have to do this every time, you can force recompile at startup from:  
Edit → Editor Preferences → Search for Force Compile at Startup and enable it.

---

<div class="post-metadata">

**Author:** ![Unclear\_Aqs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Unclear\_Aqs](https://forums.unrealengine.com/u/Unclear_Aqs)\
**Post date:** [April 11, 2023, 6:15pm UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/13 "2023-04-11T18:15:55Z")

</div>

yeah, that’s the answer. when i up UE to higher-level version, it’s OK

---

<div class="post-metadata">

**Author:** ![Nastymonk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nastymonk](https://forums.unrealengine.com/u/Nastymonk)\
**Post date:** [May 11, 2023, 6:52am UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/14 "2023-05-11T06:52:16Z")

</div>

I’m also having this problem. How to solve it? It’s a native project in 5.1 not migrated. It’s so frustrating.

---

<div class="post-metadata">

**Author:** ![skaughtee1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skaughtee1](https://forums.unrealengine.com/u/skaughtee1)\
**Post date:** [May 17, 2023, 12:18am UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/15 "2023-05-17T00:18:15Z")

</div>

Same here… native 5.1 project. None of the suggestions here are working unfortunately.

---

<div class="post-metadata">

**Author:** ![KaiserSossey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KaiserSossey](https://forums.unrealengine.com/u/KaiserSossey)\
**Post date:** [May 19, 2023, 7:43pm UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/16 "2023-05-19T19:43:42Z")

</div>

Hi, I just followed the instructions to force the Engine To Compile on startup. It did solve the issue, because I was able to detect the missing/broken objects that were lying around in the world (map) =\> Maybe go this way, it seems to help:

“To not have to do this every time, you can force recompile at startup from:  
Edit → Editor Preferences → Search for Force Compile at Startup and enable it.” by [m3M0RyHuN73R](https://forums.unrealengine.com/u/m3M0RyHuN73R)

---

<div class="post-metadata">

**Author:** ![Tinkerbell1980](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tinkerbell1980/32/748555_2.png) [@Tinkerbell1980](https://forums.unrealengine.com/u/Tinkerbell1980)\
**Post date:** [March 16, 2024, 4:35pm UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/17 "2024-03-16T16:35:22Z")

</div>

Could you help me out here please? Running in to the same problem, but what you have described, i can not find it at all. Since the last update from fortnite, the new season, we seems to have this error. Clicking the repair button does not help. I really have no idea what is causing this. Epic closed the bug report, saying duplicate, but i can not find any solutions for this?

---

<div class="post-metadata">

**Author:** ![jollyvideos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jollyvideos](https://forums.unrealengine.com/u/jollyvideos)\
**Post date:** [December 24, 2024, 3:34pm UTC](https://forums.unrealengine.com/t/the-world-contains-invalid-actor-files-migration-to-ue5-1/695617/18 "2024-12-24T15:34:34Z")

</div>

Hi were you able to find a solution for this?
