function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Hall AnthonyHall Anthony 

Apex Error message when saving case in sandbox

Hi All,
I recently tried to save a case in our sandbox to test a new case object field and an error message popped up. I have been working in this sandbox since October and never had an error before. Recently I refreshed our sandbox for the Summer 16 release and I'm not sure if that possibly had an effect. Below is a screen shot of the error that mentioned "line 66" and a screenshot of the casebefore line 66. I'm at a lose of how to handle this because i dont have apex code experience. Thanks for the help, I really appreciate it!
User-added image
User-added image
Best Answer chosen by Hall Anthony
Pramodh KumarPramodh Kumar
Line 66 the query has 0 rows, which means webToCaseOwnerUsername is missing. Try to save the record with webToCaseOwnerUsername.

or paste you post your entire code for more details.


Thanks,
Pramodh.