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

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:

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

Any help/advice would be great

  • Thanks

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)

1 Like

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 :sweat_smile:

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

1 Like

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?

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 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.