# Error using command line package (runUAT)

**URL:** <https://forums.unrealengine.com/t/error-using-command-line-package-runuat/333669>\
**Category:** Platform & Builds\
**Tags:** runuatbat, command-line, unreal-engine, Packaging, question\
**Created:** [September 28, 2015, 6:33pm UTC](https://forums.unrealengine.com/t/error-using-command-line-package-runuat/333669 "2015-09-28T18:33:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheZMan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheZMan](https://forums.unrealengine.com/u/TheZMan)\
**Post date:** [September 28, 2015, 5:28pm UTC](https://forums.unrealengine.com/t/error-using-command-line-package-runuat/333669/1 "2015-09-28T17:28:05Z")

</div>

Tried

- -verbose
- -platform=Win64
- -clientConfig=Shipping
- Removed -archive options
- Added -stagingdirectory instead of archive

No changes - same error.

---

<div class="post-metadata">

**Author:** ![TheZMan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheZMan](https://forums.unrealengine.com/u/TheZMan)\
**Post date:** [September 28, 2015, 6:33pm UTC](https://forums.unrealengine.com/t/error-using-command-line-package-runuat/333669/2 "2015-09-28T18:33:29Z")

</div>

Trying to set up a nightly build process using command lines from [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/How_to_package_your_game_with_commands). Package works from editor.

D:\SVNRepositories\DTAutoBuild\>“C:\Program Files\Unreal Engine\4.9\Engine\Build\BatchFiles\runUAT” BuildCookRun -project=“D:\SVNRepositories\DTAutoBui  
ld\DeathTractor.uproject” -noP4 -platform=Win32 -clientconfig=Development -serverconfig=Development -cook -allmaps -build -stage -pak -archive -archiv  
eddirectory=“d:\Users\exatogames\Desktop\Build”

Error as follows:

```
CommandUtils.Run: Run: C:\Program Files\Unreal Engine\4.9\Engine\Binaries\DotNET\UnrealBuildTool.exe DeathTractorEditor Win64 Development D:\SVNRepos
itories\DTAutoBuild\DeathTractor.uproject -noxge -generatemanifest -NoHotReloadFromIDE
UnrealBuildTool: ERROR: Exception thrown while processing dependent modules of Launch
UnrealBuildTool: Exception thrown while processing dependent modules of Engine
UnrealBuildTool: Exception thrown while processing dependent modules of Landscape
UnrealBuildTool: Exception thrown while processing dependent modules of UnrealEd
UnrealBuildTool: Exception thrown while processing dependent modules of AnimGraph
UnrealBuildTool: Exception thrown while processing dependent modules of GraphEditor
UnrealBuildTool: Exception thrown while processing dependent modules of ClassViewer
UnrealBuildTool: Exception thrown while processing dependent modules of PropertyEditor
UnrealBuildTool: Exception thrown while processing dependent modules of Documentation
UnrealBuildTool: Exception thrown while processing dependent modules of SourceControl
UnrealBuildTool: Exception thrown while processing dependent modules of AssetTools
UnrealBuildTool: Exception thrown while processing dependent modules of TextureEditor
UnrealBuildTool: Exception thrown while processing dependent modules of MainFrame
UnrealBuildTool: Exception thrown while processing dependent modules of TargetPlatform
UnrealBuildTool: ERROR: Couldn't find module rules file for module 'AT9AudioFormat'.
CommandUtils.Run: Run: Took 2.0181154s to run UnrealBuildTool.exe, ExitCode=5
BuildCommand.Execute: ERROR: BUILD FAILED
Program.Main: ERROR: AutomationTool terminated with exception:
Program.Main: ERROR: Exception in AutomationUtils.Automation: Command failed (Result:5): C:\Program Files\Unreal Engine\4.9\Engine\Binaries\DotNET\Unr
ealBuildTool.exe DeathTractorEditor Win64 Development D:\SVNRepositories\DTAutoBuild\DeathTractor.uproject -noxge -generatemanifest -NoHotReloadFrom
IDE. See logfile for details: 'UnrealBuildTool-2015.09.28-09.52.11.txt'
Stacktrace: at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOption
s Options, Dictionary`2 EnvVars)
   at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
   at AutomationTool.UE4Build.BuildWithUBT(String ProjectName, String TargetName, UnrealTargetPlatform TargetPlatform, String Config, String UprojectP
ath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean Forc
eUnity, Dictionary`2 EnvVars)
   at AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean
InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars)
   at Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL)
   at BuildCookRun.DoBuildCookRun(ProjectParams Params)
   at BuildCommand.Execute()
   at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
   at AutomationTool.Automation.Process(String[] CommandLine)
   at AutomationTool.Program.MainProc(Object Param)
   at AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
   at AutomationTool.Program.Main()
```
