Script Fields being Dropped on re-index

Hi Jamie,

I'm seeing this error spam the logs when I try to reindex, though it doesn't stop the re-index happening.

However, the calculation being done in the scripts is not occuring so I feel the two may be related.

Have you ever seen the below before?




2014-11-03 20:56:29,586 IssueIndexer:thread-4 WARN 1198x197041x1 edzrep /secure/admin/jira/IndexReIndex.jspa [jira.issue.index.DefaultIssueDocumentFactory] Error indexing issue APPLE_GER-18: Dropping 'customfield_10008'


2014-11-03 20:56:29,602 IssueIndexer:thread-1 WARN 1198x197041x1 edzrep /secure/admin/jira/IndexReIndex.jspa [jira.issue.index.DefaultIssueDocumentFactory] Error indexing issue APPLE_GER-17: Dropping 'customfield_10011'

2014-11-03 20:56:29,617 IssueIndexer:thread-9 WARN 1198x197041x1 edzrep /secure/admin/jira/IndexReIndex.jspa [jira.issue.index.DefaultIssueDocumentFactory] Error indexing issue APPLE_GER-22: Dropped: [customfield_10008, customfield_10011]



4 answers

Hi. Can you provide the version info? Isn't there any other info in the logs, immediately before the that error you've shown?

I think I found the problem here: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double I'll have a look at the script and get back to you.

If you're using the number indexer you will need to cast to a Double. Preview in the script fields UI will show this as an error....

We have ScriptRunner latest relase on JIRA 6.4.12 and facing the same problem now. We just upgraded our system from 6.3.15 to 6.4.12 today and currently have a open P1 issue with Atlassian support.

We disabled all plugins and then tried reindexing and see these errors for every custom field and not just scripted field.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

440 views 8 26
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