[Tex/LaTex] Mendeley not generating citation key on desktop version

bibtexmendeleyoverleaf

I am using Mendeley to manage my citations. Previously I imported directly to Overleaf using the Mendeley API, however, this doesn't allow the degree of customisation I would like so I have started using the desktop version.

The problem I have is that Mendeley is not generating citation keys for a relatively large number of references. This is not a problem on the online version on Mendeley as the examples below show.

Exported from Mendeley desktop 1.19.2 for Linux

@techreport{,
title = {{Domestic energy v2 PDF WITH NOTES}},
url = {http://www-g.eng.cam.ac.uk/impee/topics/DomesticEnergy/files/Domestic Energy v2 PDF WITH NOTES.pdf},
year = {2005}
}

Exported from Mendeley online

@techreport{2005DomesticNOTES, 
title = {{Domestic energy v2 PDF WITH NOTES}}, 
year = {2005}, 
url = {http://www-g.eng.cam.ac.uk/impee/topics/DomesticEnergy/files/Domestic Energy v2 PDF WITH NOTES.pdf} 
}

This problem appears to have occurred in the last few weeks, as previously I did not notice the issue.
I have already had to change all my references from the api citation key style to the desktop citation key style, and do not want to have to keep adding citation keys if they disappear.
What is happening and how can I get Mendeley to fill in the missing citations?

Best Answer

I had the same issue. I solved it in Mendeley Desktop by going to Tools->Options and selecting the Document Details tab. Here you can choose document type, and to have Mendeley Desktop generate a citation key, make sure it is selected for the document types you prefer. It should then generate them the next time you export the .bib file.