# Cross-referencing error in appendix

I have a problem with cross-referencing in the appendix of the document I'm writing, \ref is not working properly and I only get ??.

I'm using a LaTeX template for writing Ph.D. Thesis that can be found at Texis page. I'm working with Miktex2.8 and TeXnicCenter under Windows 7.

In the master document you can find:

\include{Capitulos/01Introduccion}
\include{Capitulos/02Metodologia}
\include{Capitulos/03ClimatologiaSST}
\include{Capitulos/04Sinoptica}
\include{Capitulos/05Modelizacion}
\include{Capitulos/06Conclusiones}

\appendix
\include{Apendices/01Rams}
\include{Apendices/02MapasSinopticos}
\include{Apendices/03MapasSST}


In chapter 2

E0996 & 11-12/09/1996 & 520 & 524.5 \\ \midrule
E1000 & 21-26/10/2000 & 376 & 570 \\ \midrule
E0502 & 06-08/05/2002 & 400 & 516 \\ \midrule
E1007 & 10-12/10/2007 & 400 & 404.4 \\ \midrule
\end{dataTable}
\end{center}
\caption[Listado de eventos precipitación]{Listado preliminar de eventos de precipitación torrencial en la \cv  (PMAX=Precipitación máxima)}
\label{cap2:tab:listaeventos}
\end{table}


and in appendix 3

  some text \ref{cap2:tab:listaeventos}


But the result is not a reference but ??

Any suggestion? I have found some relatively similar questions here but none has fixed my problem.

-
Welcome to TeX.sx! This should actually work. You of course compiled the document twice? Try to minimize the document until the error disappear to find the cause. See the thread about how to create a minimal working example (MWE) for more information. – Martin Scharrer Jun 28 '11 at 14:10

Magic crystal ball guess: you're using \includeonly and haven't compiled chapter 2 since you put in the \label?
(One thing you could check is whether the string "cap2:tab:listaeventos" does appear in the file 02Metadologia.aux, which it should.)