[Tex/LaTex] Sudden error in TeXShop: “I found no \bibdata” and “I found no \bibstyle”


I am new to LaTeX, so apologies for any naivety.

I am working on a project and report and was adding a new reference when suddenly the BibTeX report console produced this:

This is BibTeX, Version 0.99d (TeX Live 2015)
The top-level auxiliary file: EPQReport.aux
I found no \bibdata command---while reading file EPQReport.aux
I found no \bibstyle command---while reading file EPQReport.aux
(There were 2 error messages)

I have looked around other StackExchange posts and found that often an \end{document} before the


can cause such problems. I don't see this as the source of the problem in my code. Here are my .tex source and .bib source with the majority of the content stripped:


\usepackage{graphicx} % import images
\usepackage{float} % control float positions
\usepackage[hidelinks]{hyperref} % Allows clickable reference lists
\usepackage[none]{hyphenat} %Stops breaking up words in table
\newcommand{\rowstyle}[1]{\gdef\currentrowstyle[#1] #1\ignorespace}
\usepackage{mhchem} % Write chemistry equations
\usepackage{xfrac} % Allows for slanted fractions
\usepackage{csquotes} % Indented, nicer, quotations



\section{Appendix: Evaluation of Sources}
Table, referred to in log, to go here.


My references file (.bib) is on Pastebin here also: http://pastebin.com/07KXLztv (I didn't know how to redact it without removing something potentially faulty).

I'd be very grateful if anyone could point out my (likely idiotic) errors.

Best Answer

This happened to me. Turned out I had updated the figure PDFs and one of them was corrupt. Since the compiler got stuck here, it wouldn't read some of the commands including the bibliography ones.

If you don't have a duplicated \end{document}, I would try to verify every included file for corrupted documents.