Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "Error importing data: java.lang.NullPointerException: userName" importing xml to cloud

Rajeev Sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 12, 2018

Getting "Error importing data: java.lang.NullPointerException: userName" while importing backup xml to cloud.

6.3.9 was upgraded to 7.0.0 
7.0.0 was upgraded to 7.9
backup xml taken from 7.9 and imported to cloud.

1 answer

2 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2018

Hello,

Hopefully I am not too late to answer this question. But maybe it will be useful to other people, who have the same error.

I tried to import a backup from Jira Server to Cloud and met the same error.

The message of the error is misleading. The userName field was filled for all users. The problem actually was with the emailAddress and lowerEmailAddress fields. I fixed it with the following query to the database:

update cwd_user set email_address = lower_user_name || '@aaa.com', lower_email_address = lower_user_name || '@aaa.com' where email_address = '?' or email_address = '' or email_address is null

I linked faked email addresses to users. In your case you can link to real ones.

Suggest an answer

Log in or Sign up to answer