# N8N does not recognize the value of a field

**URL:** <https://community.n8n.io/t/n8n-does-not-recognize-the-value-of-a-field/46066>\
**Category:** Questions\
**Created:** [May 14, 2024, 8:50pm UTC](https://community.n8n.io/t/n8n-does-not-recognize-the-value-of-a-field/46066 "2024-05-14T20:50:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedro\_Malaquias](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pedro_malaquias/32/31903_2.png) [@Pedro\_Malaquias](https://community.n8n.io/u/Pedro_Malaquias)\
**Post date:** [May 14, 2024, 8:50pm UTC](https://community.n8n.io/t/n8n-does-not-recognize-the-value-of-a-field/46066/1 "2024-05-14T20:50:48Z")

</div>

Guys, I have a return that gives me a field, when I try to use it, it always returns “undefined” does anyone know why?  
I understand that this field may or may not return the results, is that why? Since it’s not a field that always appears, I can’t use it?  
The field with the error is the one from the last step:  
{{ $json.customFields[1].enum\_value.name }}

return data:

```auto
[
  {
    "gid": "1207315181354392",
    "assigneeGid": "1206361965322646",
    "completed_at": "2024-05-14T19:45:15.207Z",
    "customFields": [
      {
        "gid": "1204219176386539",
        "name": "Tempo de Execução (horas)",
        "number_value": 4
      }
    ]
  },
  {
    "gid": "1207267839503506",
    "assigneeGid": "1206844449630586",
    "completed_at": "2024-05-14T17:54:39.180Z",
    "customFields": [
      {
        "gid": "1204219176386539",
        "name": "Tempo de Execução (horas)",
        "number_value": 5
      }
    ]
  },
  {
    "gid": "1207304297011651",
    "assigneeGid": "1206841885830929",
    "completed_at": "2024-05-14T14:56:11.954Z",
    "customFields": [
      {
        "gid": "1204219176386539",
        "name": "Tempo de Execução (horas)",
        "number_value": null
      },
      {
        "gid": "1207251090649455",
        "enum_value": {
          "gid": "1207251090649459",
          "color": "yellow-orange",
          "enabled": true,
          "name": "Médio",
          "resource_type": "enum_option"
        },
        "name": "Grau"
      }
    ]
  },
  {
    "gid": "1207304294815959",
    "assigneeGid": "1206841885830929",
    "completed_at": "2024-05-14T14:51:46.100Z",
    "customFields": [
      {
        "gid": "1204219176386539",
        "name": "Tempo de Execução (horas)",
        "number_value": null
      },
      {
        "gid": "1207251090649455",
        "enum_value": {
          "gid": "1207251090649458",
          "color": "green",
          "enabled": true,
          "name": "Fácil",
          "resource_type": "enum_option"
        },
        "name": "Grau"
      }
    ]
  },
  {
    "gid": "1207304294815961",
    "assigneeGid": "1206841885830929",
    "completed_at": "2024-05-14T14:52:14.160Z",
    "customFields": [
      {
        "gid": "1204219176386539",
        "name": "Tempo de Execução (horas)",
        "number_value": null
      },
      {
        "gid": "1207251090649455",
        "enum_value": {
          "gid": "1207251090649458",
          "color": "green",
          "enabled": true,
          "name": "Fácil",
          "resource_type": "enum_option"
        },
        "name": "Grau"
      }
    ]
  },
  {
    "gid": "1207304294815957",
    "assigneeGid": "1206362073473212",
    "completed_at": "2024-05-14T15:17:12.708Z",
    "customFields": [
      {
        "gid": "1204219176386539",
        "name": "Tempo de Execução (horas)",
        "number_value": null
      },
      {
        "gid": "1207251090649455",
        "enum_value": {
          "gid": "1207251090649458",
          "color": "green",
          "enabled": true,
          "name": "Fácil",
          "resource_type": "enum_option"
        },
        "name": "Grau"
      }
    ]
  },
  {
    "gid": "1207304297011715",
    "assigneeGid": "1203886717633150",
    "completed_at": "2024-05-14T14:23:14.811Z",
    "customFields": [
      {
        "gid": "1204219176386539",
        "name": "Tempo de Execução (horas)",
        "number_value": null
      },
      {
        "gid": "1207251090649455",
        "enum_value": {
          "gid": "1207251090649461",
          "color": "blue",
          "enabled": true,
          "name": "Colaboração",
          "resource_type": "enum_option"
        },
        "name": "Grau"
      }
    ]
  },
  {
    "gid": "1207286377217897",
    "assigneeGid": "1169940208997012",
    "completed_at": "2024-05-14T14:47:42.852Z",
    "customFields": [
      {
        "gid": "1204219176386539",
        "name": "Tempo de Execução (horas)",
        "number_value": 0.1
      }
    ]
  },
  {
    "gid": "1207193514159264",
    "assigneeGid": "1169940208997012",
    "completed_at": "2024-05-14T14:40:03.453Z",
    "customFields": [
      {
        "gid": "1204219176386539",
        "name": "Tempo de Execução (horas)",
        "number_value": 3
      }
    ]
  },
  {
    "gid": "1207308586171235",
    "assigneeGid": "1206361965322646",
    "completed_at": "2024-05-13T20:22:42.193Z",
    "customFields": [
      {
        "gid": "1204219176386539",
        "name": "Tempo de Execução (horas)",
        "number_value": 2
      }
    ]
  }
]

```

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [May 14, 2024, 8:50pm UTC](https://community.n8n.io/t/n8n-does-not-recognize-the-value-of-a-field/46066/2 "2024-05-14T20:50:50Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![barn4k](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/barn4k/32/8170_2.png) [@barn4k](https://community.n8n.io/u/barn4k)\
**Post date:** [May 14, 2024, 9:02pm UTC](https://community.n8n.io/t/n8n-does-not-recognize-the-value-of-a-field/46066/3 "2024-05-14T21:02:32Z")

</div>

hello @Pedro_Malaquias

it’s `undefined` because n8n will calculate it’s value from the first item. You can hover on the desired item to see if the expression becomes green.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/0/f00bc0dc96ab73b6b4f6c184403493946fa2dd5d.png)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 21, 2024, 9:03pm UTC](https://community.n8n.io/t/n8n-does-not-recognize-the-value-of-a-field/46066/4 "2024-05-21T21:03:16Z")

</div>

Closed on May 21, 2024, 9:03pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
