You need to sign in to do that
Don't have an account?
vijetha
Apex script unhandled exception by user/organization
Dear All,
I have Enterprise Edition , There are Profile and users added...
i have a problem: 1. when I login from username xyz@test.com and password, i will login and perform the tsk and logout.
2. If I login from any other username abc@test.com and password, i get the error :
Developer script exception from ABC : controller : List has no rows for assignment to SObject
Apex script unhandled exception by user/organization: 00521111124os5/00D20000000Bdir
Visualforce Page: /apex/page
kindly help !!
thanx in advance
It would appear that you have a VisualPage which is doing a select using the logged in user as a criteria. The query is not returning any records for the abc.test.com user and the code is not testing to see if any results were returned before using the query result.
Look at the code for the page "page".
Park
Are you able to login through other user names and passwords? or are you getting the error at the time of login itself? There can be several reasons for an example user can be inactive or there may be some profile permisson issues. Can you elaborate your problem a bit more?
Adding ...
The Apex code is not written correctly as it assumes that there will always be rows to retrieve. One useful idiom to follow in the APEX code is this: