I am using Overleaf to write my master thesis. I have used natbib package (works fine) but I want to change to biblatex to be able to use different styles. I am using JabRef as a bibliography manager, by uploading my bibliography as a bib file on Overleaf. As I mentioned, this works fine when using natbib, but when I changed the commands to biblatex and compile I sometimes get error messages saying "undefined on input line 3" and the citations marked as just bold citekeys in the document, and sometimes i get a fatal error and no pdf produced with lots of errors:
Compile Error. Sorry, your LaTeX code couldn't compile for some reason. Please check the errors below for details, or view the raw log.
*Runaway argument? {Inheritance is involved in up to one third of colon cancer cases. Hi\ETC. ! File ended while scanning use of \field.
\par</p>l.70 \begin{document} I suspect you have forgotten a
}', causing me to read past where you wanted me to stop. I'll try to recover; but if the error is serious, you'd better typeE' or `X' now and fix your file.acknowledgements/acknowledgements.tex, line 9 Illegal parameter number in definition of \NewCount.
*1 l.9 \begin{itemize} You meant to type ## instead of #, right? Or maybe a } was forgotten somewhere earlier, and things are all screwed up?I'm going to assume that you meant ##.**
++++ the errors go on and on.
This is the my code in the main document:
\documentclass[a4paper,12pt,twoside]{report}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=3cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\DeclareUnicodeCharacter{2212}{-}
\usepackage{csquotes}
\usepackage{newcent}
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage{xcolor}
\usepackage{longtable}
\usepackage{tabu}
\usepackage{multirow}
\usepackage{multicol}
%AKRONYM
\usepackage{acronym}
%NOMENKLATUR
\usepackage{nomencl}
\renewcommand{\nomname}{\LARGE{Nomenclature}}
\makenomenclature
\usepackage{graphicx}
\graphicspath{ {./images/} }
\usepackage[export]{adjustbox}
\usepackage{wrapfig}
\usepackage{subfiles}
\usepackage{setspace}
\usepackage{tocloft}
\setlength\cftparskip{0pt}
\setlength{\cftbeforesecskip}{1pt}
\setlength{\cftbeforechapskip}{6pt}
\usepackage{titlesec}
\titlespacing{\subsubsection}{0pt}{\parskip}{-\parskip}
%\setcounter{secnumdepth}{3}
%\titlespacing*{\section}
%{0pt}{5.5ex plus 1ex minus .2ex}{4.3ex plus .2ex}
%\titlespacing*{\subsection}
%{0pt}{5.5ex plus 1ex minus .2ex}{4.3ex plus .2ex}
%BIBLIOGRAFI
%NATBIB
%\usepackage[square,numbers,round,sort&compress]{natbib}
%BIBLATEX
\usepackage[backend=biber,citestyle=nature, sorting=none, natbib=true]{biblatex}
\include{thesis.preamble}
\addbibresource{bibliografimaster.bib}
\begin{document}
\title{\LARGE {\bf } Haplotype analysis \\
\vspace*{6mm}
}
\maketitle
\preface
\body
\part{Part 1}
\part{Part 2}
\input{Method/Method}
\input{Results/Results.tex}
\addcontentsline{toc}{chapter}{Bibliography}
%NATBIB
%\bibliographystyle{unsrt}
%\bibliography{bibliografimaster.bib}
%BIBLATEX
\printbibliography
\newpage
\addcontentsline{toc}{chapter}{Appendix}
{\Huge\textbf{Appendix}}
\appendix
% appendices come here
\input{Appendix/appendix.tex}
\end{document}
I have included the code i use both for natbib citation style and for biblatex (with percent in front of natbib so its not used). I have also removed all the natbib commands to see if this makes any change, but it doesn't. The natbib commands I use works fine, so I just wanted to include them to show what I have done and that these arguments works.
I have probably included lots of irrelevant commands in my working example, but I wonder if any of the arguments I have used can explain why natbib seems to work and not biblatex?
I have made a working example using the same bib file using biblatex (the same commands i used in my master project above), and this works fine.
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{TesterReferanser}
\author{SS}
\date{January 2019}
\usepackage[backend=biber,citestyle=nature, sorting=none, natbib=true]{biblatex}
\addbibresource{bibliografimaster.bib}
\begin{document}
\maketitle
\section{Introduction}
må teste referanser \cite{RN272}.
\printbibliography
\end{document}
Result in nice citations and bibliography!!
Therefore, i believe that some other commands i have used in the preamble is the reason for the error message.
I would be so grateful is someone can help me with this. What am i missing??

biblatex. It loads quite a lot packages in general (and I suggest you try and get rid of packages you don't need), but none of them is known to have problems withbiblatex. We don't knowthesis.preamble, which could contain problematic code, so you may want to investigate that file. Would it be possible to produce a minimal example from your long, non-working code that reproduces the issue with as little code as possible (cf. https://tex.meta.stackexchange.com/q/228/35864 and https://tex.meta.stackexchange.com/q/4407/35864# – moewe Jan 09 '19 at 14:12{Inheritance is involved in up to one third of colon cancer cases. Hi\ETC. ! File ended while scanning use of \fieldsuggests that one of your.bibentries has anabstractfield where a special character like%is not properly escaped (indeed a short google search reveals https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2586153/ and there is indeed a%in the abstract). I usually recommend not to export theabstractfield at all, it only unnecessarily bloats the files involved. See also https://tex.stackexchange.com/q/352662/35864 – moewe Jan 09 '19 at 14:16