You need to sign in to do that
Don't have an account?
Gurchet Singh 11
how to check the size of custom object before query fire.
Hi all,
how to check the size of custom object before query fire.When there is no record in object and we are trying select sata from that object then system return run time error(List has no rows for assignment to SObject).help to fix it.Thanks in advance
how to check the size of custom object before query fire.When there is no record in object and we are trying select sata from that object then system return run time error(List has no rows for assignment to SObject).help to fix it.Thanks in advance
Something to the tone of:
Please try below query .
Let us know if it helps
Can you share your code that is generating that error? I wouldn't advise burning another SOQL query just to get a list size before querying it again. There is probably something else we can recommend.
-Andy