News (2018-02-02): FAQ page has been fixed.

# Bug Tracker

ID 20 Closed (fixed) datatool 2.13 N/A Error if \DTLnewdbentry's third argument is an empty macro

## Report

Hi,

the bug nr 18 (xkeyval incompatibility) has in fact nothing to do with xkeyval (sorry).

It appears that if \DTLnewdbentry's third argument (value of the identifier key) is an empty macro, the following error occurs:

Runaway argument?
\@nil \ifnum \@dtl@numgrpsepcount >-1\relax \if@dtl@numgrpsep \ifnum \ETC.
! File ended while scanning use of \@dtl@checknumericalstart.


The joind MCE shows the problem:

  \DTLnewdbentry{mydata}{Surname}{\test}%

is OK as long as \test is a non-empty macro.

### MWE

\documentclass{article}
\usepackage{datatool}
%
\newcommand{\test}{}
%
\begin{document}
%
\DTLnewdb{mydata}%
%
\renewcommand{\test}{Doe}
\DTLnewrow{mydata}%
\DTLnewdbentry{mydata}{Surname}{\test}%
%
\renewcommand{\test}{}
\DTLnewrow{mydata}%
\DTLnewdbentry{mydata}{Surname}{\test}%
\end{document}


## Evaluation:

This is now fixed in version 2.14.

## Watch This Report

If you would like to add a comment regarding this bug report, please fill in the form below, but don't use it for a different bug or feature request, even if it's related. Instead fill out a new bug report or feature request. (If you want to link it to this report, make a note of the ID number at the top of the page.)

 Name (Optional) Comment You can use the following markup: [pre]Displayed verbatim[/pre] [tt]monospace font[/tt] [url]web address[/url] which will be converted to:
Displayed verbatim