# Uncaught Error Error: Error: Error while executing command 'fibery.entity/create': Cannot parse value for Name field in 'namespace/database' database

**URL:** <https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947>\
**Category:** API & Programming\
**Created:** [August 11, 2023, 9:55pm UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947 "2023-08-11T21:55:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ooker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ooker/32/7033_2.png) [@Ooker](https://community.fibery.io/u/Ooker)\
**Post date:** [August 11, 2023, 9:55pm UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/1 "2023-08-11T21:55:00Z")

</div>

```auto
import Fibery from 'fibery-unofficial';
const fibery = new Fibery({
  host: "XXX.fibery.io",
  token: 'YYY'
});

await fibery.entity.createBatch([
    {
    'type': 'test/Database 1',
    'entity': {
      'Name': 'Curtly Ambrose',
    }
  }
]);

```

I get this error:

`Uncaught Error Error: Error: Error while executing command 'fibery.entity/create': Cannot parse value for Name field in 'test/Database 1' database.`  
`Cause: Name field was not found in 'test/Database 1' database.`

I think the names are correct:

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

Do you know what happens?

---

<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:** [August 11, 2023, 10:16pm UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/2 "2023-08-11T22:16:55Z")

</div>

When using fibery `createBatch` and `executeSingleCommand` methods, you need to use the “native” field names found in `fibery.getSchema()`.

e.g.

- `Id` field name is “'fibery/id”
- `Name` field name is `${spaceName}/Name`
- All custom field names are also of the form `${spaceName}/fieldName`

Check the docs & examples here: [Fibery API](https://api.fibery.io/#get-entities)

---

<div class="post-metadata">

**Author:** ![Ooker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ooker/32/7033_2.png) [@Ooker](https://community.fibery.io/u/Ooker)\
**Post date:** [August 11, 2023, 10:56pm UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/3 "2023-08-11T22:56:12Z")

</div>

The name `test/Database 1` seems to be correct:

```auto
const schema = await fibery.getSchema({
  'with-description': true
});
console.log(schema.filter(x=>x['fibery/name']==='test/Database 1'))
// Worked

```

---

<div class="post-metadata">

**Author:** ![Ooker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ooker/32/7033_2.png) [@Ooker](https://community.fibery.io/u/Ooker)\
**Post date:** [August 12, 2023, 7:10am UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/4 "2023-08-12T07:10:09Z")

</div>

Oh I get it. You mean the key value of the entity object. I worked out the correct code:

```auto
await fibery.entity.createBatch([
  {
    'type': 'test/Database 1',
    'entity': {
      'test/Name': 'Curtly Ambrose',
    }
  }
]);

```

---

<div class="post-metadata">

**Author:** ![Ooker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ooker/32/7033_2.png) [@Ooker](https://community.fibery.io/u/Ooker)\
**Post date:** [September 14, 2023, 5:03pm UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/5 "2023-09-14T17:03:08Z")

</div>

Today I get the same error. However it only happens in one specific database. In database `456z` from space `Source` of host `torihi.fibery.io`, I get:

```auto
Uncaught (in promise) Error: Error: Error while executing command 'fibery.entity/create': Cannot parse value for Source/Name field in Source/456z database.
Cause: Source/Name field was not found in Source/456z database.
    at file:///C:/Users/ganuo/AppData/Local/deno/npm/registry.npmjs.org/fibery-unofficial/0.2.1/source/command.js:52:19
    at Object.runMicrotasks (ext:core/01_core.js:838:30)
    at processTicksAndRejections (ext:deno_node/_next_tick.ts:53:10)
    at runNextTicks (ext:deno_node/_next_tick.ts:71:3)
    at eventLoopTick (ext:core/01_core.js:189:21)
    at async đẩyLênFibery (file:///D:/QC%20supplements/Code/Apps/Tr%E1%BA%A5n%20K%E1%BB%B3/B%20X%E1%BB%AD%20l%C3%BD%20d%E1%BB%AF%20li%E1%BB%87u%20v%C3%A0%20%C4%91%E1%BA%A9y%20l%C3%AAn%20Fibery/4.%20T%E1%BA%A1o%20k%E1%BA%BFt%20qu%E1%BA%A3/4.2%20%C4%90%E1%BA%A9y%20l%C3%AAn%20fibery.ts:11:2)

```

However in database `123`, the exact same code works fine. Curling the schema both databases are registered. Do you know why?

---

<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:** [September 14, 2023, 5:10pm UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/6 "2023-09-14T17:10:52Z")

</div>

Your API call is specifying `test/Name` as the entity name field, but the error mentions that it expects to find `Source/Name`.

---

<div class="post-metadata">

**Author:** ![Ooker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ooker/32/7033_2.png) [@Ooker](https://community.fibery.io/u/Ooker)\
**Post date:** [September 15, 2023, 3:17am UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/7 "2023-09-15T03:17:15Z")

</div>

No, there is no space `test` here. I post it here because it has the same error, not because it’s a continuation of the previous error.

---

<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:** [September 15, 2023, 3:49am UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/8 "2023-09-15T03:49:40Z")

</div>

> [@Ooker](#):
>
> `Cause: Source/Name field was not found in Source/456z database.`

Did you rename the “Name” field in the `Source` DB?

---

<div class="post-metadata">

**Author:** ![Ooker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ooker/32/7033_2.png) [@Ooker](https://community.fibery.io/u/Ooker)\
**Post date:** [September 15, 2023, 3:17pm UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/9 "2023-09-15T15:17:46Z")

</div>

No I don’t. In fact I thought it’s not posible to rename  
 ![](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/8/84f64c07835c63e11b89577264a8bceb1b80e3ff.png)

---

<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:** [September 15, 2023, 5:18pm UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/10 "2023-09-15T17:18:03Z")

</div>

Have you queried the schema to check your field titles?

---

<div class="post-metadata">

**Author:** ![Ooker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ooker/32/7033_2.png) [@Ooker](https://community.fibery.io/u/Ooker)\
**Post date:** [September 16, 2023, 1:04pm UTC](https://community.fibery.io/t/uncaught-error-error-error-error-while-executing-command-fibery-entity-create-cannot-parse-value-for-name-field-in-namespace-database-database/4947/11 "2023-09-16T13:04:54Z")

</div>

You are right. It has been renamed to `Source/name`. I wonder why it is the case?
