# System.tag.addTag fails silently

**URL:** <https://forum.inductiveautomation.com/t/system-tag-addtag-fails-silently/105627>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [April 28, 2025, 1:04pm UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-fails-silently/105627 "2025-04-28T13:04:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zied\_Brahmi](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@Zied\_Brahmi](https://forum.inductiveautomation.com/u/Zied_Brahmi)\
**Post date:** [April 28, 2025, 1:04pm UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-fails-silently/105627/1 "2025-04-28T13:04:58Z")

</div>

Hi Forum,

System.tag.addTag fails silently:

Code example: (pretty bad returns, anyway.., this always gives OK") even if it's not supposed to give OK:

```python
	value = request["postData"]
	try:
	    system.tag.addTag(**value)
	    return {"json": "OK"}
	except Exception as e:
	   	return {"json": "ERROR"}

```

example tested:

```python
{
    "parentPath": "",
    "name": "TagMemory",
    "tagType": "MEMORY",
    "dataType": "Int2",
    "value": 26
}

```

-\> Created successfully

```python
{
    "parentPath": "",
    "name": "TagMemory",
    "tagType": "MEMORY",
    "dataType": "Int2",
    "value": 28
}

```

-\> No change on the tag, and also returns Ok

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 28, 2025, 1:17pm UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-fails-silently/105627/2 "2025-04-28T13:17:48Z")

</div>

I think you'd probably see something logged in the gateway logs. Not ideal, but it is what it is.

Try `system.tag.configure` instead? `system.tag.addTag` and friends are deprecated.

---

<div class="post-metadata">

**Author:** ![Zied\_Brahmi](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@Zied\_Brahmi](https://forum.inductiveautomation.com/u/Zied_Brahmi)\
**Post date:** [April 28, 2025, 1:29pm UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-fails-silently/105627/3 "2025-04-28T13:29:10Z")

</div>

You are right, I'm seeing errors in the gateway logs. I will test the .configure.

---

<div class="post-metadata">

**Author:** ![Zied\_Brahmi](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@Zied\_Brahmi](https://forum.inductiveautomation.com/u/Zied_Brahmi)\
**Post date:** [April 29, 2025, 8:43am UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-fails-silently/105627/4 "2025-04-29T08:43:00Z")

</div>

Hey @Kevin.Herron , apparently system.tag.configure fails silently too, suppose that I want to do  
system.tag.configure(...,'a') for abort, how can I check if aborted or no? I really need that feedback

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 29, 2025, 10:52am UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-fails-silently/105627/5 "2025-04-29T10:52:01Z")

</div>

Are you checking the List of QualityCode returned by `system.tag.configure`?

---

<div class="post-metadata">

**Author:** ![Zied\_Brahmi](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@Zied\_Brahmi](https://forum.inductiveautomation.com/u/Zied_Brahmi)\
**Post date:** [April 29, 2025, 11:56am UTC](https://forum.inductiveautomation.com/t/system-tag-addtag-fails-silently/105627/6 "2025-04-29T11:56:39Z")

</div>

I checked it now and it's working perfectly, Thank you 🙂
