An unexpected error occurred generating chunks

Hi.

I’m trying to build a binary for add-on artifact with BuildPatchTool.exe, and I’m getting this error with no additional details:

Aborting chunk generation process.
An unexpected error occurred generating chunks.
LogBuildPatchTool: Error: Tool exited with: 5
Tool exited with: 5

Any suggestions what I’m doing wrong? The build for the game’s base is working fine.

Hello,

There is a log file for BuildPatchTool that will have some additional information. Could you have a look in the file located at %localappdata%\BuildPatchTool\Saved\Logs.

Given that you are trying to upload an add-on, I’m suspicious that you will see the following error: LogUploadBinary: Error: The following files were present in the build root, but are disallowed due to other artifacts in the installation pool already containing those files. If you do this indicates that there are files included in your add-on already in the installation pool for the base game in our backend. You will simply need to remove these duplicate files from the list of files being uploaded.

If you see a different error, can you share it here? Please don’t share the entire file as it may have sensitive information. If you think you need to share the complete file, please reach out to use privately here.

Thanks,
Seb

Hi Seb.

That was indeed the problem. Seems some of the DLC files got mixed up with the base game files during the test build.

This causes another problem now, as, even after I’ve rebuilt the base game without those files, I cannot build the DLC. Probably because the inactive binaries in the base game artifact still contain those files.

I’ve tried deleting the inactive binaries, but this is the error message I get now:

Error: An unexpected error occurred deleting binary from Epic services. Error code: errors.com.epicgames.common.missing_permission; Error message: Sorry your login does not posses the permissions ‘artifact:… DELETE’ needed to perform the requested operation

I thought that this might be because some of them are still labelled, but I don’t have permission to remove labels through the tool either (similar error).

Just to be clear, the binary that is currently set as active does NOT contain these conflicting files. They are only in the inactive binaries.

Btw, what is the reasoning behind not allowing us to delete the binaries from the dev portal manually or manage their labels in detail? Seems just inconvenient to me.

Thanks.

Also the binaries that were previously set to platform (even for test purposes) seem to never get removed, so I think I’m stuck with a previous test build blocking me from creating a DLC build.

Hey Styg,

If you’re still encountering this issue we recommend opening up a private case so we can assist directly.

Best,