Indexing fails with the error DocValuesField "ISSUEPROP_proforma.forms$schemaVersion" appears more than once in this document
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Reindexing fails and the following error appears in atlassian-jira.log:
http-nio-8080-exec-10 url: /secure/WorkflowUIDispatcher.jspa; user: xxxx WARN [c.a.jira.index.AccumulatingResultBuilder] DocValuesField "ISSUEPROP_proforma.forms$schemaVersion" appears more than once in this document (only one value is allowed per field)
java.lang.IllegalArgumentException: DocValuesField "ISSUEPROP_proforma.forms$schemaVersion" appears more than once in this document (only one value is allowed per field)
at org.apache.lucene.index.SortedDocValuesWriter.addValue(SortedDocValuesWriter.java:67)
at org.apache.lucene.index.DefaultIndexingChain.indexDocValue(DefaultIndexingChain.java:550)
at org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:466)
...
Environment
Jira 8.x.x+
Diagnosis
Both ProForma Full and ProForma Lite are installed on the same instance.
Solution
Uninstall ProForma Lite in case you have both ProForma and ProForma Lite on the same instance and check if the problem is fixed.
If the issue persists, proceed with the next steps:
- Execute the following SQL query:
SELECT * FROM entity_property_index_document
WHERE PLUGIN_KEY = 'com.thinktilt.proforma.lite.add-on'
- If you get any results, stop Jira, take a database backup, then perform the following SQL delete statement:
DELETE FROM entity_property_index_document WHERE PLUGIN_KEY = 'com.thinktilt.proforma.lite.add-on';
- Start Jira and re-test.