Trying to Build my package but getting AutomationTool exception :AutomationTool.AutomationException: Failed to create directory

So this is my first time posting on the Answers section so hello to everyone :slight_smile:

I’ve come up with an error and I can’t seem to figure out what the problem is. I’ve googled my way through problems similar to this, but nothing seems to be working. I am trying to package a game for Windows 64-bit version and it says that the “Cook command Completed” and “Stage Command Started” and then immediately throws an error referring to AutomationTool. I’m assuming this is something built in to Unreal and not something I should attempt to change or mess around with. So what I would like to know is what is causing this error and how do I fix it. Also what are some key things I should look for so that this doesn’t happen again? If you need screenshots of anything please let me know.

Log: The Log

So I posted this a week ago and nobody replied, but I did sort of figure this out. I don’t fully understand why the error kept happening, but thanks to the answer/comment on this question I decided to try another path. Instead of putting it where I wanted to put it I decided to just put it on my Desktop. Low and behold it gave me that sweet notification “Build Successful”. So here is my answer to this Question based off of the other forum comment/answer. Since windows only allows a certain number of characters, he says 2^8 or 256, there was probably too many characters in my filepaths that it threw this error. My best guess is if this error occurs for you try rebuilding in either your desktop or creating a folder on your drive like "C:\a" without the quotation marks obviously :slight_smile: