# Generateprojectfiles.bat Error - Could not find definition for module

**URL:** <https://forums.unrealengine.com/t/generateprojectfiles-bat-error-could-not-find-definition-for-module/432329>\
**Category:** Pipeline & Plugins\
**Tags:** error, generateprojectfiles, unreal-engine, Visual-Studio, UE4, question\
**Created:** [August 23, 2018, 11:08pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-error-could-not-find-definition-for-module/432329 "2018-08-23T23:08:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lotion\_Player](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lotion\_Player](https://forums.unrealengine.com/u/Lotion_Player)\
**Post date:** [August 23, 2018, 11:08pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-error-could-not-find-definition-for-module/432329/1 "2018-08-23T23:08:07Z")

</div>

I have this error in VS 2017 that says “can’t find definition for module”. It gives the same error when running generateprojectfiles.bat stating "Warning: Exception while generating include data for UE4Editor: Could not find definition for module ‘OnlineSubsystem’ (referenced via defualt plugins → OnlineSubsystem.uplugin)

Here’s the VS output:

Severity Code Description Project File Line Suppression State  
Error MSB3075 The command “…\Build\BatchFiles\Build.bat UE4Editor Win64 Development -WaitMutex -FromMsBuild” exited with code 5. Please verify that you have sufficient rights to run this command. UE4 D:\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44  
Error Could not find definition for module ‘OnlineSubsystem’ (referenced via default plugins → OnlineSubsystem.uplugin) UE4 D:\Unreal Projects\UnrealEngine-VXGI2-4.19\Engine\Intermediate\ProjectFiles\UnrealBuildTool 1

---

<div class="post-metadata">

**Author:** ![GIGA-Money](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GIGA-Money](https://forums.unrealengine.com/u/GIGA-Money)\
**Post date:** [August 26, 2018, 2:58pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-error-could-not-find-definition-for-module/432329/2 "2018-08-26T14:58:52Z")

</div>

Have you followed these instructions yet?

[Setting Up Visual Studio for Unreal Engine | Unreal Engine Documentation](https://docs.unrealengine.com/latest/INT/Programming/Development/VisualStudioSetup/)

.[UnrealVS Extension | Unreal Engine Documentation](https://docs.unrealengine.com/latest/INT/Programming/Development/VisualStudioSetup/UnrealVS/index.html)

---

<div class="post-metadata">

**Author:** ![Lotion\_Player](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lotion\_Player](https://forums.unrealengine.com/u/Lotion_Player)\
**Post date:** [August 27, 2018, 3:43am UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-error-could-not-find-definition-for-module/432329/3 "2018-08-27T03:43:24Z")

</div>

No luck there, same problem

---

<div class="post-metadata">

**Author:** ![GIGA-Money](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GIGA-Money](https://forums.unrealengine.com/u/GIGA-Money)\
**Post date:** [August 27, 2018, 2:59pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-error-could-not-find-definition-for-module/432329/4 "2018-08-27T14:59:35Z")

</div>

I just notice the “Please verify that you have sufficient rights to run this command”.

1. try running as admin
2. Check the folder location, and see if you have read/write [permissions](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=2ahUKEwjAzfO1v43dAhUSCawKHQqQBGsQFjABegQIBRAK&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DytmYVbMEsGg&usg=AOvVaw3A7QFKTuC6bitJ-tFUEI6m)

Try these and let me know how it goes.

---

<div class="post-metadata">

**Author:** ![Rosium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rosium](https://forums.unrealengine.com/u/Rosium)\
**Post date:** [September 10, 2019, 10:21pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-bat-error-could-not-find-definition-for-module/432329/5 "2019-09-10T22:21:53Z")

</div>

you can also check if your prjoect folder is set to read only within its property’s description
