Thanks Rich. Its exactly what was happening. I did a debug of procedure and in the variable window I could actually see two variables of "ACTUAL_AGENT_UTILIZATION", one with null and one with the expected result. The commented out the declare statement and now the procedure is running fine.
Thanks a ton ![]()
Regards,
Chandan S Murthy