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
ShanmukaShanmuka 

Lightning error

When I am trying to execute in lightning it show alert message 'Error in calling server side action ' how can I solve this can any one suggest me

Regards 
Srikanth
Shubham_KumarShubham_Kumar
Hi Srikanth
This error occurs when there`s an error in calling your apex method.
Can you please share your code with us so that we can have a better understanding of this.

Regards
Shubham Kumar
Deepali KulshresthaDeepali Kulshrestha
Hi shanmuka surarapu,
 
Please refer to these links: to solve Server-side errors in lightning.
https://developer.salesforce.com/blogs/2017/09/error-handling-best-practices-lightning-apex.html

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.


Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com