Latest news 2026-10-18: New blog post: Coming Soon: Alternative History Crime Thriller The Fourth Protectorate.

Bug Tracker RSS feed

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

Return to Search Results

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

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account. All guest comments have to be manually checked before they appear on the page. There are too many bots trying to spam the site to allow unauthenticated users to post without verification.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=323

Return to Search Results