# RunUAT.bat ERROR: AutomationTool failed to compile

**URL:** <https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843>\
**Category:** Platform & Builds\
**Tags:** automationtool, unreal-engine, packaging-projects, question\
**Created:** [March 25, 2021, 7:54am UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843 "2021-03-25T07:54:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogerXDX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RogerXDX](https://forums.unrealengine.com/u/RogerXDX)\
**Post date:** [March 25, 2021, 7:54am UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843/1 "2021-03-25T07:54:01Z")

</div>

I have a problem when packaging the project with a release solution from unreal engine, when I select package the following message appears

 ![333531-error-ue4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/f/4ef5ec26e3f5efbdaba448e8102b23a826e1db08.png)

---

<div class="post-metadata">

**Author:** ![GrumbleBunny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GrumbleBunny](https://forums.unrealengine.com/u/GrumbleBunny)\
**Post date:** [March 25, 2021, 8:51am UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843/2 "2021-03-25T08:51:07Z")

</div>

There is a syntax error in BundleUtils.cs on line 154

---

<div class="post-metadata">

**Author:** ![RogerXDX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RogerXDX](https://forums.unrealengine.com/u/RogerXDX)\
**Post date:** [March 25, 2021, 9:28am UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843/3 "2021-03-25T09:28:04Z")

</div>

hello, do you have any idea how to solve this problem?

---

<div class="post-metadata">

**Author:** ![GrumbleBunny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GrumbleBunny](https://forums.unrealengine.com/u/GrumbleBunny)\
**Post date:** [March 25, 2021, 9:29am UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843/4 "2021-03-25T09:29:13Z")

</div>

Can you post a screenshot of that file?

---

<div class="post-metadata">

**Author:** ![RogerXDX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RogerXDX](https://forums.unrealengine.com/u/RogerXDX)\
**Post date:** [March 25, 2021, 9:43am UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843/5 "2021-03-25T09:43:17Z")

</div>

In the screenshot I am using the code from unreal release from git, and installed it as suggested, since I want to generate a project with a dedicated server, the problem occurs when I use the unreal engine installed from the git code, it won’t let me package the game, it just shows me that error

---

<div class="post-metadata">

**Author:** ![GrumbleBunny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GrumbleBunny](https://forums.unrealengine.com/u/GrumbleBunny)\
**Post date:** [March 25, 2021, 9:54am UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843/6 "2021-03-25T09:54:44Z")

</div>

How strange. All I can tell you is that there’s a compile error in this file: Engine/Source/Programs/AutomationTool/AutomationUtils/BundleUtils.cs

If you show me that file we might be able to figure out why.

---

<div class="post-metadata">

**Author:** ![RogerXDX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RogerXDX](https://forums.unrealengine.com/u/RogerXDX)\
**Post date:** [March 25, 2021, 10:19am UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843/7 "2021-03-25T10:19:29Z")

</div>

of course, the file is this.

> **[BundleUtils.rar](https://drive.google.com/file/d/1zy8teUYlH_WD1vAtJDCWu-UOgPAeQvfP/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![GrumbleBunny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GrumbleBunny](https://forums.unrealengine.com/u/GrumbleBunny)\
**Post date:** [March 25, 2021, 10:28am UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843/8 "2021-03-25T10:28:24Z")

</div>

That’s really strange, the file looks fine. Only thing I can think of is that you’ve got the wrong version of dot net installed. Sorry I couldn’t help more ☹

---

<div class="post-metadata">

**Author:** ![RogerXDX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RogerXDX](https://forums.unrealengine.com/u/RogerXDX)\
**Post date:** [March 25, 2021, 10:47am UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843/9 "2021-03-25T10:47:28Z")

</div>

oh okay thanks for your help

---

<div class="post-metadata">

**Author:** ![bigais](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bigais](https://forums.unrealengine.com/u/bigais)\
**Post date:** [June 28, 2023, 6:59pm UTC](https://forums.unrealengine.com/t/runuat-bat-error-automationtool-failed-to-compile/480843/10 "2023-06-28T18:59:02Z")

</div>

> [@RogerXDX](#):
>
> In the screenshot I am using the code from unreal release from git, and installed it as suggested, since I want to generate a project with a dedicated server, the problem occurs when I use the unreal engine installed from the git code, it won’t let me package the game, it just shows me that error

Please did you find any solution to that ?
