# Exception while generating include data for UnrealEditor: System.ArgumentNullException: Value cannot be null. (Parameter 'element')

**URL:** <https://forums.unrealengine.com/t/exception-while-generating-include-data-for-unrealeditor-system-argumentnullexception-value-cannot-be-null-parameter-element/1332875>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine, bug-report\
**Created:** [October 15, 2023, 2:36am UTC](https://forums.unrealengine.com/t/exception-while-generating-include-data-for-unrealeditor-system-argumentnullexception-value-cannot-be-null-parameter-element/1332875 "2023-10-15T02:36:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PrincessKoko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PrincessKoko](https://forums.unrealengine.com/u/PrincessKoko)\
**Post date:** [October 15, 2023, 2:36am UTC](https://forums.unrealengine.com/t/exception-while-generating-include-data-for-unrealeditor-system-argumentnullexception-value-cannot-be-null-parameter-element/1332875/1 "2023-10-15T02:36:43Z")

</div>

Generating project files with either Rider or Visual Studio results in following error

- Exception while generating include data for UnrealEditor: System.ArgumentNullException: Value cannot be null. (Parameter ‘element’)

Full Log:

```auto
Running C:/Program Files/Epic Games/UE_5.3/Engine/Build/BatchFiles/Build.bat -projectfiles -project="C:/Users/user/Documents/Unreal Projects/Lyra53/Lyra53.uproject" -game -rocket -progress -log="C:\Users\user\Documents\Unreal Projects\Lyra53/Saved/Logs/UnrealVersionSelector-2023.10.15-03.44.36.log"
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -projectfiles -project="C:/Users/user/Documents/Unreal Projects/Lyra53/Lyra53.uproject" -game -rocket -progress -log="C:\Users\user\Documents\Unreal Projects\Lyra53/Saved/Logs/UnrealVersionSelector-2023.10.15-03.44.36.log"
Log file: C:\Users\user\Documents\Unreal Projects\Lyra53\Saved\Logs\UnrealVersionSelector-2023.10.15-03.44.36.log
Log file: C:\Users\user\AppData\Local\UnrealBuildTool\Log_GPF.txt

Generating VisualStudio2022 project files:
Discovering modules, targets and source code for project...
LyraGameEOS and dynamic target options are disabled when packaging from an installed version of the engine
Compiling GameFeaturePlugins in branch ++UE5+Release-5.3
Binding IntelliSense data...
Exception while generating include data for UnrealEditor: System.ArgumentNullException: Value cannot be null. (Parameter 'element')

   at System.Attribute.GetCustomAttributes(MemberInfo element, Type attributeType, Boolean inherit)

   at System.Reflection.CustomAttributeExtensions.GetCustomAttributes[T](MemberInfo element)

   at UnrealBuildTool.ModuleRules.IsValidForTarget(Type ModuleType, ReadOnlyTargetRules TargetRules, String& InvalidReason) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\ModuleRules.cs:line 1623

   at UnrealBuildTool.UEBuildTarget.AddAllValidModulesToTarget(ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 3886

   at UnrealBuildTool.UEBuildTarget.PreBuildSetup(ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 3354

   at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, Boolean bUsePrecompiled, UnrealIntermediateEnvironment IntermediateEnvironment, ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 1366

   at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, Boolean bUsePrecompiled, ILogger Logger) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 1233

   at UnrealBuildTool.ProjectFileGenerator.<>c __DisplayClass82_0.<GenerateIntelliSenseData>b__ 0(Int32 TargetIndex) in C:\Program Files\Epic Games\UE_5.3\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 2134
Binding IntelliSense data... 75%
Creating common properties file...
Creating common properties file... 0%
Writing project files...

```

I’ve tried verifying unreal, updating visual studio and dozen other things, making new project or blank project, same issue.

This results in rider not working with unreal at all  
 ![loadfailed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/f/01f11b0a0dfd89fe68f5ddc0252aa7e1c6ba8a39.png)

Any help/advice would be great

- Thanks

---

<div class="post-metadata">

**Author:** ![Guganana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guganana](https://forums.unrealengine.com/u/Guganana)\
**Post date:** [October 18, 2023, 9:51pm UTC](https://forums.unrealengine.com/t/exception-while-generating-include-data-for-unrealeditor-system-argumentnullexception-value-cannot-be-null-parameter-element/1332875/2 "2023-10-18T21:51:36Z")

</div>

We’re on the same boat compiling plugins - opened thread with some extra detauls if you’re interested in checking: [[UBT Bug] No longer able to compile plugins in standalone since 5.3 - Development / Pipeline & Plugins - Epic Developer Community Forums (unrealengine.com)](https://forums.unrealengine.com/t/ubt-bug-no-longer-able-to-compile-plugins-in-standalone-since-5-3/1318659)

---

<div class="post-metadata">

**Author:** ![PrincessKoko](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PrincessKoko](https://forums.unrealengine.com/u/PrincessKoko)\
**Post date:** [October 19, 2023, 8:23am UTC](https://forums.unrealengine.com/t/exception-while-generating-include-data-for-unrealeditor-system-argumentnullexception-value-cannot-be-null-parameter-element/1332875/3 "2023-10-19T08:23:14Z")

</div>

Glad to see i’m not only one experiencing this.

I felt like going crazy when issue still were occuring after reinstalling everything.

Hopefully it will get fixed sooner or later 😅

---

<div class="post-metadata">

**Author:** ![Protocasting](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Protocasting](https://forums.unrealengine.com/u/Protocasting)\
**Post date:** [April 5, 2024, 12:26pm UTC](https://forums.unrealengine.com/t/exception-while-generating-include-data-for-unrealeditor-system-argumentnullexception-value-cannot-be-null-parameter-element/1332875/4 "2024-04-05T12:26:47Z")

</div>

Still experiencing this in 2024 - rebuilding someone else’s plugin either standalone or trying to build with project.

> <https://github.com/KellanM/OpenAI-Api-Unreal/issues/66#issuecomment-2022770537>
>
> As of 04/01/2024, many models have been deprecated as per \[Deprecations\](https:/…/platform.openai.com/docs/deprecations)
> 
> This plugin therefore needs a spring-cleaning to cull deprecated models and add their replacements.

---

<div class="post-metadata">

**Author:** ![shadowtorturer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shadowtorturer](https://forums.unrealengine.com/u/shadowtorturer)\
**Post date:** [April 30, 2024, 7:07pm UTC](https://forums.unrealengine.com/t/exception-while-generating-include-data-for-unrealeditor-system-argumentnullexception-value-cannot-be-null-parameter-element/1332875/5 "2024-04-30T19:07:41Z")

</div>

It’s been half a year since the first post, people can’t update plugins for 5.3 or 5.4, I’m new to Unreal, but isn’t this a very serious problem? Aren’t there a lot of devs facing this?

---

<div class="post-metadata">

**Author:** ![Guy\_Paddock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guy\_Paddock](https://forums.unrealengine.com/u/Guy_Paddock)\
**Post date:** [September 15, 2024, 11:44pm UTC](https://forums.unrealengine.com/t/exception-while-generating-include-data-for-unrealeditor-system-argumentnullexception-value-cannot-be-null-parameter-element/1332875/6 "2024-09-15T23:44:45Z")

</div>

For me, this was caused by the Nvidia Omniverse plugin. The workaround in [[UBT Bug] No longer able to compile plugins in standalone since 5.3 - #11 by Sam\_Swain](https://forums.unrealengine.com/t/ubt-bug-no-longer-able-to-compile-plugins-in-standalone-since-5-3/1318659/11) worked for me.

It looks like what happens is that there is an extension method that takes no parameters that only exists on the type that is expected to be returned from enumerating each plugin. If the plugin has a bug and doesn’t return the right type, the method is missing, so the base method that requires the `element` parameter gets invoked, resulting in the exception about the required parameter being `null`. Using the workaround, you can identify the problematic plugin(s) and/or suppress the error.
