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
SFDC@ChennaiSFDC@Chennai 

List has no rows for assignment to SObject

Hi

 After moving from QA to PROD  i m able to acces all the feild in few Opp.for example i have 6 opportunity (A,B,C,D,E & F).
i am able to see the vf page For A,B,C,D Opportunity but E& F I get ( List has no rows for assignment to SObject) Error message can any one help me out 

Thanks in Advance

Ramu_SFDCRamu_SFDC
see if this article helps

http://help.salesforce.com/HTViewSolution?id=000159853&language=en_US
ShashForceShashForce
We have to look at your code. Please post a snippet and point out where this iss happening.
David "w00t!" LiuDavid "w00t!" Liu
There is a SOQL query in your code that has 0 results, but your code assumes it has at least 1!
SFDC@ChennaiSFDC@Chennai
HI

After moving from QA to PROD , i m able to acces all the feild in few Oppprtunity Owners not for all.

For example i have a Opportunity say (opportunity owner =A) i am able to get  all fields when i change the same Opportunity  to (opportunity owner =B) i get
( List has no rows for assignment to SObject) Error message can any one help me out.

Thanks in Advance.
David "w00t!" LiuDavid "w00t!" Liu
Does your class have the "with sharing" keyword in it's first line?  That will restrict which records it can view.  Otherwise, it can see everything!