Error importing data while migrating Jira: "Incorrect string value"

I'm in the process of upgrading Jira from version 3.13.2 to 4.4.5. I've been following 'Migrating JIRA to Another Server' doc. While importing the XML backup into the test server I get the following exception:

Error importing data: org.apache.commons.lang.exception.NestableException: com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericEntityException: while inserting:...

...(SQL Exception while executing the following:INSERT INTO jiraaction (ID, issueid, AUTHOR, actiontype, actionlevel, rolelevel, actionbody, CREATED, UPDATEAUTHOR, UPDATED, actionnum) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (Incorrect string value: '\xEF\xBF\xBDHot...' for column 'actionbody' at row 1))

This breaks the database badly, and I have to empty it out to get Jira back to setup mode... Any ideas?

2 answers

It seems one of the posts contained a control character in the body. To resolve, I've sanitized the XML data like so prior to importig again:

sed -i 's/^C//g' $XMLBACKUP #^C to be typed as ctrl V and ctrl C

https://confluence.atlassian.com/pages/viewpage.action?pageId=211649893

.. this will be the explanation and cure for most people; your character encoding on the database and the encoding of the data in the import file do not match

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,296 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot