'java.lang.IllegalArgumentException Invalid space key' when Creating a New Space
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Users are unable to create a new space. The following appears in the atlassian-confluence.log
:
java.lang.IllegalArgumentException: Invalid space key.
at com.atlassian.confluence.spaces.DefaultSpaceManager.createSpace(DefaultSpaceManager.java:428)
Cause
The space key contains illegal characters, or the space key already exists.
Resolution
Chose a different space key, which can only consist of ASCII letters or numbers (A-Z, a-z, 0-9).