# Creating label in gmail

**URL:** <https://community.n8n.io/t/creating-label-in-gmail/93942>\
**Category:** Questions\
**Created:** [March 28, 2025, 8:40am UTC](https://community.n8n.io/t/creating-label-in-gmail/93942 "2025-03-28T08:40:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niharika\_Tiwari](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/niharika_tiwari/32/60462_2.png) [@Niharika\_Tiwari](https://community.n8n.io/u/Niharika_Tiwari)\
**Post date:** [March 28, 2025, 8:40am UTC](https://community.n8n.io/t/creating-label-in-gmail/93942/1 "2025-03-28T08:40:08Z")

</div>

I am creating a label in n8n using gmail create a label . While executing its giving error and workflow stops running and the error is :

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/a/0/a0ce6b7b64e62771f913511e31a340877b2a7bba.png)  
this is the error but still in gmail its creating label eg :“xyz” . There is no label with same name. I dont understand why its giving error and stooping the flow.  
and this is the if condition:  
{{ $json.labels[2] && $json.labels[2].name === “unread” && $json.labels[3] && $json.labels[3].name === “xyz”; }}  
before executing the create a label node.

---

<div class="post-metadata">

**Author:** ![Olek](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/olek/32/59619_2.png) [@Olek](https://community.n8n.io/u/Olek)\
**Post date:** [March 28, 2025, 8:58am UTC](https://community.n8n.io/t/creating-label-in-gmail/93942/2 "2025-03-28T08:58:37Z")

</div>

Quick questions:

1. Is label creation connected to the false branch of the If node?
2. Are you sure that the label doesn’t exist generally under your gmail account?

---

<div class="post-metadata">

**Author:** ![Niharika\_Tiwari](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/niharika_tiwari/32/60462_2.png) [@Niharika\_Tiwari](https://community.n8n.io/u/Niharika_Tiwari)\
**Post date:** [April 2, 2025, 4:50am UTC](https://community.n8n.io/t/creating-label-in-gmail/93942/3 "2025-04-02T04:50:30Z")

</div>

Thankyou i can create label now.

---

<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:** [July 1, 2025, 4:50am UTC](https://community.n8n.io/t/creating-label-in-gmail/93942/4 "2025-07-01T04:50:49Z")

</div>

Closed on July 1, 2025, 4:50am UTC

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