# \[5.8\] BuildPatchTool fails with "FeatureLevel was not provided"

**URL:** <https://forums.unrealengine.com/t/5-8-buildpatchtool-fails-with-featurelevel-was-not-provided/2732453>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** Chunking, unreal-engine, open, Packaging, build-failed\
**Created:** [June 30, 2026, 8:30am UTC](https://forums.unrealengine.com/t/5-8-buildpatchtool-fails-with-featurelevel-was-not-provided/2732453 "2026-06-30T08:30:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![placidetmuzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@placidetmuzo](https://forums.unrealengine.com/u/placidetmuzo)\
**Post date:** [June 30, 2026, 8:30am UTC](https://forums.unrealengine.com/t/5-8-buildpatchtool-fails-with-featurelevel-was-not-provided/2732453/1 "2026-06-30T08:30:19Z")

</div>

### Summary

When packaging a project with bBuildHttpChunkInstallData=True and assets assigned to chunks \> 0, BuildPatchTool (BPT) fails with: FeatureLevel was not provided. Please provide the FeatureLevel commandline argument which matches the existing client support.

### What Type of Bug are you experiencing?

Foundation (C++ Tools, Profiling, & Pipeline)

### Steps to Reproduce

- Enable bBuildHttpChunkInstallData=True in DefaultGame.ini
- Assign at least one asset to a chunk ID \> 0 (via Primary Asset Labels or similar)
- Set HttpChunkInstallDataDirectory and HttpChunkInstallDataVersion
- Package the project (BuildCookRun with -stage -manifests -createchunkinstall)

### Expected Result

BPT generates chunk manifests successfully.

### Observed Result

BPT fails with message “FeatureLevel was not provided. Please provide the FeatureLevel commandline argument which matches the existing client support.”

### Affects Versions

5.8

### Platform(s)

Windows

### Additional Notes

Add the following line after CmdLine += " -stdout";: CmdLine += " -FeatureLevel=LatestJson";

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [July 8, 2026, 8:01am UTC](https://forums.unrealengine.com/t/5-8-buildpatchtool-fails-with-featurelevel-was-not-provided/2732453/3 "2026-07-08T08:01:19Z")

</div>

The status of UE-386370 changed to ‘Needs Triage’. We are routing this to the appropriate team for investigation.

---

<div class="post-metadata">

**Author:** ![placidetmuzo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@placidetmuzo](https://forums.unrealengine.com/u/placidetmuzo)\
**Post date:** [July 27, 2026, 10:21am UTC](https://forums.unrealengine.com/t/5-8-buildpatchtool-fails-with-featurelevel-was-not-provided/2732453/4 "2026-07-27T10:21:10Z")

</div>

Since I haven’t received a single reply, here is my final workaround…

# UAT Patch: BuildPatchTool FeatureLevel (UE 5.8 EGS)

## Error fixed

```auto
LogBuildPatchTool: Error: FeatureLevel was not provided. Please provide the FeatureLevel commandline argument which matches the existing client support.

```

Occurs during Windows/Android packaging when `bBuildHttpChunkInstallData=True` and `bGenerateChunks=True` in `DefaultGame.ini`.

## Root cause

Epic bug - `BuildPatchTool v1.9.0` (UE 5.8) requires `-FeatureLevel` as a mandatory argument but the UAT script `CopyBuildToStagingDirectory.Automation.cs` does not pass it when invoking BPT for chunk install.

## Fix

### 1. Modify the source file

**File** : `UE_5.8\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs`

Find:

```csharp
CmdLine += " -customint=\"PakReadOrdering=0\"";
CmdLine += " -stdout";

```

Replace with:

```csharp

CmdLine += " -customint=\"PakReadOrdering=0\"";
CmdLine += " -FeatureLevel=Latest";
CmdLine += " -stdout";

```

### 2. Recompile UAT scripts

```auto
"UE_5.8\Engine\Binaries\ThirdParty\DotNet\10.0\win-x64\dotnet.exe" build "UE_5.8\Engine\Source\Programs\AutomationTool\Scripts\\AutomationScripts.Automation.csproj" -c Development

```

The patched DLL is written to:

`UE_5.8\Binaries\DotNET\AutomationTool\AutomationScripts\Scripts\net10.0\AutomationScripts.Automation.dll`

### 3. Proceed with build menu in Unreal Editor (EGS)

Build as usual.

## Notes

- The fix takes effect on the next UAT launch (not on a packaging already in progress).
- A **Verify** from Epic Games Launcher OVERWRITES the patch : redo steps 1 and 2.
- The value `Latest` corresponds to `EFeatureLevel::ManifestEncryptionSupport` (int 24), defined in `BuildPatchFeatureLevel.h`.
- Regression comes from commit : [4fea19f8ab6974f8569d03db231f4899bb8d563e](https://github.com/EpicGames/UnrealEngine/commit/4fea19f8ab6974f8569d03db231f4899bb8d563e) on [ChunkDirectoryMode.cpp](https://github.com/EpicGames/UnrealEngine/commit/4fea19f8ab6974f8569d03db231f4899bb8d563e#diff-3fd1cfa31b056c75de5c5497ebb44b4df2fb4b05002c7157a5b2209eaae5b11aR347) versus good but deleted old [PatchGenerationMode.cpp](https://github.com/EpicGames/UnrealEngine/commit/4fea19f8ab6974f8569d03db231f4899bb8d563e#diff-8b0822c8545ffdf544353af29436756265af5e4f6a696bb4f0ec3580cdd4f6beL256) file :

```cpp
// Grab the FeatureLevel. This is required param but safe to default, we can change this to a warning after first release, and then an error later, as part of a friendly roll out.
PARSE_SWITCH(FeatureLevel);
FeatureLevel.TrimStartAndEndInline();
if (FeatureLevel.IsEmpty())
{
    UE_LOG(LogBuildPatchTool, Log, TEXT("FeatureLevel was not provided, defaulting to LatestJson. Please provide the FeatureLevel commandline argument which matches the existing client support."));
    FeatureLevel = TEXT("LatestJson");
}

```
