## LaTeX forum ⇒ LyX ⇒ Lyx error message: Repeated Entry Topic is solved

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
christo_91
Posts: 4
Joined: Wed May 29, 2019 11:27 am

### Lyx error message: Repeated Entry

Hi,

I've just updated the bibliography list for my Lyx document (same file location and file name), but when I click to preview the PDF the following error comes up (XXXX is the file extension):

Repeated entry---line 4310 of file 23C_XXXX_library.bib

If I click Show Output Anyway it works fine, but I'd rather get rid of the error message if I can.

Any ideas?

Thanks!

Ijon Tichy
Posts: 196
Joined: Mon Dec 24, 2018 10:12 am
This happens if you have a bib-file (or more than one bib-files) with entries with the same key, e.g. with
\begin{filecontents*}{\jobname.bib}  @article{test,    title={Test},  }  @article{test,    title={Test repeated},  }}\end{filecontents*}\documentclass{article}\bibliographystyle{unsrt}\begin{document}\nocite{*}\bibliography{\jobname}\end{document}
the bibtex run results in:
This is BibTeX, Version 0.99d (TeX Live 2019)The top-level auxiliary file: test.auxThe style file: unsrt.bstDatabase file #1: test.bibRepeated entry---line 4 of file test.bib :   @article{test :                ,I'm skipping whatever remains of this entryWarning--empty author in testWarning--empty journal in testWarning--empty year in test(There was 1 error message)

Changing the key of the second entry from test to testB fixes the issue.

So you have to look into your bib-file and see where there is an identical key like the one of the entry in line 4310 and change one of the keys or remove the duplicate.

christo_91
Posts: 4
Joined: Wed May 29, 2019 11:27 am
Brilliant - sorted. Thanks very much!!