Bug Tracker 
| ID | 323🔗 |
|---|---|
| Date: | 2026-11-22 10:07:38 |
| Last update: | 2026-11-22 12:35:40 |
| Status | Open Sign in if you want to bump this report. |
| Category | datatool |
| Version | 3.4.5 |
| Summary | Example doesn't work anymore |
Sign in to subscribe to notifications about this report.
Description
I have a lot of examples which worked in the past. for example:\documentclass[border=5mm]{standalone}
\usepackage{libertinus}
\usepackage{microtype}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{datatool}
\begin{filecontents}[force]{data0.csv}
Vorname,Nachname,AusweisNo,Alter
Hannes,"Wader, sen.",102689,68
Jane,Austen,102647,75
James,Brown,103569,42
Jana,Voss,105488,26
Roger,Daltry,106872,58
Claire,Waldoff,104356,45
Johan,Voss,513110,29
\end{filecontents}
\begin{document}
\DTLloaddb{Liste}{data0.csv}
\begin{tabular}{llc}
\itshape Vorname & \itshape Nachname & \itshape Alter
\DTLforeach{Liste}{\vorname=Vorname,\nachname=Nachname,\alter=Alter}{%
\\ \vorname & \nachname & \alter}
\end{tabular}
\end{document}
with current up-to-date texlive and lualatex I get:
! Package datatool Error: Can't assign `\vorname =Vorname': there is no key `Vo rname' in database `Liste'.
MWE
Download (688B)
\documentclass[border=5mm]{standalone}
\usepackage{libertinus}
\usepackage{microtype}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage{datatool}
\begin{filecontents}[force]{data0.csv}
Vorname,Nachname,AusweisNo,Alter
Hannes,"Wader, sen.",102689,68
Jane,Austen,102647,75
James,Brown,103569,42
Jana,Voss,105488,26
Roger,Daltry,106872,58
Claire,Waldoff,104356,45
Johan,Voss,513110,29
\end{filecontents}
\begin{document}
\DTLloaddb{Liste}{data0.csv}
\begin{tabular}{llc}
\itshape Vorname & \itshape Nachname & \itshape Alter
\DTLforeach{Liste}{\vorname=Vorname,\nachname=Nachname,\alter=Alter}{%
\\ \vorname & \nachname & \alter}
\end{tabular}
\end{document}
Evaluation
It seems that comment lines in the CSV file are no longer skipped. As a workaround use the noheader option with filecontents (or the starred form filecontents*, which is equivalent).
\begin{filecontents}[force,noheader]{data0.csv}Comments
0 comments.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=323
