# ERROR: The following files are set to be staged, but contain restricted folder names ("Switch"):

**URL:** <https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658>\
**Category:** Pipeline & Plugins\
**Tags:** Datasmith, unreal-engine\
**Created:** [February 21, 2020, 5:22pm UTC](https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658 "2020-02-21T17:22:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniele\_Barone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daniele_barone/32/718830_2.png) [@Daniele\_Barone](https://forums.unrealengine.com/u/Daniele_Barone)\
**Post date:** [February 21, 2020, 5:22pm UTC](https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658/1 "2020-02-21T17:22:32Z")

</div>

I am following the video lesson on unreal academy " AEC Blueprints ", and when I try to pack the game it gives me this error:

UATHelper: Packaging (Windows (64-bit)): ERROR: The following files are set to be staged, but contain restricted folder names (“Switch”):

I tried to search the net but I did not find a solution.

How do you remove a restriction from a folder?

Thanks to those who want to help me.

---

<div class="post-metadata">

**Author:** ![roberteker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roberteker](https://forums.unrealengine.com/u/roberteker)\
**Post date:** [February 24, 2020, 9:35am UTC](https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658/2 "2020-02-24T09:35:58Z")

</div>

Unreal has many hidden rules it never tells you about until it’s too late, and it has the most restrictive rules on naming I’ve ever seen in a modern system.

CAD software, comparatively, has none of these rules (because most companies invent their own more or less restrictive naming conventions for use in their own PLM/PDMs).

I’m guessing you’re not allowed to name a folder Switch, because of the Nintendo Switch. Rename that folder to something else, and the build may work. 🙂

---

<div class="post-metadata">

**Author:** ![Daniele\_Barone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daniele_barone/32/718830_2.png) [@Daniele\_Barone](https://forums.unrealengine.com/u/Daniele_Barone)\
**Post date:** [February 24, 2020, 11:42am UTC](https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658/3 "2020-02-24T11:42:10Z")

</div>

I do not believe it! I don’t know why I didn’t think of it!  
I didn’t want to break all the links, but actually changing just the name of the folder doesn’t change anything!

Thanks a lot, it works perfectly!

---

<div class="post-metadata">

**Author:** ![rahulxxl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rahulxxl](https://forums.unrealengine.com/u/rahulxxl)\
**Post date:** [July 16, 2020, 7:41pm UTC](https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658/4 "2020-07-16T19:41:08Z")

</div>

Thanks a lot @roberteker . I was facing same issues but with name of folder set to “Windows”. I used it for the windows of a house model. Renamed that and it worked.

---

<div class="post-metadata">

**Author:** ![Crayven](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crayven](https://forums.unrealengine.com/u/Crayven)\
**Post date:** [July 23, 2020, 8:11am UTC](https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658/5 "2020-07-23T08:11:27Z")

</div>

> [@Daniele\_Barone](#):
>
> I do not believe it! I don’t know why I didn’t think of it!  
> I didn’t want to break all the links, but actually changing just the name of the folder doesn’t change anything!
> 
> Thanks a lot, it works perfectly!

Actually it does.  
I had the same result that it was still not working after renaming. All you have to do after rename, is to restart the engine and you can start packaging your project.

I guess that even if you rename the folder, the original name is still in memory and needs to be cleaned up first.

Maybe a “fix redirectories” could also do the trick, but i did not checked that.

---

<div class="post-metadata">

**Author:** ![Saiful22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Saiful22](https://forums.unrealengine.com/u/Saiful22)\
**Post date:** [July 29, 2020, 2:03pm UTC](https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658/6 "2020-07-29T14:03:36Z")

</div>

> [@roberteker](#):
>
> Unreal has many hidden rules it never tells you about until it’s too late, and it has the most restrictive rules on naming I’ve ever seen in a modern system.
> 
> CAD software, comparatively, has none of these rules (because most companies invent their own more or less restrictive naming conventions for use in their own PLM/PDMs).
> 
> I’m guessing you’re not allowed to name a folder Switch, because of the Nintendo Switch. Rename that folder to something else, and the build may work. 🙂

Thanks it work brother. i have problem that name “windows”. when i rename it then it worked

---

<div class="post-metadata">

**Author:** ![crossmr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@crossmr](https://forums.unrealengine.com/u/crossmr)\
**Post date:** [January 4, 2022, 7:01am UTC](https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658/7 "2022-01-04T07:01:02Z")

</div>

Older thread, but top google result.

Fmod contains a folder /desktop. The project I’m trying to build now is whinging about that. Problem is FMOD insists on that folder name. Also, I have the same folder in another project which is also included and yet I’ve built it dozens of times without it complaining. There must be more to it than that.

---

<div class="post-metadata">

**Author:** ![UnrealBucket](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealBucket](https://forums.unrealengine.com/u/UnrealBucket)\
**Post date:** [April 17, 2025, 11:18am UTC](https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658/9 "2025-04-17T11:18:23Z")

</div>

Today I learned you cannot use “Apple” as the folder name in your project lol

---

<div class="post-metadata">

**Author:** ![DragonRelt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dragonrelt/32/1075747_2.png) [@DragonRelt](https://forums.unrealengine.com/u/DragonRelt)\
**Post date:** [April 23, 2026, 11:49pm UTC](https://forums.unrealengine.com/t/error-the-following-files-are-set-to-be-staged-but-contain-restricted-folder-names-switch/138658/10 "2026-04-23T23:49:38Z")

</div>

WOOOOOOOOOOOOOOOOW It works…
