> For the complete documentation index, see [llms.txt](https://docs-sw5.zenit.design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-sw5.zenit.design/fehlermeldungen/row-size-too-large.md).

# Row size too large. The maximum row size for the used table type, not counting BLOBs

## Problembeschreibung

Beim Installieren des Plugins erscheint folgende Fehlermeldung:

```sql
An exception occurred while executing 'ALTER TABLE `s_articles_attributes` ADD `stratus_attr_youtube_id` VARCHAR(500) NULL DEFAULT NULL': SQLSTATE[42000]: 
Syntax error or access violation: 1118 Row size too large. 
The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
```

Beim Installieren von Plugins und Themes können sogenannte **Freitextfelder / Attribute** erzeugt werden. Das sind Datenbankfelder, welche in von Shopware vorgegebene Tabellen hinzugefügt werden können.

{% embed url="<https://docs.shopware.com/de/shopware-5-de/einstellungen/freitextfelder-attribute?category=shopware-5-de/einstellungen>" %}
Was sind Freitextfelder in Shopware?
{% endembed %}

Zwar kann man theoretisch tausend Spalten haben - diese dürfen aber ingesamt nicht mehr als 65535 haben. Die Freitextfelder sind entweder zu großzügig von Shopware definiert, oder es gibt zu viele große Felder.

## Das Problem

Das sogenannte Attributsystem in Shopware setzt beim Anlegen der Felder den Datentyp und deren Größe anhand der ausgewählten Feldtypen (Einfacher Text, Größerer Text, Checkbox, usw.) **automatisch**. &#x20;

Die Fehlermeldung besagt nun (vereinfacht), dass die maximale Anzahl dieser Felder erreicht ist, da einige Datenbanken, wie die des Typs InnoDB, eine maximale "row size" von 65535 haben.

## Problemlösung:&#x20;

Überflüssige und nicht benötigte Freitextfelder löschen. Stellt dies keine Option dar, sollte der Hinweis in der Fehlermeldung befolgt werden und die Felder in der Datenbank verkleinert werden. Hier sollte der Hoster zu Rate gezogen werden.

### Referenzen:

{% embed url="<https://forum.shopware.com/discussion/39251/solved-datenbank-update-5-2-3-could-not-apply-migration-1118-row-size-too-large>" %}

{% embed url="<https://forum.shopware.com/discussion/40572/maximalanzahl-an-spalten-fuer-s-articles-atributes>" %}

{% embed url="<https://issues.shopware.com/issues/SW-15674>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-sw5.zenit.design/fehlermeldungen/row-size-too-large.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
