# turnkey returned an error, code 1

**URL:** <https://forums.unrealengine.com/t/turnkey-returned-an-error-code-1/1200214>\
**Category:** Feedback & Requests\
**Tags:** SDK, unreal-engine\
**Created:** [June 15, 2023, 3:34pm UTC](https://forums.unrealengine.com/t/turnkey-returned-an-error-code-1/1200214 "2023-06-15T15:34:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JP\_OnTheIndex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JP\_OnTheIndex](https://forums.unrealengine.com/u/JP_OnTheIndex)\
**Post date:** [June 15, 2023, 3:34pm UTC](https://forums.unrealengine.com/t/turnkey-returned-an-error-code-1/1200214/1 "2023-06-15T15:34:31Z")

</div>

Whenever I try to package my Game in Unreal Engine 5.1.1, I get this error under the SDK management section of the Windows build section “Turnkey returned an error, code 1”. I’ve looked through the forums and only found one solution with was to delete a registry component where there was no Command Processor Directory. I have installed all the SDKs for Windows but I’m still unable to package my game. If I try to use the Update SDK option under my PC name in the All Devices Section. I get an error saying “Unable to update SDK”. I’ve looked through A lot of forums, subreddits, and other 3rd party forums but I was unable to find a solution.

---

<div class="post-metadata">

**Author:** ![Neumiller](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neumiller/32/1207671_2.png) [@Neumiller](https://forums.unrealengine.com/u/Neumiller)\
**Post date:** [December 11, 2023, 2:54pm UTC](https://forums.unrealengine.com/t/turnkey-returned-an-error-code-1/1200214/2 "2023-12-11T14:54:31Z")

</div>

Did you resolve the issue? I haven’t tried packaging a game yet, but I do see this error in SDK Management in the editor Platforms dropdown.

---

<div class="post-metadata">

**Author:** ![VG\_Physix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vg_physix/32/1087453_2.png) [@VG\_Physix](https://forums.unrealengine.com/u/VG_Physix)\
**Post date:** [December 27, 2023, 10:30pm UTC](https://forums.unrealengine.com/t/turnkey-returned-an-error-code-1/1200214/3 "2023-12-27T22:30:17Z")

</div>

To fix this issue you just need to reverify the Unreal Engine files since that seemed to work for me but Unreal engine is different than other engines

---

<div class="post-metadata">

**Author:** ![Neuro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Neuro](https://forums.unrealengine.com/u/Neuro)\
**Post date:** [January 2, 2024, 1:16pm UTC](https://forums.unrealengine.com/t/turnkey-returned-an-error-code-1/1200214/4 "2024-01-02T13:16:54Z")

</div>

This was the trick for me after installing all sorts of SDK’s and .net’s and deleting registry entries. a simple rightclick-verify on the engine installation in the EGS launcher.

Thanks!

---

<div class="post-metadata">

**Author:** ![VG\_Physix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vg_physix/32/1087453_2.png) [@VG\_Physix](https://forums.unrealengine.com/u/VG_Physix)\
**Post date:** [January 17, 2024, 9:48am UTC](https://forums.unrealengine.com/t/turnkey-returned-an-error-code-1/1200214/5 "2024-01-17T09:48:46Z")

</div>

Glad I was able to find the solution to your issue 👍

---

<div class="post-metadata">

**Author:** ![Gamieon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gamieon](https://forums.unrealengine.com/u/Gamieon)\
**Post date:** [January 22, 2024, 9:45pm UTC](https://forums.unrealengine.com/t/turnkey-returned-an-error-code-1/1200214/6 "2024-01-22T21:45:55Z")

</div>

I started getting the error today. Reverifying the Unreal Engine files worked for me as well.

This is strange because everything worked fine a few days ago. I didn’t run any Windows Updates or (un)install any SDK’s.

Stranger still is that as of yesterday, Visual Studio 2022 Community began to crash when opening on my other machine every single time. Not even an uninstall and reinstall fixed it. I wonder if that is somehow related.

---

<div class="post-metadata">

**Author:** ![VG\_Physix](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vg_physix/32/1087453_2.png) [@VG\_Physix](https://forums.unrealengine.com/u/VG_Physix)\
**Post date:** [February 18, 2024, 1:03am UTC](https://forums.unrealengine.com/t/turnkey-returned-an-error-code-1/1200214/7 "2024-02-18T01:03:03Z")

</div>

Tutorial on the subject

> **[Turnkey SDK Returning Error Code 1 | Community tutorial](https://dev.epicgames.com/community/learning/tutorials/e32R/unreal-engine-turnkey-sdk-returning-error-code-1)**
>
> This tutorial will show you how to fix the Turnkey SDK error code:1 it's going to be easy and simple to follow.

---

<div class="post-metadata">

**Author:** ![Dunkelza](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dunkelza](https://forums.unrealengine.com/u/Dunkelza)\
**Post date:** [March 13, 2024, 11:12pm UTC](https://forums.unrealengine.com/t/turnkey-returned-an-error-code-1/1200214/8 "2024-03-13T23:12:45Z")

</div>

Verifying the engine install from the launcher seems to have worked for me!

I also tried these steps first, but they didn’t fix it (at least until I verified):

> [@Are you unable to package Windows projects in UE5? Fear not, I have a solution for you!](https://forums.unrealengine.com/t/are-you-unable-to-package-windows-projects-in-ue5-fear-not-i-have-a-solution-for-you/231593):
>
> So when I first installed UE5 and tried to package a Windows project I was greeted with [this](https://i.imgur.com/n8pSt5E.png) message. If I disregarded it and clicked continue, my project would “package” instantly. Except… it didn’t. It just left me with an empty packaged game folder. Luckily I have found a solution! So, if you’ve experienced the same or a similar issue, here’s what you need to do: Step 1 Copy the “hostfxr.dll” file in “C:\Program Files\Epic Games\UE\_5.0EA\Engine\Binaries\ThirdParty\DotNet\Windows\host\fxr\…
