Indexing failed after changing the mapping of the behaviour-plugin

Some custom fields were deleted in JIRA but there were still in the behaviour-plugin. At the beginning, the behaviour was mapped to all issue types. If the behaviour mapping is changed, the indexing fails and the logs indicate that the deleted fields cannot be found. This is the error log i get:

[onresolve.jira.groovy.Behaviour] Could not find field with key: customfield_10002

As a troubleshoot, I tried to delete the fields in the behaviour plugin as well but it did not help. The JIRA version is v6.1.4#6159-sha1:44eaede. The behaviour plugin version is 0.5.10. The script runner version is 2.1.16.

7 answers

0 vote

Try disabling the plugin then reindexing. I think this can only happen with hidden field types

Hello Jamie, thanks for your quick answer. I disabled the behaviour plugin under "Add-ons", Manage add-ons". And then the indexing works but it's not an option for me since I'm using other behaviours. If I unmap the behaviour which is causing problems the indexing fails as well.

0 vote

But after indexing turn it on again, and then delete the fields from the behaviours that have been deleted...

I turned the behaviour plugin down, then I reindexed and it worked. After this, I turned on the behaviour plugin, deleted the fields which have been deleted in the behaviour and after this, the inexing is still failing.

0 vote

Could you create an issue at https://jamieechlin.atlassian.net/browse/JBHV including the full stack trace please?

0 vote

Also check if you are using any "Hideable" custom field types, I don't think anything else could cause this problem.

Actually, I found out that 2 other behaviours contained the deleted fields. I delete the fields in the behaviors, and reindex but I got another error message in the logs: [atlassian.jira.index.AccumulatingResultBuilder] java.util.concurrent.ExecutionException: java.lang.NullPointerException: Cannot invoke method getValidators() on null object

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

78 views 0 5
Read article

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