# Rollup Error

**URL:** <https://discuss.elastic.co/t/rollup-error/271109>\
**Category:** Elasticsearch\
**Tags:** rollups\
**Created:** [April 23, 2021, 3:43pm UTC](https://discuss.elastic.co/t/rollup-error/271109 "2021-04-23T15:43:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsalim](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@hsalim](https://discuss.elastic.co/u/hsalim)\
**Post date:** [April 23, 2021, 3:43pm UTC](https://discuss.elastic.co/t/rollup-error/271109/1 "2021-04-23T15:43:51Z")

</div>

Hello,  
I am using rollups, and now encountering following error. Any help is appreciated.

Thanks.  
'  
_Rollup job failed with an exception:_  
_java.lang.NullPointerException: Cannot invoke "org.elasticsearch.search.aggregations.Aggregations.get(String)" because the return value of "org.elasticsearch.action.search.SearchResponse.getAggregations(_  
_)" is null_'

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2021, 1:10am UTC](https://discuss.elastic.co/t/rollup-error/271109/2 "2021-04-27T01:10:53Z")

</div>

I am not super familiar with rollups, but there's not a lot to go on here.

What version of the stack are you using?  
What does your rollup job look like?  
What does the full log show\>

---

<div class="post-metadata">

**Author:** ![hsalim](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@hsalim](https://discuss.elastic.co/u/hsalim)\
**Post date:** [April 27, 2021, 1:33pm UTC](https://discuss.elastic.co/t/rollup-error/271109/3 "2021-04-27T13:33:24Z")

</div>

Here is more information:  
**Stack version** is 7.8  
**Rollup Job:**  
`{ "config": { "id": "raw2diaroll1", "index_pattern": "raw2diameter1200bcon-*", "rollup_index": "raw2diaroll1", "cron": "0 * * * * ?", "groups": { "date_histogram": { "calendar_interval": "1m", "field": "@timestamp", "time_zone": "UTC" }, "terms": { "fields": ["field 1.keyword", "field 2.keyword", "etc...",] } }, "metrics": [{ "field": "@timestamp", "metrics": [ "value_count"] } ], "timeout": "20s", "page_size": 1000 }, "status": { "job_state": "started", "current_position": { "@timestamp.date_histogram": 1603925940000, "field1.keyword.terms": null, "field2.keyword.terms": "field values", ...... }, "upgraded_doc_id": true }, "stats": { "pages_processed": 8270, "documents_processed": 3116858, "rollups_indexed": 3066011, "trigger_count": 5196, "index_time_in_ms": 937594, "index_total": 3074, "index_failures": 0, "search_time_in_ms": 2778608, "search_total": 8270, "search_failures": 9, "processing_time_in_ms": 176401, "processing_total": 8261 } }`  
**Log file:**  
[2021-04-26T19:05:00,002][WARN][o.e.x.r.j.RollupJobTask] [node-1] Rollup job [raw2diaroll1] failed with an exception:  
java.lang.NullPointerException: Cannot invoke "org.elasticsearch.search.aggregations.Aggregations.get(String)" because the return value of "org.elasticsearch.action.search.SearchResponse.getAggregations(  
)" is null  
at org.elasticsearch.xpack.rollup.job.RollupIndexer.doProcess(RollupIndexer.java:143) ~[?:?]  
at org.elasticsearch.xpack.core.indexing.AsyncTwoPhaseIndexer.onSearchResponse(AsyncTwoPhaseIndexer.java:452) [x-pack-core-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:43) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.support.TransportAction$1.onResponse(TransportAction.java:89) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.support.TransportAction$1.onResponse(TransportAction.java:83) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.support.ContextPreservingActionListener.onResponse(ContextPreservingActionListener.java:43) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.search.AbstractSearchAsyncAction.start(AbstractSearchAsyncAction.java:165) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.search.TransportSearchAction.executeSearch(TransportSearchAction.java:518) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.search.TransportSearchAction.executeLocalSearch(TransportSearchAction.java:403) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.search.TransportSearchAction.lambda$doExecute$3(TransportSearchAction.java:213) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:114) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:87) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:244) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:88) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:179) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:53) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:177) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$apply$0(SecurityActionFilter.java:87) [x-pack-security-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.lambda$authorizeRequest$4(SecurityActionFilter.java:173) [x-pack-security-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.xpack.security.authz.AuthorizationService.lambda$runRequestInterceptors$15(AuthorizationService.java:352) [x-pack-security-7.8.0.jar:7.8.0]  
at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.common.util.concurrent.ListenableFuture$1.doRun(ListenableFuture.java:112) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.common.util.concurrent.EsExecutors$DirectExecutorService.execute(EsExecutors.java:226) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.common.util.concurrent.ListenableFuture.notifyListener(ListenableFuture.java:106) [elasticsearch-7.8.0.jar:7.8.0]  
at org.elasticsearch.common.util.concurrent.ListenableFuture.lambda$done$0(ListenableFuture.java:98) [elasticsearch-7.8.0.jar:7.8.0]  
at java.util.ArrayList.forEach(ArrayList.java:1510) [?:?]  
.........

---

<div class="post-metadata">

**Author:** ![hsalim](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@hsalim](https://discuss.elastic.co/u/hsalim)\
**Post date:** [April 27, 2021, 2:26pm UTC](https://discuss.elastic.co/t/rollup-error/271109/4 "2021-04-27T14:26:22Z")

</div>

Maybe this will help, I have already rolled up my raw data once and it worked without any issues. As a way of testing I am running the same raw files again, and nothing is happening. 'Current position' for rollup is not getting updated, when I execute GET \_rollup/job/raw2diaroll1.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 25, 2021, 2:27pm UTC](https://discuss.elastic.co/t/rollup-error/271109/5 "2021-05-25T14:27:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
