# 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:** 1\
**Showing post:** 4

<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.

---

_[View the full topic](https://forums.unrealengine.com/t/couldnt-find-file-for-package/447179)._
