# SiteGroupEntity Error Updating 8.4.4 Site

**URL:** https://forums.concretecms.org/t/sitegroupentity-error-updating-8-4-4-site/7045
**Category:** Developing with Concrete
**Created:** [February 28, 2024, 10:07pm UTC](https://forums.concretecms.org/t/sitegroupentity-error-updating-8-4-4-site/7045 "2024-02-28T22:07:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![drumrby](https://forums.concretecms.org/user_avatar/forums.concretecms.org/drumrby/32/3827_2.png) [@drumrby](https://forums.concretecms.org/u/drumrby)
#### Post date: [February 28, 2024, 10:07pm UTC](https://forums.concretecms.org/t/sitegroupentity-error-updating-8-4-4-site/7045/1 "2024-02-28T22:07:29Z")

</div>

I tried updating a site running 8.4.4 to 8.5.15 in preparation of updating to V9 afterwards. I used the manual update method, as 8.4.4 didn’t have the ability to update from the UI.

I’ve done Concrete updates many times, with no issue.

This time I am getting an error saying:

An unexpected error occurred.  
Class Concrete\Core\Permission\Access\Entity\SiteGroupEntity does not exist

I can’t get past that to login to see the error reporting.

---

<div class="post-metadata">

### Author: ![hutman](https://forums.concretecms.org/user_avatar/forums.concretecms.org/hutman/32/6198_2.png) [@hutman](https://forums.concretecms.org/u/hutman)
#### Post date: [February 28, 2024, 11:14pm UTC](https://forums.concretecms.org/t/sitegroupentity-error-updating-8-4-4-site/7045/2 "2024-02-28T23:14:58Z")

</div>

Can you run this command from the CLI and see if that fixes it?

```auto
concrete/bin/concrete5 c5:entities:refresh

```

---

<div class="post-metadata">

### Author: ![drumrby](https://forums.concretecms.org/user_avatar/forums.concretecms.org/drumrby/32/3827_2.png) [@drumrby](https://forums.concretecms.org/u/drumrby)
#### Post date: [February 29, 2024, 1:34am UTC](https://forums.concretecms.org/t/sitegroupentity-error-updating-8-4-4-site/7045/3 "2024-02-29T01:34:12Z")

</div>

I got this error:

An exception occurred while executing ‘ALTER TABLE ExpressEntityAssociationSelectedEntries ADD CONSTRAINT FK\_1F9C570CBF396750 FOREIGN KEY (id) REFERENCES ExpressEntityEntryAssociations (id)’:

SQLSTATE[HY000]: General error: 1005 Can’t create table `REDACTED_TABLE`.`ExpressEntityAssociationSelectedEntries` (errno: 121 “Duplicate key on write or update”)

---

<div class="post-metadata">

### Author: ![hutman](https://forums.concretecms.org/user_avatar/forums.concretecms.org/hutman/32/6198_2.png) [@hutman](https://forums.concretecms.org/u/hutman)
#### Post date: [February 29, 2024, 4:13pm UTC](https://forums.concretecms.org/t/sitegroupentity-error-updating-8-4-4-site/7045/4 "2024-02-29T16:13:57Z")

</div>

Sounds like you might have some bad data in your express entities. I’m not sure how to fix that.

---

<div class="post-metadata">

### Author: ![EvanCooper](https://forums.concretecms.org/user_avatar/forums.concretecms.org/evancooper/32/4597_2.png) [@EvanCooper](https://forums.concretecms.org/u/EvanCooper)
#### Post date: [March 8, 2024, 1:47am UTC](https://forums.concretecms.org/t/sitegroupentity-error-updating-8-4-4-site/7045/5 "2024-03-08T01:47:54Z")

</div>

Are you able to post your environment info here? Wondering if some migrations might not have run during the update or something and it might give us some clues.
