When I am using \caption{$\E_\A(D)$ where $\ora{UF}\!_n$} inside a table environment there shows some errors.
Error :
Only one # is allowed per tab. ...crcr }}}_n$\relax }}{95}{table.caption.41}
Error :
Illegal parameter number in definition of \reserved@a. \caption{$\E_\A(D)$ where $\ora{UF}\!_n$}
Here \E stands for \mathscr{E}, \A stands for \text{\k{A}}, \ora for \overrightarrow.
Please help resolving this problem.

\overleftarrowin subfigure caption. Different environment, but it's the same cause and therefore a similar solution. – Werner Aug 24 '17 at 15:04