Export to linked file fails with "Invalid column index 16385" after the file was edited in an office suite
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
Start in SubmissionService::exportData, where the existing linked spreadsheet is loaded and its columns and rows are synced, and follow the calls to getHighestColumn() and removeColumnByIndex. SyncSubmissionsWithLinkedFileJob hits the same path in the background. Reproduce by loading a spreadsheet whose row 2 has styled cells out to column XFD and checking which column index is passed in. Done means the export either succeeds on that file or stops with a clear error, and the maintainers still need to pick between those two behaviours.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Exporting submissions into an existing (linked) spreadsheet fails once that file has been opened and saved in an office suite (Collabora/Nextcloud Office). The UI shows "Error while exporting to Files" and the log contains:
PhpOffice\PhpSpreadsheet\Exception: Invalid column index 16385
Since 5.4.0 the export loads the existing file and syncs columns/rows into it (SubmissionService::exportData). After saving in an office suite, row-level formatting (e.g. on the hidden ID row 2) makes getHighestColumn() return the last possible column (XFD = 16384). The column sync (removeColumnByIndex / writing the header) then addresses column 16385, which PhpSpreadsheet rejects.
Steps to reproduce
Create a form, add a submission.
Results → "Export to Files" (xlsx), so the form gets a linked file.
Open the exported xlsx in Nextcloud Office (Collabora), change nothing or format a cell, save.
Add another submission, or export to Files again.
Export fails; the background sync (SyncSubmissionsWithLinkedFileJob) fails the same way.
Expected behavior
The export either works on a file edited in an office suite (e.g. by using getHighestDataColumn() instead of getHighestColumn() and ignoring styled-but-empty cells), or fails with a clear message such as "The linked file was changed outside Forms – please unlink or rename it".
Workaround
Rename or move the edited file and unlink it, then export again (a fresh file is created).
Environment
Forms 5.4.0 (code path unchanged in 5.4.1 and main as of 2026-11-03)
Nextcloud 34.0.5, Docker image nextcloud:34.0.5-apache
Office: Collabora Online (richdocuments 11.1.2)
- Vorherrschende Sprache
- JavaScript
- Sterne
- 385
- Forks
- 133
- Ø Merge
- 7 Std. 54 Min.
- Gemergte PRs (30 T.)
- 157
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus nextcloud/forms
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
0. Needs triage bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 64/100
Maintainer antworten meist innerhalb von 1 Tag
-
1. to develop enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
nextcloud/forms#3841 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
1. to develop enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 22/100
nextcloud/forms#3829 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in nextcloud/forms
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
cytoscape/cytoscape.js#3597 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
priority: low server testing
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
blamechris/chroxy#9277 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
sunososobro-hub/cloudball#191 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
microsoft/playwright#44289 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Wire ISO post: has() accepts text values such as an empty string, true or 0x1A for wire numbersOffenarea:post effort:low enhancement P7 source:agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag