# Object field starting or ending with a \[.\] makes object resolution ambiguous: \[\]

**URL:** <https://discuss.elastic.co/t/object-field-starting-or-ending-with-a-makes-object-resolution-ambiguous/123351>\
**Category:** Elasticsearch\
**Created:** [March 9, 2018, 9:40pm UTC](https://discuss.elastic.co/t/object-field-starting-or-ending-with-a-makes-object-resolution-ambiguous/123351 "2018-03-09T21:40:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradley](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@bradley](https://discuss.elastic.co/u/bradley)\
**Post date:** [March 9, 2018, 9:40pm UTC](https://discuss.elastic.co/t/object-field-starting-or-ending-with-a-makes-object-resolution-ambiguous/123351/1 "2018-03-09T21:40:58Z")

</div>

I'm getting the error "object field starting or ending with a [.] makes object resolution ambiguous: []". But there isn't a single dot [.] in my object. Using `elasticClient.update()` I'm passing:

```
{
	"index": "applicants",
	"type": "applicant",
	"id": "A01gfGEBKfWmu0nhvuR7",
	"body": {
		"doc": {
			"phsEmploymentHistory": {
				"numSickDaysNotIll": "4",
				"employers": [{
					"employmentType": {},
					"": {},
					"name": null,
					"supervisor": null,
					"contactNumber": null,
					"extension": null,
					"email": null,
					"coworker1": null,
					"coworker2": null,
					"duties": null,
					"jobTitle": null,
					"reasonLeaving": null,
					"fullTime": null,
					"partTime": null,
					"temp": null,
					"selfEmployed": null,
					"volunteer": null,
					"duration": {
						"startDate": null,
						"endDate": null
					},
					"address": {
						"street": null,
						"city": null,
						"state": null,
						"zip": null
					}
				}],
				"agencies": [{
					"": {},
					"agencyName": null,
					"backgroundInvestigator": null,
					"contactNumber": null,
					"extension": null,
					"position": null,
					"email": null,
					"stepsCompleted": null,
					"dateApplied": null,
					"status": null,
					"address": {
						"street": null,
						"city": null,
						"state": null,
						"zip": null
					}
				}],
				"disciplined": {
					"response": false,
					"explanation": ""
				},
				"fired": {
					"response": false,
					"explanation": ""
				},
				"inAltercation": {
					"response": false,
					"explanation": ""
				},
				"hasQuit": {
					"response": false,
					"explanation": ""
				},
				"hasResigned": {
					"response": false,
					"explanation": ""
				},
				"accusedOfDiscrimination": {
					"response": false,
					"explanation": ""
				},
				"subjectOfComplaint": {
					"response": false,
					"explanation": ""
				},
				"counseledLateAbsence": {
					"response": false,
					"explanation": ""
				},
				"unsatisfactoryReview": {
					"response": false,
					"explanation": ""
				},
				"releasedConfidential": {
					"response": false,
					"explanation": ""
				},
				"malingered": {
					"response": false,
					"explanation": ""
				},
				"missedWorkDrugs": {
					"response": false,
					"explanation": ""
				},
				"workAffectedDrugs": {
					"response": false,
					"explanation": ""
				},
				"warnedDrugs": {
					"response": false,
					"explanation": ""
				},
				"valid": true
			}
		}
	}
}
```

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [March 9, 2018, 9:54pm UTC](https://discuss.elastic.co/t/object-field-starting-or-ending-with-a-makes-object-resolution-ambiguous/123351/2 "2018-03-09T21:54:30Z")

</div>

The dot check looks for empty values in intermediate fields when parsing the full path. I think these empty field names are causing this to trip (which are also not valid):

```auto
"": {},

```

---

<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:** [April 6, 2018, 9:54pm UTC](https://discuss.elastic.co/t/object-field-starting-or-ending-with-a-makes-object-resolution-ambiguous/123351/3 "2018-04-06T21:54:37Z")

</div>

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