# Error compiling the Automation Tool after updating Visual Studio today (Unreal 5.3.2)

**URL:** <https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, CPP, question\
**Created:** [November 15, 2023, 7:48pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088 "2023-11-15T19:48:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brynnvincible](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brynnvincible](https://forums.unrealengine.com/u/Brynnvincible)\
**Post date:** [November 15, 2023, 7:48pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/1 "2023-11-15T19:48:47Z")

</div>

After updating Visual Studio today, my Unreal project no longer builds. I am getting compile errors in the Automation Tool and Build Graph.

I created a new project just to test. I followed these steps:

1. Update to the latest version of Visual Studio 2022 (17.8.0)
2. Create a new Blank C++ Game with Unreal 5.3.2
3. Build the solution in Visual Studio.

I get this result:  
========== Build: 46 succeeded, 2 failed, 0 up-to-date, 1 skipped ==========  
========== Build completed at 10:25 and took 17.625 seconds ==========

The errors are:  
5\>------ Build started: Project: AutomationScripts.Automation, Configuration: Development Any CPU ------  
2\>Using bundled DotNet SDK version: 6.0.302  
2\>Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” MyProjectEditor Win64 Development -Project=“C:\Brynn\Test\MyProject\MyProject.uproject” -WaitMutex -FromMsBuild  
3\>C:\Program Files\Epic Games\UE\_5.3\Engine\Source\Programs\AutomationTool\BuildGraph\BgScriptReader.cs(1640,37,1640,42): error CS8604: Possible null reference argument for parameter ‘other’ in ‘void HashSet.UnionWith(IEnumerable other)’.  
3\>Done building project “BuildGraph.Automation.csproj” – FAILED.  
2\>Log file: C:\Users\brynn\AppData\Local\UnrealBuildTool\Log.txt  
5\>C:\Program Files\Epic Games\UE\_5.3\Engine\Source\Programs\AutomationTool\Scripts\CheckForHacks.cs(87,26,87,45): error CA2017: Number of parameters supplied in the logging message template do not match the number of named placeholders ([CA2017: Parameter count mismatch (code analysis) - .NET | Microsoft Learn](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017))  
5\>Done building project “AutomationScripts.Automation.csproj” – FAILED.

For the BgScriptReader.cs error, it is complaining about a possible null value. I added a null check here.

For CheckForHacks.cs it is complaining about passing format args into a string which has no format specifiers in it. I’ve removed the args to fix this.

I’ve edited the scripts locally to fix the errors, which works to fix the build. But this will be an issue for everyone on the team as we aren’t building from source, so those changes I’ve made will not be committed anywhere.

Anyone know why updating VS caused this? My current suspicion is that these are both things that used to be warnings but MS have upgraded to errors, causing the build to fail…

---

<div class="post-metadata">

**Author:** ![kevytmaito11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kevytmaito11](https://forums.unrealengine.com/u/kevytmaito11)\
**Post date:** [November 16, 2023, 6:05pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/2 "2023-11-16T18:05:58Z")

</div>

Yeah, I have the same problem with Unreal 5.3.2 together with Visual Studio 17.8. It works with older Unreal Engine version and also with older Visual Studio versions but version 5.3.2 together with 17.8 does not build currently.

---

<div class="post-metadata">

**Author:** ![8DrunkenGods](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@8DrunkenGods](https://forums.unrealengine.com/u/8DrunkenGods)\
**Post date:** [November 17, 2023, 2:30am UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/3 "2023-11-17T02:30:29Z")

</div>

I was about to post a new topic here but you nailed exactly the issue im having. I converted my project from 5.1.0 to 5.3.2 and its failing to build my project with similar errors. Does anybody know what im missing here? Is the automation tool supposed to be ‘built’ as well?

> 5\>D:\UnrealEngine-5.3.2-release\Engine\Source\Programs\AutomationTool\BuildGraph\BgScriptReader.cs(1640,37,1640,42): error CS8604: Possible null reference argument for parameter ‘other’ in ‘void HashSet.UnionWith(IEnumerable other)’.  
> 5\>Done building project “BuildGraph.Automation.csproj” – FAILED.  
> 8\>------ Build started: Project: Win.Automation, Configuration: Development Any CPU ------  
> 6\>D:\UnrealEngine-5.3.2-release\Engine\Source\Programs\AutomationTool\Scripts\CheckForHacks.cs(87,26,87,45): error CA2017: Number of parameters supplied in the logging message template do not match the number of named placeholders ([CA2017: Parameter count mismatch (code analysis) - .NET | Microsoft Learn](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017))  
> 6\>Done building project “AutomationScripts.Automation.csproj” – FAILED.  
> 9\>------ Build started: Project: Android.Automation, Configuration: Development Any CPU ------  
> 8\>CSC : error CS0006: Metadata file ‘D:\UnrealEngine-5.3.2-release\Engine\Binaries\DotNET\AutomationTool\AutomationScripts\BuildGraph\ref\BuildGraph.Automation.dll’ could not be found  
> 8\>Done building project “Win.Automation.csproj” – FAILED.  
> 10\>------ Build started: Project: CookedEditor.Automation, Configuration: Development Any CPU ------  
> 2\>UE5Rules → D:\UnrealEngine-5.3.2-release\Engine\Intermediate\Build\BuildRulesProjects\UE5Rules\bin\Development\UE5Rules.dll  
> 2\>Done building project “UE5Rules.csproj”.  
> 11\>------ Build started: Project: UE5ProgramRules, Configuration: Development Any CPU ------  
> 9\>CSC : error CS0006: Metadata file ‘D:\UnrealEngine-5.3.2-release\Engine\Binaries\DotNET\AutomationTool\AutomationScripts\Scripts\ref\AutomationScripts.Automation.dll’ could not be found  
> 9\>Done building project “Android.Automation.csproj” – FAILED.  
> 12\>------ Build started: Project: Gauntlet.Automation, Configuration: Development Any CPU ------  
> 12\>CSC : error CS0006: Metadata file ‘D:\UnrealEngine-5.3.2-release\Engine\Binaries\DotNET\AutomationTool\AutomationScripts\Platforms\Android\ref\Android.Automation.dll’ could not be found  
> 12\>CSC : error CS0006: Metadata file ‘D:\UnrealEngine-5.3.2-release\Engine\Binaries\DotNET\AutomationTool\AutomationScripts\Scripts\ref\AutomationScripts.Automation.dll’ could not be found  
> 12\>Done building project “Gauntlet.Automation.csproj” – FAILED.  
> 10\>CSC : error CS0006: Metadata file ‘D:\UnrealEngine-5.3.2-release\Engine\Binaries\DotNET\AutomationTool\AutomationScripts\Scripts\ref\AutomationScripts.Automation.dll’ could not be found  
> 10\>CSC : error CS0006: Metadata file ‘D:\UnrealEngine-5.3.2-release\Engine\Binaries\DotNET\AutomationTool\AutomationScripts\Platforms\Windows\ref\Win.Automation.dll’ could not be found  
> 10\>Done building project “CookedEditor.Automation.csproj” – FAILED.  
> 13\>------ Build started: Project: Turnkey.Automation, Configuration: Development Any CPU ------  
> 14\>------ Build started: Project: LowLevelTests.Automation, Configuration: Development Any CPU ------  
> 14\>CSC : error CS0006: Metadata file ‘D:\UnrealEngine-5.3.2-release\Engine\Binaries\DotNET\AutomationTool\AutomationScripts\Scripts\ref\AutomationScripts.Automation.dll’ could not be found  
> 14\>CSC : error CS0006: Metadata file ‘D:\UnrealEngine-5.3.2-release\Engine\Binaries\DotNET\AutomationTool\AutomationScripts\Gauntlet\ref\Gauntlet.Automation.dll’ could not be found  
> 14\>Done building project “LowLevelTests.Automation.csproj” – FAILED.

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [November 17, 2023, 10:10am UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/4 "2023-11-17T10:10:55Z")

</div>

I’m running into the same issue since updating yesterday. Not doing any package yet, just doing _Build \> Build Solution_.

Fortunately, Ctrl F5 build at least works - and I did changes to my code that get compiled and work.

BTW - since this VS2022 update, there’s that new dialog:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/c/76ce7a6f01c35d583912f927ad8c6599e7379588.png)

Need to have a closer look at that as well. It produces some warnings, but also seems to require some installation and editorconfig stuff.

---

<div class="post-metadata">

**Author:** ![Toikka](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/toikka/32/481949_2.png) [@Toikka](https://forums.unrealengine.com/u/Toikka)\
**Post date:** [November 17, 2023, 2:07pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/5 "2023-11-17T14:07:39Z")

</div>

Same happening here. Production is in a standstill until this is fixed.

---

<div class="post-metadata">

**Author:** ![muggyshoT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@muggyshoT](https://forums.unrealengine.com/u/muggyshoT)\
**Post date:** [November 17, 2023, 9:03pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/6 "2023-11-17T21:03:49Z")

</div>

I’ve changed the codes to solve this. I don’t know if it’s a good idea but compiled successfully.

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/0/9408e3acffebe258edd17accb51341a21f5ab100.png)

---

<div class="post-metadata">

**Author:** ![DreamSworK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dreamswork/32/885713_2.png) [@DreamSworK](https://forums.unrealengine.com/u/DreamSworK)\
**Post date:** [November 17, 2023, 9:23pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/7 "2023-11-17T21:23:52Z")

</div>

To fix that error needs to edit file **Engine/Source/Programs/AutomationTool/Scripts/CheckForHacks.cs** line 87 to:

`Logger.LogInformation("Scanning files... [{Arg0}]", FilesToCheck.Count);`

[https://github.com/EpicGames/UnrealEngine/pull/11110](https://github.com/EpicGames/UnrealEngine/pull/11110)

---

<div class="post-metadata">

**Author:** ![AlexanderSemenko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexandersemenko/32/1068811_2.png) [@AlexanderSemenko](https://forums.unrealengine.com/u/AlexanderSemenko)\
**Post date:** [November 17, 2023, 10:19pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/8 "2023-11-17T22:19:05Z")

</div>

This is not enough. Also need to fix line 1640 at C:\Program Files\Epic Games\UE\_5.3\Engine\Source\Programs\AutomationTool\BuildGraph\BgScriptReader.cs:

> ```
> if (users != null)
> report.NotifyUsers.UnionWith(users);
> 
> ```

---

<div class="post-metadata">

**Author:** ![ANLevant](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ANLevant](https://forums.unrealengine.com/u/ANLevant)\
**Post date:** [November 18, 2023, 10:28pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/10 "2023-11-18T22:28:13Z")

</div>

So, are you telling me that we have to go fix Epic Game’s code in order to use the engine? that’s simply unacceptable

---

<div class="post-metadata">

**Author:** ![cappelmans](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cappelmans](https://forums.unrealengine.com/u/cappelmans)\
**Post date:** [November 20, 2023, 1:02am UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/11 "2023-11-20T01:02:52Z")

</div>

Very annoying issue. Also not able to build the 5.3 engine with Rider bc of this error:

> [@AlexanderSemenko](#):
>
> ```auto
> if (users != null)
> report.NotifyUsers.UnionWith(users);
> 
> ```

---

<div class="post-metadata">

**Author:** ![Jithak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jithak](https://forums.unrealengine.com/u/Jithak)\
**Post date:** [November 25, 2023, 3:50pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/12 "2023-11-25T15:50:49Z")

</div>

Is this normal? I’m new to UE and only a hobbyist game dev. But working as a backend dev that would be unacceptable. Even in most open source frameworks not even talking about paid stuff.

1. There is no statement from Epic regarding this issue.
2. There is an open PR for over a week now and no Hotfix.

I was aware that game dev tooling feels ancient for other developers but this is just different.

---

<div class="post-metadata">

**Author:** ![pa1n990](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pa1n990](https://forums.unrealengine.com/u/pa1n990)\
**Post date:** [November 25, 2023, 3:53pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/13 "2023-11-25T15:53:01Z")

</div>

says page not found

---

<div class="post-metadata">

**Author:** ![so\_toasty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@so\_toasty](https://forums.unrealengine.com/u/so_toasty)\
**Post date:** [November 26, 2023, 12:02am UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/14 "2023-11-26T00:02:53Z")

</div>

thanks, applying these 2 code fixes worked for me:  
[https://github.com/EpicGames/UnrealEngine/pull/11110/files](https://github.com/EpicGames/UnrealEngine/pull/11110/files)

I can’t believe I had to change the source code though

---

<div class="post-metadata">

**Author:** ![kinanhSalem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kinanhSalem](https://forums.unrealengine.com/u/kinanhSalem)\
**Post date:** [November 26, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/15 "2023-11-26T16:01:59Z")

</div>

same problem . all the links above not working. can someone write the correction here.

---

<div class="post-metadata">

**Author:** ![AlexanderSemenko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexandersemenko/32/1068811_2.png) [@AlexanderSemenko](https://forums.unrealengine.com/u/AlexanderSemenko)\
**Post date:** [November 26, 2023, 4:51pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/16 "2023-11-26T16:51:42Z")

</div>

Those links you can see right in your Visual Studio - just open error message.

---

<div class="post-metadata">

**Author:** ![AlexanderSemenko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexandersemenko/32/1068811_2.png) [@AlexanderSemenko](https://forums.unrealengine.com/u/AlexanderSemenko)\
**Post date:** [November 26, 2023, 4:52pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/17 "2023-11-26T16:52:56Z")

</div>

This is UE. Sometimes you have to fix it by your own, but this happens once a year.

---

<div class="post-metadata">

**Author:** ![so\_toasty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@so\_toasty](https://forums.unrealengine.com/u/so_toasty)\
**Post date:** [November 26, 2023, 8:48pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/18 "2023-11-26T20:48:30Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/4/3c49e155bd84b6199543b54a5d3576e1b013fecb.png)  
Here is the fix for people who can’t open the github commits:  
2 files to fix **BgScriptReader.cs** & **CheckForHacks.cs**

* * *

Engine/Source/Programs/AutomationTool/BuildGraph/BgScriptReader.cs  
line 1640, replace

```auto
report.NotifyUsers.UnionWith(users);

```

with

```auto
if (users != null)
{
report.NotifyUsers.UnionWith(users);
 }
						

```

* * *

Engine/Source/Programs/AutomationTool/Scripts/CheckForHacks.cs  
line 87, replace

```auto
Logger.LogInformation("Scanning files...", FilesToCheck.Count);

```

with

```auto
Logger.LogInformation("Scanning files... [{Arg0}]", FilesToCheck.Count);

```

hope that helps!

---

<div class="post-metadata">

**Author:** ![so\_toasty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@so\_toasty](https://forums.unrealengine.com/u/so_toasty)\
**Post date:** [November 26, 2023, 8:50pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/19 "2023-11-26T20:50:08Z")

</div>

good to know, thanks!

---

<div class="post-metadata">

**Author:** ![zaha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zaha/32/947496_2.png) [@zaha](https://forums.unrealengine.com/u/zaha)\
**Post date:** [November 26, 2023, 10:19pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/20 "2023-11-26T22:19:49Z")

</div>

You need to be logged in on Github and part of the Epic Organization. [See this manual](https://www.unrealengine.com/en-US/ue-on-github) on how to get access to the Unreal repository.

---

<div class="post-metadata">

**Author:** ![kinanhSalem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kinanhSalem](https://forums.unrealengine.com/u/kinanhSalem)\
**Post date:** [November 27, 2023, 4:26pm UTC](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088/21 "2023-11-27T16:26:33Z")

</div>

thanks…i will try it …

[Next page](https://forums.unrealengine.com/t/error-compiling-the-automation-tool-after-updating-visual-studio-today-unreal-5-3-2/1393088.md?page=2)
