+ Start a Discussion
Sridhar VenkateswaraluSridhar Venkateswaralu 

HandledException : Invalid query locator

Hi All,


I am not able to catch the below exception and it is being displayed on to the front end.

core.apexpages.exceptions.ApexPagesHandledException: INVALID_QUERY_LOCATOR: invalid query locator.


can you also let me know wat is the difference between Handled and Unhandled exception??


waiting your quick response.





Handled expception is that when you add try and catch blocks in your code so that when any exception is thrown, it will handled in try and catch blocks.


Unhandled exception is when there is no try and catch blocks in code and it throws exception because of that.



Sridhar VenkateswaraluSridhar Venkateswaralu

Thanks Alok.


But  in that case, dont you think that mentioned exception should be caught .and also why am i not getting this exception in debug log and it is shown up on Visual force page even if i put a try catch block.


This is the exception m getting on Visual force page and it is not consistent:


core.apexpages.exceptions.ApexPagesHandledException: INVALID_QUERY_LOCATOR: invalid query locator

Error is in expression '{!eventType}' in component <c:mtrfnotificationscomponent> in component c:mtrfnotificationscomponent






You already have one thread on this, why the duplicate?


**EDIT: Sorry I was wrong, this is the THIRD thread on this....ugh***

Sridhar VenkateswaraluSridhar Venkateswaralu

Hey Starz,


m really sorry on that.

Any suggestions on the above question would really help me. 




I believe the answer to your question is in one of your other threads.


Hi Sridhar,


Were you able to get around this issue. I am also facing the similar issue and could not find any solution as of now.


Thanks in advance...