You need to sign in to do that
Don't have an account?
U Jay
List has more than 1 row for assignment to SObject on action button in a page from managed package.
Installed a managed package, which contain simply 2 pages, controllers, stylles, scripts etc.
Then created a site using the apge within the pacjkage. When i clicked an action button, Recieved the exception , “List has more than 1 row for assignment to SObject
Error is in expression '{!saveingData}' in page donation:donationform: (Donation)
An unexpected error has occurred. Your solution provider has been notified. (Donation) “
What will be the reason? Anything regarding the installation or configuration.
Any help?
Thanks in advance.
Then created a site using the apge within the pacjkage. When i clicked an action button, Recieved the exception , “List has more than 1 row for assignment to SObject
Error is in expression '{!saveingData}' in page donation:donationform: (Donation)
An unexpected error has occurred. Your solution provider has been notified. (Donation) “
What will be the reason? Anything regarding the installation or configuration.
Any help?
Thanks in advance.
All Answers
Account acc = [Select Id from account] ;
If this returns more than pne record then it will give the same exception. Try doing this :
List<Account> accLst = [Select Id from Account] ;
If still not able to solve, then post your apex code here.
Why all classes are not available under 'Enable Apex Class Access' part under the site's public access settings?