Upgrade from 4.2.3 to 5.1.7 failed due to Workflow trailing white space

I was trying to upgrade our JIRA Production server from 4.2.3 to 5.1.7 (on a different server). Everything seemed fine until I tried to restore the 4.2.3 database. It crashed and gave me an 'Exception' error "Exception trhrown during upgrade: Failed to upgrade workflow: ...

Iooked up the error and found out that I can't have trailing white space after a workflow name. Here's the link explaining it (https://jira.atlassian.com/browse/JRA-30157?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel).

The fix was a little confusing plus I don't have access to our Oracle Database (I'd have to get our database manager to handle it) so I was wondering if instead I could just edit the XML backup (from 4.2.3) and delete the blank space(s) after all of the Workflow names before restoring it to 5.1.7. It looks like the 'name' is referenced in several places so I would change all references to that name.

1 answer

1 accepted

Accepted Answer
0 votes

Yes, one of the workarounds for this is to edit the XML backup itself and remove the whitespace at the beginning or the end of the workflow names.

Make sure to create a copy of the backup before making changes to it, just in case.

Hope this helps,

Marcus Silveira

Thanks. That worked like a charm. I haven't tested it yet, but it did succeed the restore.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

72 views 0 3
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