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
RichardC.ax220RichardC.ax220 

Changing lead sharing rule causes REQUEST_LIMIT_EXCEEDED error when attempting to rerieve leads

I have an S-Control that retrieves a small number of leads (< 10). It works fine until I change the Lead access sharing rule from Public Read/Write to Private. When someone besides the lead owner then tries to retrieves the leads, the retrieve call hangs for several minutes, then returns the faultString "REQUEST_LIMIT_EXCEEDED: TotalRequests Requests Limit exceeded." The lead owner has no problem retrieving the leads.  Why is retrieve using up requests on leads that the caller cannot see?  What can I do to get around it?
lettuceheadlettucehead
Please post the relevant portion of the S-Control?
How does your S-Control limit itself to 10?
Is it possible that your code keeps trying to get 10 records but becasue of the new sharing rules it is not getting results and continues to ping the API until the daily limit is exceeded?
RichardC.ax220RichardC.ax220
Lettucehead,

Thanks for your interest in the problem. I resolved it by upgrading to the new Apex Ajax API. Now I can access more than 10 leads owned by someone else with no problem.