Package has a dependency on package which does not exist: soft references in Unreal Engine
One of your assets still points to a package that does not exist anymore. The cook does not stop for it: the package is built, and the reference is simply empty when the game runs.
Paste your log: find the cause in seconds Runs in your browser, nothing is uploaded.
What it looks like in your log
Excerpts from a reproduction in our lab (a test plugin, not a real product). Paths anonymized; line numbers are those of the original files.
Unreal Engine 5.4.4
Nothing at all: the package succeeds and no line mentions the missing asset. Only a scan of the project before cooking can find it.
Unreal Engine 5.8.3
Log.txt
LogCook: Display: Cook Diagnostics: OpenFileHandles=275, VirtualMemory=1801MiB, VirtualMemoryAvailable=46831MiBLogCook: Display: Package /Game/Fixtures/BP_Fixture_M08_SoftHolder has a dependency on package /Game/Fixtures/SM_Fixture_M08_Target which does not exist.LogCook: Display: Garbage collection triggered (Soft). Triggered by conditions:BUILD SUCCESSFULAutomationTool executed for 0h 0m 26sAutomationTool exiting with ExitCode=0 (Success)A Display line, not a warning: easy to miss in a log of several thousand lines. UE 5.8 prints the same line for soft and hard references.
Not blocking, but your game is broken
A soft reference (a soft object or soft class variable, or an asset path stored as data) is only resolved when the game runs. When the asset it points to is deleted, the cook has nothing to load, so it does not fail: the package is built and the reference is empty in the game.
In our lab the package succeeded on UE 5.4.4 and 5.8.3. The game then fails when code or a Blueprint tries to load the asset: a missing mesh, a None value, an error in the game log, or a crash if the code does not check the result.
Why the log may show nothing
On UE 5.4.4 the cook printed no line at all about the missing asset. On UE 5.8.3 it prints one Display line, "Package <referencer> has a dependency on package <missing> which does not exist", the same line as for a hard reference.
A clean log is therefore no proof that every reference is valid. The reliable check happens before cooking: scan the asset registry for dependencies on packages that do not exist.
Common causes
- The asset was deleted outside the editor, or deleted without fixing its references.
- The asset was moved or renamed and the redirector was removed too early.
- The asset exists locally but was not submitted to source control on the build machine.
How to fix it
- Note the missing package: the package in the error.
- In the editor, open the Reference Viewer on that path (or search the project for it) to find which assets still reference it.
- Point those assets to an existing asset, or remove the reference, then save them.
- If the asset was only moved, restore it, run Fix Up Redirectors, then delete it properly.
- Cook again.
Questions
Does a missing soft reference make the packaging fail?
No. In our lab the package succeeded on UE 5.4.4 and 5.8.3; the reference is simply empty at runtime.
What does "has a dependency on package which does not exist" mean?
An asset still lists a package that is no longer on disk. The cook goes on. Fix the reference in the asset named first on the line.
Is it a soft or a hard reference?
The UE 5.8 line is the same for both. Open the referencing asset and look at what points to the missing path: a soft reference variable, or a component, property or node that loads it directly.
Can it be caught before cooking?
Yes, it can be checked before you start a cook: Asset registry scan for dependencies on packages that do not exist.