# Command line compilation error - UAT

**URL:** <https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076>\
**Category:** Platform & Builds\
**Tags:** uat, unreal-engine, compile-error, question\
**Created:** [June 21, 2020, 11:18pm UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076 "2020-06-21T23:18:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![WojtekPROgramist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WojtekPROgramist](https://forums.unrealengine.com/u/WojtekPROgramist)\
**Post date:** [June 21, 2020, 11:18pm UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/1 "2020-06-21T23:18:40Z")

</div>

I **try** to compile a sample project, but i meet this trouble…

* * *

R:\EpicLibrary\UE\_4.25\Engine\Build\BatchFiles\>RunUAT BuildCookRun -project=W:\Developer\UnrealProjects\Sandbox\Sandbox.uproject -noP4 -platform=Win64 -clientconfig=Shipping -serverconfig=Shipping -cook -maps=AllMaps -compile -stage -pak -archive -archivedirectory=W:\Developer\UnrealProjects\Sandbox\BuildLess

Running AutomationTool…

Parsing command line: BuildCookRun -project=W:\Developer\UnrealProjects\Sandbox\Sandbox.uproject -noP4 -platform=Win64 -clientconfig=Shipping -serverconfig=Shipping -cook -maps=AllMaps -compile -stage -pak -archive -archivedirectory=W:\Developer\UnrealProjects\Sandbox\BuildLess

Dependencies are out of date. Compiling scripts…

R:\EpicLibrary\UE\_4.25\Engine\Programs\AutomationTool\Saved\UATTempProj.proj(3,5): error MSB4035: Required attribute Include is empty or missing.

Took 0,1777505s to run MSBuild.exe, ExitCode=1

ERROR: Failed to build “R:/EpicLibrary/UE\_4.25/Engine/Programs/AutomationTool/Saved\UATTempProj.proj”:  
R:\EpicLibrary\UE\_4.25\Engine\Programs\AutomationTool\Saved\UATTempProj.proj(3,5): error MSB4035: Required attribute Include is empty or missing in .

```
   (see C:\Users\wojtek360HL\AppData\Roaming\Unreal Engine\AutomationTool\Logs\R+EpicLibrary+UE_4.25\Log.txt for full exception trace)

```

## AutomationTool exiting with ExitCode=1 (Error\_Unknown) BUILD FAILED

What should I do to pack this sample (FirstPersonShooter)?

---

<div class="post-metadata">

**Author:** ![Jnat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jnat/32/927460_2.png) [@Jnat](https://forums.unrealengine.com/u/Jnat)\
**Post date:** [October 19, 2020, 3:52pm UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/2 "2020-10-19T15:52:40Z")

</div>

Same problem here while configuring a Jenkins worker. Never had this one before. Did you manage to resolve this ?

---

<div class="post-metadata">

**Author:** ![VL4DST3R](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vl4dst3r/32/482857_2.png) [@VL4DST3R](https://forums.unrealengine.com/u/VL4DST3R)\
**Post date:** [November 24, 2020, 9:20pm UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/3 "2020-11-24T21:20:02Z")

</div>

I’m also having this issue. Have any of you figured how to solve this?

---

<div class="post-metadata">

**Author:** ![Jnat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jnat/32/927460_2.png) [@Jnat](https://forums.unrealengine.com/u/Jnat)\
**Post date:** [November 24, 2020, 10:21pm UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/4 "2020-11-24T22:21:15Z")

</div>

I was using a blueprint only project so I just added -nocompile to the buildcookrun command.  
something like :  
E:\UnrealEngine\UE\_4.25\Engine/Build/BatchFiles/RunUAT.bat" BuildCookRun -rocket -nocompile -installed -nop4 -project= …

---

<div class="post-metadata">

**Author:** ![Jnat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jnat/32/927460_2.png) [@Jnat](https://forums.unrealengine.com/u/Jnat)\
**Post date:** [November 24, 2020, 10:22pm UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/5 "2020-11-24T22:22:59Z")

</div>

I posted my answer down there. I hope it can fix your problem too.

---

<div class="post-metadata">

**Author:** ![Featuriing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/featuriing/32/1135409_2.png) [@Featuriing](https://forums.unrealengine.com/u/Featuriing)\
**Post date:** [June 8, 2021, 7:12am UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/6 "2021-06-08T07:12:53Z")

</div>

I was running into a similar issue after we updated from 4.24 to 4.25  
Since our project has a lot of C++ code, adding -nocompile was no option. Once I added -ue4exe=“C:\Programs\Epic Games\UE\_4.25\Engine\Binaries\Win64\UE4Editor-Cmd.exe” the error was gone. I assume that the 4.25 UAT needs this engine path specification to work.  
When just opening your project in the editor and packaging it, you can find the RunUAT.bat string with all its args in the output log. This often helps with fixing such build errors 🙂

---

<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:** [May 30, 2022, 5:10pm UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/7 "2022-05-30T17:10:55Z")

</div>

Hello, where did you add that line of code at?

---

<div class="post-metadata">

**Author:** ![Featuriing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/featuriing/32/1135409_2.png) [@Featuriing](https://forums.unrealengine.com/u/Featuriing)\
**Post date:** [May 30, 2022, 6:56pm UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/8 "2022-05-30T18:56:09Z")

</div>

Are you packaging your project using the editor or using UAT through the commandline @Oleksandr_Thanku ?  
The fix only works when using UAT through the commandline. In case you are packaging using the editor / front end tool you are probably facing a different issue.

---

<div class="post-metadata">

**Author:** ![DevinLT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DevinLT](https://forums.unrealengine.com/u/DevinLT)\
**Post date:** [August 26, 2022, 11:19pm UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/9 "2022-08-26T23:19:04Z")

</div>

I just ran into this problem as well. For context I was setting up our jenkins build process with an unreal project with c++ files and was running into this error:

```auto
 error MSB4035: The required attribute "Include" is empty or missing from the element <ModulesToBuild>.

```

-nocompile allowed us to build but wouldn’t compile the c++ files.

@Featuriing 's answer led me to the fix for our problem as well. @Oleksandr_Thanku here is the full windows command with the fix also for anyone else running into this problem in the future.

You can find the output.log in unreal by going to Window-\>Developer Tools-\> Output Log and after making a package you can find the command line arguments unreal uses to build.

It’ll look something like `Parsing command lin: -ScriptsForProject=...`

Here is the full command I used for this step in Jenkins

```auto
"C:\Program Files\Epic Games\UE_4.27\Engine\Build\BatchFiles\RunUAT.bat" BuildCookRun -rocket -nocompile -compileeditor -installed -nop4 -project="%WORKSPACE%/%PROJECT_NAME%.uproject" -cook -stage -archive -archivedirectory="%WORKSPACE%/temp/Development/x64" -package 
-clientconfig=Development -ue4exe="C:\Program Files\Epic Games\UE_4.27\Engine\Binaries\Win64\UE4Editor-Cmd.exe" -clean -pak -prereqs -distribution -nodebuginfo -targetplatform=Win64 -build -utf8output

```

---

<div class="post-metadata">

**Author:** ![DevinLT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DevinLT](https://forums.unrealengine.com/u/DevinLT)\
**Post date:** [September 13, 2022, 12:53am UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/10 "2022-09-13T00:53:59Z")

</div>

change the `-nocompile` to `-compile` pasted the info in wrong by accident

---

<div class="post-metadata">

**Author:** ![timonfreud](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/timonfreud/32/1092636_2.png) [@timonfreud](https://forums.unrealengine.com/u/timonfreud)\
**Post date:** [May 25, 2023, 7:08am UTC](https://forums.unrealengine.com/t/command-line-compilation-error-uat/467076/11 "2023-05-25T07:08:08Z")

</div>

Could you help me how to set command line correctly? THanks!

E:\UE\_5.0\Engine\Build\BatchFiles\RunUAT.bat -ScriptsForProject=“F:/UE5Project/digitalTwin/ue5/digitalTwin.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -project=“F:/UE5Project/digitalTwin/ue5/digitalTwin.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -cook -allmaps -project=“F:/UE5Project/digitalTwin/ue5/digitalTwin.uproject” -target=digitalTwin -unrealexe=“E:\UE\_5.0\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -platform=Win64 -ddc=InstalledDerivedDataBackendG  
raph -installed -stage -archive -package -build -compressed -iostore -pak -prereqs -archivedirectory=“C:/package/Windows” -clientconfig=Development -compile
