Can't import users from JIRA using SQL Server database
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
Problem
When importing users from JIRA, the following error appears in the atlassian-crowd.log
1
2
Cause :
javax.servlet.ServletException: StatementCallback; bad SQL grammar [SELECT groupname from groupbase order by groupname]; nested exception is java.sql.SQLException: Invalid object name 'groupbase'.
The following also can appear in the atlassian-crowd.log
1
2
2016-03-30 14:17:43,311 http-bio-8443-exec-10 ERROR [console.action.dataimport.AtlassianImporter] Import configuration test failed
com.atlassian.crowd.importer.exceptions.ImporterConfigurationException: Could not load database connection: Login failed for user '<JIRA-DB-USER>'.
Cause
In the JIRA guide , we recommend creating a database schema for JIRA.
If JIRA database user account does not have this schema set as the account's default schema, you will receive the error above.
Resolution
Change the JIRA database user account's default schema to the schema you created for the JIRA database.
Was this helpful?