LyXLyx error message: Repeated Entry

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

Lyx error message: Repeated Entry

Post by christo_91 »

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!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Lyx error message: Repeated Entry

Post by Ijon Tichy »

This happens if you have a bib-file (or more than one bib-files) with entries with the same key, e.g. with

Code: Select all

\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:

Code: Select all

This is BibTeX, Version 0.99d (TeX Live 2019)
The top-level auxiliary file: test.aux
The style file: unsrt.bst
Database file #1: test.bib
Repeated entry---line 4 of file test.bib
 :   @article{test
 :                ,
I'm skipping whatever remains of this entry
Warning--empty author in test
Warning--empty journal in test
Warning--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.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
christo_91
Posts: 4
Joined: Wed May 29, 2019 11:27 am

Lyx error message: Repeated Entry

Post by christo_91 »

Brilliant - sorted. Thanks very much!!
Post Reply