# Getting error while trying to add field in model

**URL:** <https://forum.builder.io/t/getting-error-while-trying-to-add-field-in-model/2023>\
**Category:** Bugs\
**Created:** [April 12, 2022, 6:18am UTC](https://forum.builder.io/t/getting-error-while-trying-to-add-field-in-model/2023 "2022-04-12T06:18:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anupama.sharmaa](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anupama.sharmaa](https://forum.builder.io/u/anupama.sharmaa)\
**Post date:** [April 12, 2022, 6:18am UTC](https://forum.builder.io/t/getting-error-while-trying-to-add-field-in-model/2023/1 "2022-04-12T06:18:20Z")

</div>

**Builder content link**

> **[Builder.io: Drag and drop page builder and CMS](https://builder.io/content/5dfc3cc2f1f04430855186a65ee53d27)**
>
> Build and optimize digital experiences for any tech stack, visually.

**Builder public api key**  
fff8e6fa6fbc4f6abf4fb93c03e661f1

**Detailed steps to reproduce the bug**  
In my blog page module, When I try to add a field of type tag then It after saving it. When I click on content \> blog page and any template then Its give me error.

**Screenshots or video link**

 ![Screenshot (50)](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/2/260351d905426a26a95eca15cbe654216894cb2c.png)

**Code stack you are integrating Builder with**  
_e.g. NextJS, react, swell_

---

<div class="post-metadata">

**Author:** ![sarah](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/sarah/32/1198_2.png) [@sarah](https://forum.builder.io/u/sarah)\
**Post date:** [April 13, 2022, 10:41pm UTC](https://forum.builder.io/t/getting-error-while-trying-to-add-field-in-model/2023/2 "2022-04-13T22:41:18Z")

</div>

Hi @anupama.sharmaa, it looks like this was caused by changing a field type of Reference to Tag in your model after some models already had a Reference type input. Changing this back to Reference seems to have fixed the issue. To add a Tag type field, you can add a brand new field.

---

<div class="post-metadata">

**Author:** ![anupama.sharmaa](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anupama.sharmaa](https://forum.builder.io/u/anupama.sharmaa)\
**Post date:** [April 15, 2022, 6:29am UTC](https://forum.builder.io/t/getting-error-while-trying-to-add-field-in-model/2023/3 "2022-04-15T06:29:14Z")

</div>

Making a new field with a different name works good, but Why I can still able to see my old fields which I deleted from model.

Is there any type of cache or bug?

---

<div class="post-metadata">

**Author:** ![sarah](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/sarah/32/1198_2.png) [@sarah](https://forum.builder.io/u/sarah)\
**Post date:** [April 15, 2022, 4:11pm UTC](https://forum.builder.io/t/getting-error-while-trying-to-add-field-in-model/2023/4 "2022-04-15T16:11:29Z")

</div>

Hi @anupama.sharmaa , if you try deleting those again do they still show up? Are you able to make a screen recording showing this?

---

<div class="post-metadata">

**Author:** ![anupama.sharmaa](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anupama.sharmaa](https://forum.builder.io/u/anupama.sharmaa)\
**Post date:** [April 18, 2022, 4:53am UTC](https://forum.builder.io/t/getting-error-while-trying-to-add-field-in-model/2023/5 "2022-04-18T04:53:34Z")

</div>

@sarah, Sure I’m sharing screenshots with you,  
Here is the fields of my model Which I made in builder.

 ![Screenshot (52)](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/a/a637b25301925480ce60f11aa4d92879c7c619b0.png)

Here is the data I’m getting at my frontend by requesting data of the above model

 ![all-data](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/9/91a0da52975686b412eeb3d2881c56bc06fb56ad.png)

The field like tag and tags, I delete them from my builder model approximately a month ago but Its still showing up here in my front end.  
 ![extra-data-builder](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/e/ea09699e2d6115ced1da03747e85180328e0fe45.png)

Because of this reason I can’t be able to make a new field of same name which I deleted. builder throw the error if I try.

Please resolve the issue.

---

<div class="post-metadata">

**Author:** ![sarah](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/sarah/32/1198_2.png) [@sarah](https://forum.builder.io/u/sarah)\
**Post date:** [April 18, 2022, 6:49pm UTC](https://forum.builder.io/t/getting-error-while-trying-to-add-field-in-model/2023/6 "2022-04-18T18:49:18Z")

</div>

Hi @anupama.sharmaa , thank you for clarifying. This is expected behavior that prevents old content from breaking.

You can edit or remove this data in the editor by using the keyboard shortcut CMD+E (on a mac), or by right clicking in the editor side panel and selecting “JSON view”. Once you remove the data, you will have to publish the page to see these updates.

Another option would be to use the Write API to delete this data: [Builder.io Write API - Builder.io](https://www.builder.io/c/docs/write-api)

---

<div class="post-metadata">

**Author:** ![anupama.sharmaa](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anupama.sharmaa](https://forum.builder.io/u/anupama.sharmaa)\
**Post date:** [April 19, 2022, 5:03am UTC](https://forum.builder.io/t/getting-error-while-trying-to-add-field-in-model/2023/7 "2022-04-19T05:03:54Z")

</div>

Thank you helping me @sarah
