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

0 vote

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 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,319 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