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

This widget could not be displayed.

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
This widget could not be displayed.

.. 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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

285 views 5 0
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