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 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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

147 views 1 17
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