'java.lang.IllegalArgumentException Invalid space key' when Creating a New Space

Still need help?

The Atlassian Community is here for you.

Ask the community

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).






























Last modified on Jan 6, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.