# \[FIXED\] Required Single Select Fields do not allow scripts to create entity

**URL:** <https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370>\
**Category:** Bugs & Issues\
**Created:** [August 7, 2025, 12:27pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370 "2025-08-07T12:27:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![isaac.dalglish](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/isaac.dalglish/32/12389_2.png) [@isaac.dalglish](https://community.fibery.io/u/isaac.dalglish)\
**Post date:** [August 7, 2025, 12:27pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/1 "2025-08-07T12:27:21Z")

</div>

I have a script which will create an entity dynamically. This entity has a single select option called “Type”.

With this as an example:

```auto
await fibery.createEntity('System/Task', {
    "Name": 'Example',
    "Type": "System"
});

```

I can create the entity without issue.

However - the issue arises if the Type field is set to required. If it is, then the script does not run, with this error:  
`Failed to execute Action "Script": createEntity: Cannot create entity of "System/Task" DB with missing required fields: Type`

It does not matter if I give the script the name of the type, the ID of the type. This seems like a bug to me and is a huge roadblock for our project.

---

<div class="post-metadata">

**Author:** ![Viktar\_Zhuk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/viktar_zhuk/32/1934_2.png) [@Viktar\_Zhuk](https://community.fibery.io/u/Viktar_Zhuk)\
**Post date:** [August 7, 2025, 2:58pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/2 "2025-08-07T14:58:28Z")

</div>

Hi, unfortunately we have a quirky implementation of Single Selects. It is implemented as relation field and to make your script work you have to supply the `Id` of corresponding Entity (Option) which in turn for Entities is not a numeric value but hidden from UI uuid like `fd6d9df1-739b-11f0-a412-73c290273077`

```javascript
await fibery.createEntity("Test/Card", {
    Name: "name",
    Type: "fd6d9df1-739b-11f0-a412-73c290273077"
})

```

The easiest way to get this id is to navigate to option value Entity using `alt` + click and then using `alt` + click on numerical `Public Id`

---

<div class="post-metadata">

**Author:** ![isaac.dalglish](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/isaac.dalglish/32/12389_2.png) [@isaac.dalglish](https://community.fibery.io/u/isaac.dalglish)\
**Post date:** [August 7, 2025, 3:14pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/3 "2025-08-07T15:14:12Z")

</div>

Thanks for replying,  
We did try that, but unfortunately it gives the same result:

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/3/39e27e3d4557eea685e4b21661e87e0f34fa44db.png)  
We tried your method, and also have tried getting the ID from getSchema() and manually finding it within there, but still no dice 😔

---

<div class="post-metadata">

**Author:** ![Viktar\_Zhuk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/viktar_zhuk/32/1934_2.png) [@Viktar\_Zhuk](https://community.fibery.io/u/Viktar_Zhuk)\
**Post date:** [August 7, 2025, 3:21pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/4 "2025-08-07T15:21:36Z")

</div>

I bet that you have something missed, e.g. in some other script or brunch or anything else is missing because I’ve tried my script before posting it here.

---

<div class="post-metadata">

**Author:** ![Viktar\_Zhuk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/viktar_zhuk/32/1934_2.png) [@Viktar\_Zhuk](https://community.fibery.io/u/Viktar_Zhuk)\
**Post date:** [August 7, 2025, 3:22pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/5 "2025-08-07T15:22:39Z")

</div>

By the way Schema does have info only about types and fields meta data not about Entities, where is Options you’re looking for are Entities.

---

<div class="post-metadata">

**Author:** ![isaac.dalglish](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/isaac.dalglish/32/12389_2.png) [@isaac.dalglish](https://community.fibery.io/u/isaac.dalglish)\
**Post date:** [August 7, 2025, 3:31pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/6 "2025-08-07T15:31:02Z")

</div>

I just created a completely brand new and clean space with two equally clean databases, and did the exact same thing, and again got the same result:

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

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/3/375bce67ccb0b1ab2f72ea49540550a389bc3135.png)  
It can’t be anything to do with any other script, as nothing else is in or affecting this new space and new databases.

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

---

<div class="post-metadata">

**Author:** ![Viktar\_Zhuk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/viktar_zhuk/32/1934_2.png) [@Viktar\_Zhuk](https://community.fibery.io/u/Viktar_Zhuk)\
**Post date:** [August 7, 2025, 3:33pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/7 "2025-08-07T15:33:37Z")

</div>

It is quite strange, as in this case you had to get different error, which should state smth like the value you’ve supplied doesn’t exist but you got that value wan’t passed at all.

Can you share this Space as a Template and share the link here on in intercom?

---

<div class="post-metadata">

**Author:** ![isaac.dalglish](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/isaac.dalglish/32/12389_2.png) [@isaac.dalglish](https://community.fibery.io/u/isaac.dalglish)\
**Post date:** [August 7, 2025, 3:35pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/8 "2025-08-07T15:35:58Z")

</div>

Sure, here:

> **[Create workspace — Fibery](https://shared.fibery.io/sign-up?appShareId=bdb2132f-1a92-4106-9a4e-75c0a8fd57b4-testing)**
>
> Create a Fibery account to replace isolated tools and bring everyone together.

---

<div class="post-metadata">

**Author:** ![Viktar\_Zhuk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/viktar_zhuk/32/1934_2.png) [@Viktar\_Zhuk](https://community.fibery.io/u/Viktar_Zhuk)\
**Post date:** [August 7, 2025, 3:42pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/9 "2025-08-07T15:42:25Z")

</div>

Thanks for sharing it. I’ve spotted a difference in the setup. In my case I’ve a default value set for this single select and when script run I got proper non-default value selected from script but when default value is not set for a field than I got the same error as you. Which is definitely a bug needed to fix asap.  
As I get it setting a default value for this field is not an option for you. Will pass it for proper developer.

---

<div class="post-metadata">

**Author:** ![isaac.dalglish](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/isaac.dalglish/32/12389_2.png) [@isaac.dalglish](https://community.fibery.io/u/isaac.dalglish)\
**Post date:** [August 7, 2025, 3:44pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/10 "2025-08-07T15:44:49Z")

</div>

Appreciate your time, thank you.

---

<div class="post-metadata">

**Author:** ![Polina\_Zenevich](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/polina_zenevich/32/480_2.png) [@Polina\_Zenevich](https://community.fibery.io/u/Polina_Zenevich)\
**Post date:** [August 21, 2025, 2:09pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/11 "2025-08-21T14:09:31Z")

</div>

Hi!

This bug was fixed in today’s release 🙂

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [August 21, 2025, 3:47pm UTC](https://community.fibery.io/t/fixed-required-single-select-fields-do-not-allow-scripts-to-create-entity/9370/12 "2025-08-21T15:47:02Z")

</div>


