i have an error with the reference

Thank you, I will try to fix it. How can I generate the reference beforehand?