# Couldn't find file for package

**URL:** <https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179>\
**Category:** Platform & Builds\
**Tags:** package, unreal-engine, packaged-game, question\
**Created:** [April 13, 2019, 5:25pm UTC](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179 "2019-04-13T17:25:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apokalypto\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Apokalypto\_1](https://forums.unrealengine.com/u/Apokalypto_1)\
**Post date:** [April 13, 2019, 5:25pm UTC](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179/1 "2019-04-13T17:25:50Z")

</div>

I tried to package my project recently. The packaged game seemed to work fine up until a part that required an animation montage to load (that worked fine in the editor). I looked into the log, and I found this:

```
[2019.04.13-15.48.22:790][333]LogStreaming: Error: Couldn't find file for package /Game/Mannequin/Animations/apokalypto/LedgeClimbMontage requested by async loading code. NameToLoad: /Game/Mannequin/Animations/apokalypto/LedgeClimbMontage

```

Does anyone know how I would resolve this?

---

<div class="post-metadata">

**Author:** ![Apokalypto\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Apokalypto\_1](https://forums.unrealengine.com/u/Apokalypto_1)\
**Post date:** [April 14, 2019, 1:20am UTC](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179/2 "2019-04-14T01:20:27Z")

</div>

Ok, so after digging through the output log after my build, I realized that it completely ignored the file it was trying to find. To get around this, I added its folder’s directory to the Additional Asset Directories to Cook array in Project Settings \> Packaging \> Packaging.

---

<div class="post-metadata">

**Author:** ![Oleksandr\_Thanku](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oleksandr\_Thanku](https://forums.unrealengine.com/u/Oleksandr_Thanku)\
**Post date:** [August 1, 2020, 1:02pm UTC](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179/3 "2020-08-01T13:02:40Z")

</div>

thanks. Omg you asked it at 8:25 and replied at 4:20) Weeed

---

<div class="post-metadata">

**Author:** ![IrSoil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IrSoil](https://forums.unrealengine.com/u/IrSoil)\
**Post date:** [July 28, 2021, 9:45am UTC](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179/4 "2021-07-28T09:45:14Z")

</div>

This post getting some attention over time, so i’ll reword my solution.

> **{previous answer is under this spoiler}**
>
> > [@](#):
> >
> > Since it’s the first question that comes up when i googled my problem, i’ll put it here.
> > 
> > I had the same error message as OP, but in my case it was caused by deletion of some assets, while links still persists somewhere in blueprints(even though i deleted assets from editor).
> > 
> > To identify blueprint in question, you can enable extensive logging by adding next lines to DefaultEngine.ini:
> > 
> > ```
> > [Core.Log]
> > LogStreaming=Verbose
> > LogConfig=Verbose
> > LogProperty=Verbose
> > 
> > ```
> > 
> > After you know which bp is responsible, open it with editor, File → “refresh all nodes”. Even though broken references doesn’t seems to be in nodes, but somewhere in bp internals, this fixed problem for me.
> > 
> > Happened on ue4.26.
> > 
> > upd: a bit more brutal approach to identify culprit is to search name of missing asset via notepad++'s “Find in files” over the whole project. This time problem was that my montages still kept using removed notify states.
> > 
> > upd2: Seems that instead of “refresh all nodes” you can select a folder in content browser and use rmb-\>“resave all” or just open single file and resave it manually. That was quite convenient way to fix a errors in a few dozens of files.  
> > Also, for “search in files” you can probably limit search to “\*.uasset” files, which is a bit faster.

> **{tl;dr}**
>
> > [@](#):
> >
> > Notepad++ → “find in files” for missing path in project folder → resave found blueprints

In my case this problem was caused by deletion of some assets, while links still persisted somewhere in blueprints, even though assets were deleted properly via editor.

To solve it you need to:

1. Find BPs causing problem;
2. Fix them.

1. For searching BPs I recommend using `Notepad++` feature “Find in files” to search missed file path over the “Content” folder of your project.

For example, in OP’s case you’d search for `/Game/Mannequin/Animations/apokalypto/LedgeClimbMontage`

_Tip: To speed up search use the `*.uasset` filter. It’s unlikely for this problem to present in other assets._

_Note: at the worst case you may search over the whole project folder without filters. I don’t think i’ve seen such case, but it should help if first option didn’t work_

2. “Fixing” in this context in first place means “remove incorrect links to removed assets”. I’ve seen two cases:  
2.1 Links are in BP internals, which are inaccessible via editor’s UI. In this case it helps to resave asset.  
You can resave assets via:

- moving some nodes and press “save”;
- `file->refresh all nodes` and press “save”; // no real difference from the first option
- In case of groups of assets in single folder, in content browser you can select folder and press `RMB->ResaveAll`. Quite useful to fix a problem in a few dozens of files at once. // option is unavailable for single files, only available for folders.

2.2 Links are in Montages. In this case it was a NotifyState that referenced to removed NS class. Just remove broken NotifyStates from the tracks in this case.

2.3 Links are in Levels. Mentioned below in this thread:

> [@simulacrumgames](#):
>
> I ended up just deleting all temporary files and repackaging. That got rid of the LogStreaming errors.

I’m now on the 5.0.3 and above solution is still applicable.

---

<div class="post-metadata">

**Author:** ![simulacrumgames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/simulacrumgames/32/482168_2.png) [@simulacrumgames](https://forums.unrealengine.com/u/simulacrumgames)\
**Post date:** [August 5, 2022, 12:00pm UTC](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179/5 "2022-08-05T12:00:36Z")

</div>

What do I do if my level is the one leaving around the bad reference?

---

<div class="post-metadata">

**Author:** ![IrSoil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IrSoil](https://forums.unrealengine.com/u/IrSoil)\
**Post date:** [August 5, 2022, 1:09pm UTC](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179/6 "2022-08-05T13:09:58Z")

</div>

what about “refresh all nodes” on a level blueprint? Not sure about it, but it would been my first guess

---

<div class="post-metadata">

**Author:** ![simulacrumgames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/simulacrumgames/32/482168_2.png) [@simulacrumgames](https://forums.unrealengine.com/u/simulacrumgames)\
**Post date:** [August 5, 2022, 1:23pm UTC](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179/7 "2022-08-05T13:23:55Z")

</div>

Thanks, I ended up just deleting all temporary files and repackaging. That got rid of the LogStreaming errors.

---

<div class="post-metadata">

**Author:** ![AGH\_NAGGAR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/agh_naggar/32/490207_2.png) [@AGH\_NAGGAR](https://forums.unrealengine.com/u/AGH_NAGGAR)\
**Post date:** [August 21, 2022, 12:35pm UTC](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179/8 "2022-08-21T12:35:16Z")

</div>

Yeah! It’s work for me. Thanks!

---

<div class="post-metadata">

**Author:** ![jazznazz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jazznazz](https://forums.unrealengine.com/u/jazznazz)\
**Post date:** [June 22, 2023, 9:14pm UTC](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179/9 "2023-06-22T21:14:14Z")

</div>

Thank you @Apokalypto_1 !  
for anyone trying to reference a directory inside a Plugin, you can use  
UE4: `./../Plugins/ThePlugin/Content/TheDirectory`  
UE5: `/Game/./../Plugins/ThePlugin/Content/TheDirectory`
