Forums

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

Unable to restore database from xml

Teradici November 17, 2020

Hi guys, we were trying to migrate database from mysql to postgres database,

following the instructions, but we ended up with error.
What is happening???

Error importing data: org.xml.sax.SAXException: com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericEntityException: while inserting: 
.........

(SQL Exception while executing the following:INSERT INTO public.jiraaction (ID, issueid, AUTHOR, actiontype, actionlevel, rolelevel, actionbody, CREATED, UPDATEAUTHOR, UPDATED, actionnum) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: invalid byte sequence for encoding "UTF8": 0x00))

1 answer

0 votes
Nic Brough -Adaptavist-
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.
November 18, 2020

You have characters in your MySQL data that your Postgres database is not set up to support.

I would take the xml you've downloaded from the mysql service and run the xml cleaner on it first - see https://confluence.atlassian.com/jira/removing-invalid-characters-from-xml-backups-12079.html

Teradici November 18, 2020

Thank you very much. Looks like it is the reason.

Found the record, and it works now

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events