So, I have a problem. I exported my .bib file from Mendeley and apart from some minor problems it has worked fine. Until now. I'm pretty sure this problem has just ocurred, otherwise I would have noticed it sooner.
So.
I used \citep{}
to cite in my file using the author year format.
The entries in the .bib file contain all the information needed, but once I want to cite it in my text, I get (author n.d.) which means "no date".
For example, below is the .bib entry for Wurm2004, the year is present. Underneath is the .bbl entry for the same article. The year is missing. I tried compiling it a lot of times and also tried to manually change the year entry in the .bbl file. Nothing changed. If this question has already been asked please dircet me to it, I couldn't find anything.
@article{Wurm2004,
author = {Wurm, Florian M.},
doi = {10.1038/nbt1026},
file = {:C$\backslash$:/Users/sille/AppData/Local/Mendeley Ltd./Mendeley Desktop/Downloaded/Unknown - Unknown - R E V I E W.pdf:pdf},
journal = {Nature Biotechnology},
number = {11},
pages = {393--398},
title = {{Production of recombinant protein therapeutics in cultivated mammalian cells}},
url = {https://doi.org/10.1038/nbt1026}
volume = {22},
year = {2004}
}
\harvarditem{Wurm}{n.d.}{Wurm2004}
Wurm, F.~M. \harvardyearleft n.d.\harvardyearright , `{Production of
recombinant protein therapeutics in cultivated mammalian cells}', {\em Nature
Biotechnology} (11),~393--398.
\newline\harvardurl{https://doi.org/10.1038/nbt1026}
I use
\usepackage{natbib}
\bibliography{Mendeley}
\bibliographystyle{agsm}
Best Answer
After adding a missing
,
afterurl = {https://doi.org/10.1038/nbt1026}
the following MWE compiles without error(s) and only one warning (caused by packagefilecontents
, which is okay):It results in the wanted output: