java.lang.IllegalArgumentException: searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index

Atlassian JIRA | roomeon | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Confluence logs an error when reindexing attachments with minor edit set to true. * In some cases the index will not complete, despite the indexes being rebuilt from scratch. * Restrictions do not make a difference. * Minor Edit is set to true in the contentproperties table when an attachment is added using drag-and-drop. Here is the error: {code} 2015-11-23 20:14:16,197 ERROR [Indexer: 3] [confluence.search.lucene.ReindexWorkBatch] indexCollection Exception indexing document with id: 15434444 -- referer: https://secure.compandsave.com/confluence/admin/search-indexes.action | url: /confluence/admin/reindex.action | userName: xxxx | action: reindex java.lang.IllegalArgumentException: searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index at com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask.<init>(AddChangeDocumentIndexTask.java:47) at com.atlassian.confluence.search.lucene.tasks.IndexTaskFactory.createAddChangeDocumentTask(IndexTaskFactory.java:133) at com.atlassian.confluence.search.lucene.tasks.RebuildChangeDocumentsIndexTask.perform(RebuildChangeDocumentsIndexTask.java:78) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.indexCollection(ReindexWorkBatch.java:146) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.lambda$executeTransaction$417(ReindexWorkBatch.java:109) at com.atlassian.confluence.search.lucene.ReindexWorkBatch$$Lambda$187/1248108333.doInTransaction(Unknown Source) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.executeTransaction(ReindexWorkBatch.java:84) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.run(ReindexWorkBatch.java:72) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:164) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} As a workaround, minor edit may be set to false in the database with a query such as the following which was tested on PostgreSQL: {code}update contentproperties set longval = '0' where propertyname = 'MINOR_EDIT' and contentid = (select contentid from content where contenttype = 'ATTACHMENT' and title = '_attachment name from error message_'){code}

    Atlassian JIRA | 2 years ago | roomeon
    java.lang.IllegalArgumentException: searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index
  2. 0

    Confluence logs an error when reindexing attachments with minor edit set to true. * In some cases the index will not complete, despite the indexes being rebuilt from scratch. * Restrictions do not make a difference. * Minor Edit is set to true in the contentproperties table when an attachment is added using drag-and-drop. Here is the error: {code} 2015-11-23 20:14:16,197 ERROR [Indexer: 3] [confluence.search.lucene.ReindexWorkBatch] indexCollection Exception indexing document with id: 15434444 -- referer: https://secure.compandsave.com/confluence/admin/search-indexes.action | url: /confluence/admin/reindex.action | userName: xxxx | action: reindex java.lang.IllegalArgumentException: searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index at com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask.<init>(AddChangeDocumentIndexTask.java:47) at com.atlassian.confluence.search.lucene.tasks.IndexTaskFactory.createAddChangeDocumentTask(IndexTaskFactory.java:133) at com.atlassian.confluence.search.lucene.tasks.RebuildChangeDocumentsIndexTask.perform(RebuildChangeDocumentsIndexTask.java:78) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.indexCollection(ReindexWorkBatch.java:146) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.lambda$executeTransaction$417(ReindexWorkBatch.java:109) at com.atlassian.confluence.search.lucene.ReindexWorkBatch$$Lambda$187/1248108333.doInTransaction(Unknown Source) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.executeTransaction(ReindexWorkBatch.java:84) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.run(ReindexWorkBatch.java:72) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:164) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} As a workaround, minor edit may be set to false in the database with a query such as the following which was tested on PostgreSQL: {code}update contentproperties set longval = '0' where propertyname = 'MINOR_EDIT' and contentid = (select contentid from content where contenttype = 'ATTACHMENT' and title = '_attachment name from error message_'){code}

    Atlassian JIRA | 2 years ago | roomeon
    java.lang.IllegalArgumentException: searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index

      at com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask.<init>()
    2. com.atlassian.confluence
      ReindexWorkBatch.lambda$executeTransaction$417
      1. com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask.<init>(AddChangeDocumentIndexTask.java:47)
      2. com.atlassian.confluence.search.lucene.tasks.IndexTaskFactory.createAddChangeDocumentTask(IndexTaskFactory.java:133)
      3. com.atlassian.confluence.search.lucene.tasks.RebuildChangeDocumentsIndexTask.perform(RebuildChangeDocumentsIndexTask.java:78)
      4. com.atlassian.confluence.search.lucene.ReindexWorkBatch.indexCollection(ReindexWorkBatch.java:146)
      5. com.atlassian.confluence.search.lucene.ReindexWorkBatch.lambda$executeTransaction$417(ReindexWorkBatch.java:109)
      5 frames