I wanted to create table but the following problem occurred:

The problem is that the lines are not long enough.
Code:
\begin{table}[htp]
\caption{Gross errors found using plausible value check for ambient temperature in Nodes [25-28-29-31-32] }
\label{tab:gr}
\centering
\footnotesize\setlength{\tabcolsep}{2.5pt}
\begin{tabular}{l@{\hspace{6pt}} *{22}{c}}
\toprule
\bfseries Type & \multicolumn{22}{c}{\bfseries Node name} \\
\cmidrule(l){3-23}
& 25 & 28 & 29 & 31 & 32 \\
\midrule
\bfseries A
& 20276 & 20302 & 20267 & 20263 & 20257 \\
\bfseries B
& 1376 & 1321 & 83 & 1329 & 1502 \\
\bfseries C
& 0 & 0 & 0 & 0 & 0 \\
\bottomrule
\addlinespace
\multicolumn{23}{l}{A: Total number of observations}\\
\multicolumn{23}{l}{B: Number of faults}
\multicolumn{23}{l}{C: Number of faults in 2007-09-29}
\end{tabular}
\end{table}

\multicolumnworks means that 'unused' columns can cause some odd output: my first guess would be that this may be the issue. – Joseph Wright♦ Dec 14 '12 at 8:52