# ResourceNamingException: Cannot add child

**URL:** <https://forum.inductiveautomation.com/t/resourcenamingexception-cannot-add-child/53836>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [December 7, 2021, 2:12pm UTC](https://forum.inductiveautomation.com/t/resourcenamingexception-cannot-add-child/53836 "2021-12-07T14:12:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [December 7, 2021, 2:12pm UTC](https://forum.inductiveautomation.com/t/resourcenamingexception-cannot-add-child/53836/1 "2021-12-07T14:12:11Z")

</div>

I’m messing around with project inheritance in v8.1 and I can’t open one of my projects now, and I don’t understand the error message or how to fix it.

```auto
IllegalArgumentException: com.inductiveautomation.ignition.common.project.resource.ResourceNamingException: Cannot add child 'ignition/named-query/Payroll/Cutting' to parent 'ignition/named-query/payroll'
	caused by ResourceNamingException: Cannot add child 'ignition/named-query/Payroll/Cutting' to parent 'ignition/named-query/payroll'

```

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [December 7, 2021, 2:20pm UTC](https://forum.inductiveautomation.com/t/resourcenamingexception-cannot-add-child/53836/2 "2021-12-07T14:20:35Z")

</div>

Turns out I had a named query folder named payroll in both the project and the inherited project. This wasn’t intentional, but I thought that it would override those resources instead of throwing an exception.

Oh well, I removed the inheritance, removed the duplicate folder, added the inheritance back, and it opened fine.
