You need to sign in to do that
Don't have an account?
sridhar sridhar
Trigge query exception
Apex trigger casetriger caused an unexpected exception, contact your administrator: casetriger: execution of BeforeUpdate caused by: System.QueryException: List has no rows for assignment to SObject: Trigger.casetriger: line 63, column 1
Before assigning the List values to Sobject, check the list size and proceed further.
This will solve the List has no rows exceptions. Example
thanks for reply,
the below is the error throwing line in the code
user caoner = [select id,profileid,profile.name from User where id = :caseerid];
Can you please copy your trigger here. I believe Caseerid doesn't have any value.
It will be easy to troubleshoot if you paste the whole trigger.
Thanks,
Kiruba. V
Let us know if this will help you
I am not getting error now.. but thing is .. my purpose for the trigger is not fullfilled.
the above trigger should restrict the users to close the case except those two profiles(Distribution division and Finance Division).
requirment is: No profile user allowed to close the cases of other profile users.
conditon: only those two profiles allowed to close the cases each other...
i am not getting what is the wrong with the trigger..
if you do the changes as per requirment please do it.. thanks for the replies
requirment: should not allow users to close other users cases
conditions: but only 3 profile users are allowed to close cases each other and thery are not allowed to close remaining 47 profile users and queue cases.