IBM Cloud Docs
I tried to create a workspace, why did it fail?

I tried to create a workspace, why did it fail?

Review the following sections to help debugging workspace new failures.

Workspace create fails with message Request Entity Too Large

When you create a workspace from an existing terraform.tfstate file, it fails with error code 413 and a message Required Entiry Too Large.

Your workspace create did not reach the Schematics, due to the limitation of the terraform.tfstate file.

Example error message

FAILED
Could not create the workspace. Please verify that your request is correct. If the problem persists, contact IBM Cloud support.

Status Code: 413
Message:

<title>413 Request Entity Too Large</title>

The terraform.tfstate file must be less than 2 MB. When you create workspace from an existing Terraform state file, the terraform.tfstate file must be less than 2 MB. Greater than 2 MB state file is not supported in the Schematics. Rerun the workspace create operation with less than 2 MB state file.