# "Cannot add or update child row" error when creating role

**URL:** <https://community.dreamfactory.com/t/cannot-add-or-update-child-row-error-when-creating-role/5258>\
**Category:** Schema & Data\
**Created:** [December 15, 2020, 1:14pm UTC](https://community.dreamfactory.com/t/cannot-add-or-update-child-row-error-when-creating-role/5258 "2020-12-15T13:14:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![akaHeimdall](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/akaheimdall/32/1329_2.png) [@akaHeimdall](https://community.dreamfactory.com/u/akaHeimdall)\
**Post date:** [December 23, 2020, 4:19am UTC](https://community.dreamfactory.com/t/cannot-add-or-update-child-row-error-when-creating-role/5258/2 "2020-12-23T04:19:39Z")

</div>

I couldn’t figure it out. I just created another user and gave it permissions to the appropriate table and it worked. Not sure why it wasn’t working for the other user account.

---

_[View the full topic](https://community.dreamfactory.com/t/cannot-add-or-update-child-row-error-when-creating-role/5258)._
