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
GirinoobGirinoob 

Visualforce page QueryLocator is invalid Error

Hi,

I am getting following error for QueryLocator "This page uses a QueryLocator that is invalid.There is a limit of 5 QueryLocators per user".

The error comes when i leave page idle for 10-15 minutes.

Can anyone give me idea on how to resolve this issue ?

I am using StandardSetController for pagination.

sfdcfoxsfdcfox

QueryLocator cursors expire after 15 minutes of inactivity. This is in the docs.

GirinoobGirinoob

Is there any way we can refresh the queryLocator automatically when it expires.