# ElasticClient.Get does not work or compile

**URL:** https://discuss.elastic.co/t/elasticclient-get-does-not-work-or-compile/60875
**Category:** Elasticsearch
**Created:** [September 19, 2016, 11:50am UTC](https://discuss.elastic.co/t/elasticclient-get-does-not-work-or-compile/60875 "2016-09-19T11:50:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dkarnecki](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@dkarnecki](https://discuss.elastic.co/u/dkarnecki)
#### Post date: [September 19, 2016, 11:50am UTC](https://discuss.elastic.co/t/elasticclient-get-does-not-work-or-compile/60875/1 "2016-09-19T11:50:55Z")

</div>

I’m having problems with a Get. Here’s the call:

// Get  
var resGet = elastic.Get(g =\> g  
.Id(firstId.ToString())  
.Index(indexName));

Error is:

Cannot convert lambda expression to type ‘Nest.DocumentPath\<ElasticSearchConsApp.BlogPost\>’ because it is not a delegate.

Id: is a GUID so I converted to String which it “looks like” DocumentPath would resolve to.

Thank-you.

Dave Karnecki

---

<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 5, 2017, 10:19pm UTC](https://discuss.elastic.co/t/elasticclient-get-does-not-work-or-compile/60875/2 "2017-07-05T22:19:16Z")

</div>


