# Can not resolve write order for provided data. Remaining write order classes: media, media\_translation, user, user\_config

**URL:** <https://forum.shopware.com/t/can-not-resolve-write-order-for-provided-data-remaining-write-order-classes-media-media-translation-user-user-config/97356>\
**Category:** Administration (EN)\
**Created:** [30. November 2022 um 09:30 UTC](https://forum.shopware.com/t/can-not-resolve-write-order-for-provided-data-remaining-write-order-classes-media-media-translation-user-user-config/97356 "2022-11-30T09:30:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [30. November 2022 um 09:30 UTC](https://forum.shopware.com/t/can-not-resolve-write-order-for-provided-data-remaining-write-order-classes-media-media-translation-user-user-config/97356/1 "2022-11-30T09:30:26Z")

</div>

Hi

I am using shopware 6.4.16.0.

When I am trying to delete an avatar image of the admin I am getting an error,

```auto
{
   "errors":[
      {
         "status":"500",
         "code":"FRAMEWORK__IMPOSSIBLE_WRITE_ORDER",
         "title":"Internal Server Error",
         "detail":"Can not resolve write order for provided data. Remaining write order classes: media, media_translation, user, user_config",
         "meta":{
            "parameters":{
               "classes":[
                  "media",
                  "media_translation",
                  "user",
                  "user_config"
               ],
               "classesString":"media, media_translation, user, user_config"
            }
         }
      }
   ]
}

```

What is the issue here, and how i can solve this?

---

<div class="post-metadata">

**Author:** ![MarkusFischer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/markusfischer/32/13693_2.png) [@MarkusFischer](https://forum.shopware.com/u/MarkusFischer)\
**Post date:** [14. Dezember 2022 um 07:57 UTC](https://forum.shopware.com/t/can-not-resolve-write-order-for-provided-data-remaining-write-order-classes-media-media-translation-user-user-config/97356/2 "2022-12-14T07:57:03Z")

</div>

Hi abinjohnedamana,  
did you try to delete the image in media? You have to remove it in the profile of the user first. For that you need to confirm the password, when you save this change. The admin is closed and it may occur an error then, but the image is removed in the profile. After that the deletion in images will be possible.

If you can’t solve the problem with this instruction, repeat your question in the Shopware programming folder, please.

Kind regards,  
Markus
