# Die geplante Aufgabe für "media.cleanup\_corrupted\_media" ist fehlgeschlagen

**URL:** <https://forum.shopware.com/t/die-geplante-aufgabe-fuer-media-cleanup-corrupted-media-ist-fehlgeschlagen/108388>\
**Category:** Shopware 6 (German)\
**Created:** [18. Dezember 2025 um 17:48 UTC](https://forum.shopware.com/t/die-geplante-aufgabe-fuer-media-cleanup-corrupted-media-ist-fehlgeschlagen/108388 "2025-12-18T17:48:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandrafrommauf](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@sandrafrommauf](https://forum.shopware.com/u/sandrafrommauf)\
**Post date:** [18. Dezember 2025 um 17:48 UTC](https://forum.shopware.com/t/die-geplante-aufgabe-fuer-media-cleanup-corrupted-media-ist-fehlgeschlagen/108388/1 "2025-12-18T17:48:49Z")

</div>

Nach dem heutigen Update auf 6.7.5.1 schlägt jedes mal die geplante Aufgabe „media.cleanup\_corrupted\_media“ fehl. Manuell starten bringt nichts.

Desweiteren steht: Die Entität „“ wird in folgenden Modulen verwendet:  
1 mal in **Dokument**

```auto
{
  "errors": [
    {
      "status": "409",
      "code": "FRAMEWORK__DELETE_RESTRICTED",
      "title": "Conflict",
      "detail": "The delete request for media was denied due to a conflict. The entity is currently in use by: document (1)",
      "meta": {
        "parameters": {
          "entity": "media",
          "usagesString": "document (1)",
          "usages": [
            {
              "entityName": "document",
              "count": 1
            }
          ]
        }
      }
    }
  ]
}

```

Die Frage ist in welchem Dokument und wie behebe ich das.

Kann mir jemand helfen ?

---

<div class="post-metadata">

**Author:** ![nurich-1](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nurich-1](https://forum.shopware.com/u/nurich-1)\
**Post date:** [19. Dezember 2025 um 14:10 UTC](https://forum.shopware.com/t/die-geplante-aufgabe-fuer-media-cleanup-corrupted-media-ist-fehlgeschlagen/108388/2 "2025-12-19T14:10:35Z")

</div>

Ist schon bekannt und als Bug klassifiziert worden.

> <https://github.com/shopware/shopware/issues/13910>
>
> \### Shopware Version
> 
> 6.7.5.0
> 
> \### Affected area / extension
> 
> Platform(Default)
> …
> \### Actual behaviour
> 
> When the media.cleanup\_corrupted\_media task runs and tries to delete a document where the file\_size is set to NULL in the database, the task will fail with the following error:
> 
> \`\`\`
> {
> "errors": \[
> {
> "status": "409",
> "code": "FRAMEWORK\_\_DELETE\_RESTRICTED",
> "title": "Conflict",
> "detail": "The delete request for media was denied due to a conflict. The entity is currently in use by: document (1)",
> "meta": {
> "parameters": {
> "entity": "media",
> "usagesString": "document (1)",
> "usages": \[
> {
> "entityName": "document",
> "count": 1
> }
> \]
> }
> }
> }
> \]
> }
> \`\`\`
> 
> Furthermore: even when a valid file with \>0 bytes size exists, the task will still try to delete the media entry.
> 
> \### Expected behaviour
> 
> \- The task will handle clean-up of in-use media correctly
> 
> \### How to reproduce
> 
> \- Generate an invoice document
> \- In the database, set the file\_size to NULL
> \- Run the task and observe it fail

---

<div class="post-metadata">

**Author:** ![sandrafrommauf](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@sandrafrommauf](https://forum.shopware.com/u/sandrafrommauf)\
**Post date:** [22. Dezember 2025 um 15:26 UTC](https://forum.shopware.com/t/die-geplante-aufgabe-fuer-media-cleanup-corrupted-media-ist-fehlgeschlagen/108388/3 "2025-12-22T15:26:18Z")

</div>

Vielen Dank und allen schöne Weihnachten.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [21. Januar 2026 um 15:26 UTC](https://forum.shopware.com/t/die-geplante-aufgabe-fuer-media-cleanup-corrupted-media-ist-fehlgeschlagen/108388/4 "2026-01-21T15:26:52Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
