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 votes

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 votes

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 votes

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

0 votes

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 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,139 views 13 19
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