Hi Michael,
The Calculation View code is correct. I am just not sure what are you trying to here:
CE_CALC('"UserId"='':session_user_var''', TINYINT)
I feel the above statement is incomplete.
Few probable checks:
1. If there is a comparison that you intend to do of the user id entered (in the input parameter) and the session variable (with which the user had logged in), try to put that condition outside and use the output here or change the existing condition to have complete comparison. Since I am not sure, if CE_CALC understands what is to be done here.
2. Replace the CE_CALC condition with something simple (math formula) and see if the Calculation View executes as expected.
3. Check the input parameter itself.
Hope it helps!
Regards,
kG