# While trying to Close Indices ElasticSearch gives error "Object reference not set to an instance of an object."

**URL:** <https://discuss.elastic.co/t/while-trying-to-close-indices-elasticsearch-gives-error-object-reference-not-set-to-an-instance-of-an-object/307844>\
**Category:** Elasticsearch\
**Created:** [June 22, 2022, 8:12am UTC](https://discuss.elastic.co/t/while-trying-to-close-indices-elasticsearch-gives-error-object-reference-not-set-to-an-instance-of-an-object/307844 "2022-06-22T08:12:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EVINDX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evindx/32/107098_2.png) [@EVINDX](https://discuss.elastic.co/u/EVINDX)\
**Post date:** [June 22, 2022, 8:12am UTC](https://discuss.elastic.co/t/while-trying-to-close-indices-elasticsearch-gives-error-object-reference-not-set-to-an-instance-of-an-object/307844/1 "2022-06-22T08:12:32Z")

</div>

**I am trying to close the indices using the POST cmd**  
**localhost:9200/\_all/\_close**  
**But I am receiving this exception from Elasticsearch.**

Exception: 'Elasticsearch 'Indices.Close' API failed due to error 'Object reference not set to an instance of an object.'. Info: Diag: Type:System.ServiceModel.FaultException`1[[ST: Server stack trace: at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Symantec.EnterpriseVault.Indexing.Admin.IESSnapshotManagement.RestoreIndexSnapshot(String srcServerEntryId, String destServerEntryId, String snapshotName, Boolean bIgnoreUnavailable, Boolean bIncludeGlobalState, List`1 indices)  
at Symantec.EnterpriseVault.Indexing.Admin.ESSnapshotManagementProxy.RestoreIndexSnapshot(String srcServerEntryId, String destServerEntryId, String snapshotName, Boolean bIgnoreUnavailable, Boolean bIncludeGlobalState, List`1 indices)  
at Symantec.EnterpriseVault.Admin.EVIndexSnapshot.Update()  
at Symantec.EnterpriseVault.PowerShell.AdminAPI.SetEVIndexSnapshot.ProcessRecordInternal(EVServerInfo evindexserver) Inner:None

**What are the scenarios which might let to such error. Is there a way to resolve it.**

---

<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:** [June 23, 2022, 6:12am UTC](https://discuss.elastic.co/t/while-trying-to-close-indices-elasticsearch-gives-error-object-reference-not-set-to-an-instance-of-an-object/307844/2 "2022-06-23T06:12:16Z")

</div>

That doesn't look like a response from Elasticsearch.

What do your Elasticsearch logs show?

---

<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:** [July 21, 2022, 6:12am UTC](https://discuss.elastic.co/t/while-trying-to-close-indices-elasticsearch-gives-error-object-reference-not-set-to-an-instance-of-an-object/307844/3 "2022-07-21T06:12:34Z")

</div>

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