Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

LexoRank error while deleting issues

java.lang.RuntimeException: Could not find suitable distance for rank.
java.lang.RuntimeException: Could not find suitable distance for rank.
	at com.atlassian.greenhopper.model.lexorank.LexoRank.findSpacing( [?:?]
	at com.atlassian.greenhopper.model.lexorank.LexoRank.between( [?:?]
	at com.atlassian.greenhopper.model.lexorank.LexoRank.between( [?:?]
	at com.atlassian.greenhopper.model.lexorank.LexoRank.genNext( [?:?]
	at com.atlassian.greenhopper.service.lexorank.LexoRankOperation.rankInitially( [?:?]
	at com.atlassian.greenhopper.service.lexorank.LexoRankOperation.execute( [?:?]
	at com.atlassian.greenhopper.manager.lexorank.LexoRankManagerImpl.performRankOperation( [?:?]
	at com.atlassian.greenhopper.manager.lexorank.LexoRankManagerImpl.getRankOrRankInitially( [?:?]
	at com.atlassian.greenhopper.customfield.lexorank.LexoRankCFType.getValueFromIssue( [?:?]
	at com.atlassian.greenhopper.customfield.lexorank.LexoRankCFType.getValueFromIssue( [?:?]
	at com.atlassian.jira.issue.fields.ImmutableCustomField.getValue( [classes/:?]
	at com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper$DeletedIssueEventData.collectCustomFieldValues( [classes/:?]
	at com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper$DeletedIssueEventData.<init>( [classes/:?]
	at com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper.deleteIssue( [classes/:?]
	at com.atlassian.jira.issue.managers.DefaultIssueManager.deleteIssue( [classes/:?]
	at com.atlassian.jira.issue.managers.RequestCachingIssueManager.deleteIssue( [classes/:?]
	at com.atlassian.jira.bc.issue.DefaultIssueService.delete( [classes/:?]
	at com.atlassian.jira.bc.issue.DefaultIssueService.delete( [classes/:?]

1 answer

0 votes

This can happen when you've been re-ranking a lot and have used up too many spaces or put a huge distance between some issues.  It's more likely to happen when something has gone wrong with ranking somewhere, and you're hitting a broken one.

Best bet is to go through the options over at

@Nic Brough _Adaptavist_  Thanks for your reply.

We are seeing this error after Re-indexing as part of weekly maintenance. 

Generally, you don't reindex weekly, it should not be needed on a well-set-up Jira.

Have you worked through the steps on the document I gave?

Yes. I worked on that document yesterday. 

We have 14 fields in all.

Balance status check - Failed for most of the Fields.

Duplicate ranks check - Failed for half of the fields.

And did you apply the fixes for those?

I did "balance"  to custom fields.  I am not sure how to fix.

Did you read all the links in the "how to fix this" columns in the error message table?


The following error is in logs.:

Exception: 'Could not find suitable distance for rank.'

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

92 views 0 1
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you