# Problem with delete fields

**URL:** <https://forum.litium.com/t/problem-with-delete-fields/759>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [March 27, 2019, 11:21am UTC](https://forum.litium.com/t/problem-with-delete-fields/759 "2019-03-27T11:21:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [March 27, 2019, 11:21am UTC](https://forum.litium.com/t/problem-with-delete-fields/759/1 "2019-03-27T11:21:24Z")

</div>

I have some fields that i deleted from BO and recreated from code. The field is visible in the list of fields. But when I’m trying to add them to a template in the BO it throws an error like `Litium.FieldFramework.FieldFrameworkException: Field with name 'TestField' does not match any field definition in area 'ProductArea'`

And when I’m trying to delete the field I’m getting a error of `Litium.Data.DataException: Database operation expected to affect 1 row(s) but actually affected 0 row(s)`

Looks like there is something wrong with the fields. Has anyone seen this behavior?

Litium version: 7.1

---

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [March 27, 2019, 12:32pm UTC](https://forum.litium.com/t/problem-with-delete-fields/759/2 "2019-03-27T12:32:49Z")

</div>

Looks like a restart of the site made this error disappear. Could be nice to know if it occurs again for anyone.

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [March 27, 2019, 12:42pm UTC](https://forum.litium.com/t/problem-with-delete-fields/759/3 "2019-03-27T12:42:05Z")

</div>

Are you using multiple web applications to the same database?

---

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [March 27, 2019, 12:42pm UTC](https://forum.litium.com/t/problem-with-delete-fields/759/4 "2019-03-27T12:42:49Z")

</div>

No, one app only.

---

<div class="post-metadata">

**Author:** ![MariliaBognandi](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@MariliaBognandi](https://forum.litium.com/u/MariliaBognandi)\
**Post date:** [August 5, 2019, 12:31pm UTC](https://forum.litium.com/t/problem-with-delete-fields/759/5 "2019-08-05T12:31:51Z")

</div>

I have the same problem, trying to delete a field in BO because I want to change it’s datatype from Text to TextOption (which is defined in the code aswell). How do I do the restart of the website?

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [August 5, 2019, 1:05pm UTC](https://forum.litium.com/t/problem-with-delete-fields/759/6 "2019-08-05T13:05:50Z")

</div>

Open IIS Manager \> Locate the site in the list to the left \> Right-click and select Restart.
