# AttributeError: 'NoneType' object has no attribute 'props'

**URL:** <https://forum.inductiveautomation.com/t/attributeerror-nonetype-object-has-no-attribute-props/62510>\
**Category:** Ignition\
**Created:** [July 30, 2022, 4:46pm UTC](https://forum.inductiveautomation.com/t/attributeerror-nonetype-object-has-no-attribute-props/62510 "2022-07-30T16:46:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Walker](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Anthony\_Walker](https://forum.inductiveautomation.com/u/Anthony_Walker)\
**Post date:** [July 30, 2022, 4:46pm UTC](https://forum.inductiveautomation.com/t/attributeerror-nonetype-object-has-no-attribute-props/62510/1 "2022-07-30T16:46:18Z")

</div>

Here is my project

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/c/8c2d4076aa761af7061423dfd15a82c2af7eaeda.png)

I am creating a script inside of the `CommitButton`:

```python
def getComponentEntries(self):
	component_label = self.getSibling("CompLabel")
	entries = self.getSibling('Entries')
	entries_dict = {}
	for ent in entries.getChildren():
		if "Entry" in ent.meta.name:
			entries_dict[str(ent.getChild('Label').props.text).lower()] = ent.getChild('NumericalEntryField').props.value
	return component_label.props.text, entries_dict

```

When I run this script inside of the `runAction` for clicking the commit button however, I get the error

```auto
Error running action 'dom.onClick' on Hermes@D/root/Layout/AddCompPopup/CommitButton: Traceback (most recent call last): File "<function:runAction>", line 2, in runAction File "<custom-method getComponentEntries>", line 10, in getComponentEntries AttributeError: 'NoneType' object has no attribute 'props' 

```

All of these children should have `props` but for some reason it is inaccessible.

Any assistance is appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 30, 2022, 10:07pm UTC](https://forum.inductiveautomation.com/t/attributeerror-nonetype-object-has-no-attribute-props/62510/3 "2022-07-30T22:07:53Z")

</div>

One of your “entries” didn’t have a child named “Label”. Or didn’t have a child named “NumericalEntryField”. Or `CompLabel` itself didn’t exist as a sibling.

{ Which line is line #10? Consider breaking up the component access into separate lines so the error is more obvious. )

---

<div class="post-metadata">

**Author:** ![Anthony\_Walker](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Anthony\_Walker](https://forum.inductiveautomation.com/u/Anthony_Walker)\
**Post date:** [August 1, 2022, 6:33pm UTC](https://forum.inductiveautomation.com/t/attributeerror-nonetype-object-has-no-attribute-props/62510/4 "2022-08-01T18:33:26Z")

</div>

The issue was that the items are called `NumericEntryField` not `NumericalEntryField`. It was just a subtle typo.
