# Problem creating Relation-to-Self field in Custom Integration

**URL:** <https://community.fibery.io/t/problem-creating-relation-to-self-field-in-custom-integration/4494>\
**Category:** Get Help\
**Tags:** integration\
**Created:** [May 23, 2023, 12:48am UTC](https://community.fibery.io/t/problem-creating-relation-to-self-field-in-custom-integration/4494 "2023-05-23T00:48:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [May 23, 2023, 12:48am UTC](https://community.fibery.io/t/problem-creating-relation-to-self-field-in-custom-integration/4494/1 "2023-05-23T00:48:15Z")

</div>

I’m trying to create a hierarchical many-to-one relation to self type in my Accounts DB.

**Is there a bug here, or am I doing something wrong with this field definition?**  
[Note: this seems to actually be working as intended, just as it is, even with the error message]

The self-relation field in the Accounts DB schema:

```auto
    "Parent_Account": {
      "type": "text",
      "id": "Parent_Account",
      "name": "Parent_Account_Rel"
      "relation": {
         "cardinality": "many-to-one",
         "name": "Parent Account",
         "targetName": "Member Accounts",
         "targetType": "Accounts",
         "targetFieldId": "id"
       }
    },

```

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/2/2eb9b176e2e8f29cce931d25a7aebe6b5ddca098.png)
