Well you're right, but you're right for the wrong reasons. There are plenty of instances where plugging in a number to evaluate a limit gives you something undefined but the actual limit exists. For example if you take the limit as x goes to 2 of $\ \frac{x^2 - 5x + 6}{x-2} $ then you will get 0 in the denominator when you plug in 2 for x, yet you will see that this quotient approaches -1 as x goes to 2.
For your function, assuming E, U are real numbers, your trigonometric function can be regarded as a constant, and as E approaches U, the function will grow without bound from one direction (tend to positive infinity) and diminish without bound from another (tend to negative infinity). The limit cannot exist because (i) the limit from the right and the left must agree for the limit to exist (ii) the limit must be a real number (not infinity or negative infinity).