DirectoryPlaceholder causes errors in cooking

For some reason several of our levels are referencing UE_Placeholders as if it’s an actor placed on the level and it’s a reason for an error during the cook:

Line 36226: LogLevel: Error: [CookWorker 1]: Failed to load Actor for External Actor Package /Game/__ExternalActors__/Experimental/Levels/CoreMechanics/Levels/COMBAT/CM_Combat_PerformTask/0/R8/UE_Placeholder

I noticed that FDirectoryPlaceholderModule::OnDirectoryChanged got called when I edit level blueprint. No matter what I do I can’t remove the reference and I can’t use CleanupPlaceholders on ExternalActors folder.

Steps to Reproduce

Hi Alex,

This looks to be a bug with the directory place holder feature that was added for cinematic assembly tool workflows. I’ll log a bug and get someone to fix this. The place holders should not get added to external actor packages but seem to be happening here because of the directory watcher. In the meantime, you can disable the place holders in the project settings and that should prevent this problem.

Logged as UE-313486. I’ve requested the JIRA be made public for visibility.