JIRA Importer Fails with IllegalArgumentException

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Using the JIRA Importer, the import operation fails with the following stack trace:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 java.lang.IllegalArgumentException: name argument cannot be null or blank at org.apache.commons.lang.Validate.isTrue(Validate.java:157) at com.atlassian.crowd.model.group.GroupTemplate.<init>(GroupTemplate.java:33) at com.atlassian.crowd.importer.mappers.jdbc.GroupMapper.mapRow(GroupMapper.java:29) at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:92) at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:448) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:396) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:458) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:466) at com.atlassian.crowd.importer.importers.JdbcImporter.findGroups(JdbcImporter.java:56) at com.atlassian.crowd.importer.importers.BaseImporter.importUsersGroupsAndMemberships(BaseImporter.java:230) at com.atlassian.crowd.importer.importers.BaseDelegatingJdbcImporter.importUsersGroupsAndMemberships(BaseDelegatingJdbcImporter.java:74) at com.atlassian.crowd.importer.importers.JiraImporter.importUsersGroupsAndMemberships(JiraImporter.java:10) at com.atlassian.crowd.importer.manager.ImporterManagerImpl.performImport(ImporterManagerImpl.java:36) at com.atlassian.crowd.console.action.dataimport.AtlassianImporter.doImport(AtlassianImporter.java:54) at com.atlassian.crowd.console.action.dataimport.AtlassianImporter.doCheckAdditionalParamsRequired(AtlassianImporter.java:118)

Cause

One of the groups from JIRA's "cwd_group" table has empty name.

For JIRA version prior to 4.3, please check the "groupbase" table.

Resolution

In the JIRA database, "cwd_group" table, find what group entry does not have a name and then add a name to it.

For JIRA version prior to 4.3, please check the "groupbase" table.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.