"Objects have the same fully qualified name but different paths" but they have the same path

I keep getting this error when I open my project and I have no idea how to fix it.

Fatal error: [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 2387] Objects have the same fully qualified name but different paths. New Object: CombatComponent /Script/Hivaneph.Default__PlayerCharacter.CombatComponent Existing Object: CombatComponent /Script/Hivaneph.Default__PlayerCharacter:CombatComponent

The new object and the existing object have exactly the same path. I’ve read that this might be due to a hot-reload and a simple recompile can fix the issue, but no matter how many times I recompile I keep getting the error. I have cleaned the binaries, intermediate and saved folders and re-generated the VS project files, nothing. I have also tried building as Development Editor and DebugGame Editor in Visual Studio, no luck (and btw the error is even more consistent in Development Editor).

I can almost never get the editor to open and when I do the editor crashes when opening my game’s level.

This is how I create the combat component:

combatComponent = CreateDefaultSubobject<UCombatComponent>(TEXT("CombatComponent"));

Also, combatComponent is in a class called ABaseEntity, which is the parent of APlayerCharacter.

This is also happening with other components and now even with a custom anim notify state.

Any ideas?

**EDIT: **My log is also full of “LogUObjectHash: Warning: Ambiguous search, could be Class /Script/MyGame.BaseEnemy or Class /Script/MyGame.BaseEnemy”. Apparently, this is happening for every single class.

I know this is an old post, but it’s the first hit you get when Googling the error message so I thought I’d post the solution I used to fix the issue I had. In my case, I had created a whole new set of blueprints and used the Replace Reference function which was supposed to remove all references to the old blueprint and replace with the new one, and then delete the old blueprint. What happened was that one of the maps I had didn’t replace the references properly, so it ended up with invalid or corrupted blueprint objects being present in the level.

In my case, the editor wouldn’t start at all, it would just crash with that error message. Here is how I got around it:

  1. If it’s a map causing this error message like it was with me, then open DefaultEngine.ini in your Config folder, and in the [/Script/EngineSettings.GameMapsSettings] section change the EditorStartupMap to something else so the editor can boot, but DON’T open the editor yet
  2. Move the offending asset from the content directory in Windows to a temporary place elsewhere
  3. Start the editor
  4. Open up the browser tree on the left, right click on the Content folder and “fix up redirectors in folder”. This may take a few minutes
  5. Close the editor, then put the asset you moved out of the content folder back in
  6. Restart the editor, you will like see some error messages pop up about invalid references, and you should find the asset will be back again, but with the offending references reset to “none” (or just missing from the level if it was a level that was crashing)
  7. Replace the missing settings / objects in your blueprint / map and save. You should be good to go now!