Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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.'

Like sh w likes this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events