XLSX ingest fails when first worksheet row has no spans attribute

オープン 初心者向け
#12,856 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@adityaanikam がすでに取り組んでいます。

2026年10月28日 から。

  • #12860 @adityaanikam による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
74/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
data

調査の方向性

まず、XLSXFileReaderと、ワークシートの最初の行のspans属性を読み取るコードを見つけます。属性がない場合にリーダーがどのように処理するかを確認し、関連するXLSX取り込みテストを見つけて実行します。spansがなくても、それ以外は有効なXLSXが正常に取り込まれ、既存のXLSX取り込み動作も引き続きテストでカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Type: Bug

Dataverse 6.11 fails to ingest an otherwise valid XLSX file when the first worksheet row does not contain the optional spans attribute (file may have been exported?).

The original XLSX fails to ingest. Opening the same file in Microsoft Excel and saving it as a new XLSX causes it to ingest successfully. Saving it as CSV also works. The column names and data do not appear to be the problem.

Error

Null r attribute in the first row element!
Null spans attribute in the first row element!

Ingest failure (IO Exception): Could not parse Excel/XLSX spreadsheet.
Cannot invoke "String.indexOf(int)" because "spansAttribute" is null.

Cause

The original worksheet XML contains a first row like:

<row r="1">

It does not contain a spans attribute such as:

<row r="1" spans="1:12">

The spans attribute is optional in XLSX/SpreadsheetML. XLSXFileReader checks whether it is null but then calls spansAttribute.indexOf(':'), resulting in the exception.

Steps to reproduce

  • Create or upload an XLSX whose first worksheet row omits the spans attribute.
  • Upload it to a dataset and allow tabular ingest to run.
  • Observe that ingest fails with the exception above.
  • Open the same file in Microsoft Excel, save it as a new XLSX, and upload it again.
  • Observe that the rewritten XLSX ingests successfully.

Environment

Dataverse 6.11

I did look through open issues and I don't think this one is mentioned yet, but I could have missed it.

主要言語
Java
スター
1.1k
フォーク
571
平均マージ
1日 18時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IQSS/dataverse のほかの issue

IQSS/dataverse の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。