Can not resolve write order for provided data. Remaining write order classes: media, media_translation, user, user_config

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,

{
   "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?

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