Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

MapperParsingException while indexing work objects of a class

SA-44638

Summary



Work object search is not working for a specific set of classes in global search both designer studio and user portal.

Error Messages



2017-08-18 07:22:30,575 [ PegaRULES-Batch-34] [ STANDARD] [ ] [ PegaRULES:07.10] (nal.es.DistributedIndexerAgent) ERROR - Incremental indexing of 'WORK' entries failed: Indexing request failed. Please contact your system administrator.
com.pega.pegarules.priv.search.nextgen.FTSException: Indexing request failed. Please contact your system administrator.
at com.pega.pegarules.search.internal.es.AbstractIndexer.processUpdateIndexImpl(AbstractIndexer.java:300)
at com.pega.pegarules.search.internal.es.AbstractIndexer.updateIndex(AbstractIndexer.java:258)
at com.pega.pegarules.search.internal.es.DistributedIndexerAgent.updateIndexWithEntriesForType(DistributedIndexerAgent.java:228)
at com.pega.pegarules.search.internal.es.DistributedIndexerAgent.populateIndexEntries(DistributedIndexerAgent.java:203)
at com.pega.pegarules.search.internal.es.DistributedIndexerAgent.performIndexing(DistributedIndexerAgent.java:90)
...
Caused by: MapperParsingException[failed to parse [ABCD]]; nested: IllegalArgumentException[Invalid format: "50A0-12-00" is malformed at "A0-12-00"];
at org.elasticsearch.index.mapper.FieldMapper.parse(FieldMapper.java:329)
at org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:311)
at org.elasticsearch.index.mapper.DocumentParser.parseValue(DocumentParser.java:438)
at org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:264)
at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:124)
...
Caused by: java.lang.IllegalArgumentException: Invalid format: "50A0-12-00" is malformed at "A0-12-00"
at org.joda.time.format.DateTimeParserBucket.doParseMillis(DateTimeParserBucket.java:187)
at org.joda.time.format.DateTimeFormatter.parseMillis(DateTimeFormatter.java:826)

Steps to Reproduce



Search for any available work object and then observe if it is searchable.


Root Cause




In logs there is a "MapperParsingException" for ABCD property that comes up every time even while performing re-index.

Property "ABCD " is configured as "text" and in the section used in runtime uses an autocomplete control.

But in logs somehow while generating index it is performing datetime parsing.

Ideally all the properties are created with the mapping type "string" by Elastic search API's. Mappings for property "ABCD " is incorrectly generated with type as "date".

"ABCD":{"type":"date","norms":{"enabled":false}},"


Resolution




Delete the existing indexes from the index directory and then perform reindex for the newly created mappings ("ABCD":{"type":"string","norms":{"enabled":false}},") to enable the elastic search which resolves the reported issue.
Suggest Edit

Published April 12, 2018 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us