Questions tagged [timeout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
25
votes
3answers
984 views

Batch start CPU timeout - What influences start() post-processing?

We're experiencing a very annoying issue with a Batch job processing "Large Data Volume" (1.5M records over a table containing 4.5M records). Our batch start method last statement is: return Database....
10
votes
2answers
8k views

Exception: QUERY_TIMEOUT Your query request was running for too long

Querying on approx 25 million contacts using the following query in database.getQueryLocator. Used Query Resource Feedback (Link) to get some feedback about query and here are the results. Query - 1: ...
8
votes
2answers
2k views

Apex CPU Time limit in Batch start() - is this a Query Timeout and how to cope with?

I have a Batch iterating over a large amount of records (with many fields) and 2 of their related child records. The start() method uses Dynamic SOQL to fetch them via QueryLocator to vary which ...
8
votes
1answer
92 views

6 minute delay in a Visualforce response in Spring ‘20 Sandbox Preview orgs

We have one managed package Visualforce UI <apex:commandButton .../> timing out only in Spring ‘20 Sandbox Preview orgs. The tail end of the log looks like this: 11:42:28.5 (1587639757)|...
6
votes
1answer
601 views

Difference between time limit and cpu time limit exceptions?

I have a huge process running, but I haven't used nested loops anywhere. I have a process which iterates 12,000 records. I was paginating this 12000 record list as smaller pages( I know its wrong) I ...
5
votes
1answer
3k views

Session expiry in Salesforce - Session timeout value for Connected Apps

I am using OAUth authentication through connected apps. How can I get session timeout value(access token expiry time) as part of response during user authentication. I am expecting "expires_in" ...
5
votes
3answers
146 views

Tests fail with CPU timeout - but only in Patch orgs

This seems to be something new. Maybe a change in Salesforce.com server infrastructure. I am unable to upload patches of my product as some of its tests (run forever and then) fail with CPU Timeout ...
5
votes
1answer
1k views

_Visualforce.Ajax.timeout meaning exactly?

I see there is a _Visualforce.Ajax.timeout attribute that can be set for JS remoting. See ref here I am wondering what is being timed here. The server side time? The client round trip time? What ...
4
votes
1answer
2k views

How to solve “First error: connection was cancelled here” error in batch apex [closed]

I have a batch apex class that makes an http (GET) callout to external api from salesforce. It returns x number of JSON objects which are decoded to create lists of cases but the dml upon insert never ...
4
votes
1answer
472 views

forcetk proxy gets a 302 in session timeout

I am using the forcetk proxy so that I can send AJAX requests and not have to worry about the cross domain restrictions. The sequence is: I am on page in myapp. myapp.na9.visual.force.com/apex/...
4
votes
0answers
7k views

CalloutException: Read timed out error after increasing timeout

I have simple code to send a get request to our webservice that returns a small json response: System.HttpRequest request = new System.HttpRequest(); request.setMethod('GET'); request....
4
votes
0answers
832 views

REST API Query Timeout Expected

Having recently completed an integration with salesforce using the REST API we've come across an interesting feature. All the documentation I could find suggests that we should get a QUERY_TIMEOUT ...
3
votes
1answer
8k views

What is the default timeout for httpRequest?

What is the default timeout for httpRequest. I have gone through this doc . But could not find the default timeout. public class HttpCallout{ @Future(callout=true) public static void ...
3
votes
2answers
885 views

Why is this SOQL query not selective?

We have following query in our code and its giving timeout error. Select email, firstname, lastname, id From contact Where Email != Null And Opted_Out__c = false And id IN (Select contactid From ...
3
votes
1answer
7k views

How to set timeout for web service call

I want to call out my web service after the insert process of a custom object with a delay of 2 minutes. But i am getting that exception FATAL_ERROR|System.CalloutException: Read timed out How can i ...
3
votes
2answers
792 views

Make an existing text field an indexed External Id. Will/can Support do it?

In our ISV package we had to "convert" a pre-indexed Lookup field to a Text(255) field as we wanted to keep Ids even when the referenced record was deleted. After we did that the performance of SOQL ...
3
votes
1answer
53 views

Scratch Org Limit Exceeded, Not Visible In Dev Hub

Today, while trying to deploy a fresh scratch org, I received a familiar error. The signup request failed because this organization has reached its active scratch org limit Typically the way to ...
3
votes
1answer
101 views

Read Time Out - First HTTP request - rest

Http request using restAPI : public static String sendFormHttp(Opportunity opportunity, List<Easy_Send_Form_Mapping__mdt> mappingList, Map<String, String> systemVariableMap){ ...
3
votes
1answer
1k views

Internal Salesforce.com Error in a Query inside a Batch

Problem i'm having an issue in a Batch Process. It's have been working properly since January, but in the last days i'm getting an Internal SalesForce Error. The error line is inside a Query which is ...
2
votes
2answers
232 views

Optimizing SQL queries

I've set up an automation that resends an altered version of a mail to all who recieved it the first time it was sent, but didn't open it. This is done in Automation Studio using 3 SQL Query and a ...
2
votes
2answers
2k views

My soql select is timedout sometimes

I have a soql query inside my apex class : SELECT Id, Name, account.name, Special_food_requirements__c,Passport_number__c,account.Relationship__c,Function__c FROM Contact ...
2
votes
2answers
839 views

Is it possible to set a session time out for a specific user?

My question is simple Is it possible to set a session time out for a specific user in salesforce? Not a profile ,not a permission set but a specific user.. Thanks in advance
2
votes
1answer
397 views

How to poll data without resetting the session clock

I have a scenario where I'd like to poll Salesforce for data via Visualforce Remote Action, but according to this answer, Remote Actions count as activity and cause the session timeout countdown to ...
2
votes
1answer
127 views

Apex CPU time limit exceeded on running on lists until empty

I am trying to upload documents through Queueable Apex. My intention is to complete all the callouts and then run the logout request to a third party server. I ran into an issue with the exception '...
2
votes
3answers
653 views

Salesforce large relationship (inner) query

I have a task to perform a fairly large and specific data removal. The goal is to remove all EmailMessage objects that have a parent Case record whose status is closed, from BEFORE a certain date. ...
2
votes
1answer
2k views

Timeout for soql in sandbox

I am trying to run a few queries on the Event object.But the queries time out. Querying the same in Full copy sandbox seems to be okay. But the time out happens in Production only. What could be the ...
2
votes
1answer
880 views

How to control the Timeout for Enterprise WSDL for Salesforce integration

How to control the Timeout for Enterprise WSDL for Salesforce integration.
2
votes
2answers
1k views

Email SOAP API - Retrieve responses - Timeout

We use the SOAP API method call Retrieve() to get back users' sends, opens, clicks, unsubs and bounces. We specify the required event-type and date-range. One of our customers have now accumulated so ...
2
votes
1answer
434 views

Handling session timeouts from AJAX requests

I need to able to handle session timeouts nicely from ajax requests. So the user's session has timeout and they should get redirected to the userlogin page if they submit an ajax request. I just ...
2
votes
1answer
29 views

SAML - Triggering Single Logout (SLO) when session times out at the identity provider

Let's say I have Saleforce set up as an Identity Provider with a session timeout of 15 minutes. I set up a connected app with SAML and SLO. I use SSO to access a connected app and start working only ...
2
votes
0answers
257 views

Rest API - Download times out without any errors

I am downloading ContentVersions through Salesforce using Rest API. I have submitted several file requests and downloaded. After downloading, an observation was that the ContentSize field in ...
2
votes
0answers
539 views

Salesforce connection timeout when sending attachments via 3rd party integration platform

I'm trying to create attachments in Salesforce using a 3rd party integration platform (Boomi). The Boomi timeout has been increased to 10 minutes, but the Salesforce connection times out after 2 ...
2
votes
0answers
302 views

CPU Timeout - SendEmail API resulting in Maximum Timeout

We are facing issue with the Maximum CPU Time in our Sandbox and Production. Here is the scenario: We have a visualforce page which allows to send email to contacts(working fine for less than ...
2
votes
0answers
211 views

Changing session timeout behaviour?

In force.com session timeout are handled by server sending a redirect and setting the location header to a page in force domain. This will cause a re-challenge and re-authentiation. Is it possible to ...
1
vote
3answers
5k views

Session timeouts

I am trying to test session timeouts. I note that the minimum timeout setting is 15 minutes. Is there any way to get this lower? Also, if I have a dev session open with eclipse and hit save on a ...
1
vote
4answers
86 views

Apex CPU time limit exceeded error in trigger

I have a trigger on lead after insert that query all accounts and all contacts created the past 30 days to compare 4 fields (external id and legal number on accounts / mobile and email on contacts) ...
1
vote
1answer
746 views

First error: Exceeded maximum time allotted for callout (120000 ms)

I have a Batch class making an API callout and I have scheduled this class. I have used a for loop to iterate through the page number variable in my API endpoint. There are 64 pages. Strangely, if I ...
1
vote
1answer
48 views

What would cause a standard object to load slowly?

I'm working in a sandbox(salesforce classic layout) where opening an Opportunity record would sometimes hit the time limit(2 minutes). I'm trying to figure out why that's happening. I've never seen ...
1
vote
1answer
63 views

Is the query on object history slower than the query on the object itself?

The object which has the history tracking enabled in my organization is being modified 3 to 4 times a day, so we end up with 112 history records per month. I have a page that queries the history and ...
1
vote
1answer
477 views

Event object SOQL queries timeout

I am attempting to pull data from SF and replicate it into a database for analytics. I have been running into a problem with the Event object. I included a subset of the desired query below, with a ...
1
vote
2answers
1k views

How to disabe API user session timeout?

I have currently developed a Java API client that connect against the Salesforce instance of my company. Using the following tutorial: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/...
1
vote
2answers
608 views

“Time Limit Exceeded” error only when generating PDF, but not when VF page is displayed

I have a Visualforce Page, that renders as PDF - conditionally. So from one button it shows as simple Visualforce page, and from another button (somewhere else in the app) it renders it as PDF. The ...
1
vote
1answer
819 views

Salesforce REST API Time-out after 4 callouts

Good day. I really need help on this issue. I have tries every possible option here. I use the Salesforce REST API using C#. The works 100% fine but after a couple of calls out to SF i keep on ...
1
vote
0answers
43 views

Query timeouts for community users after Winter 19 update

We have a Customer Community with a custom Visualforce application that we built. After Winter '19 update on our production instance over the weekend, some of our query functions are timing out or ...
1
vote
0answers
265 views

Outbound Messages java.net.SocketTimeoutException: Read timed out

I am getting a lot of java.net.SocketTimeoutException: Read timed out with my Workflow Outbound Messages It looks like remote server (Node.JS express) works to slow and salesforce breaks connection ...
1
vote
2answers
443 views

CPU Timeout limit exceeded exception caused for existing working code after SF upgraded to Summer'16,. Any idea if anything updated in Summer'16

I have a code which was working for my previous packages. But after the Summer'16 release I am getting the CPU timeout exception for my codebase which was working earlier. Is there any thing update ...
1
vote
0answers
663 views

List view time limit exceeded error

When I try to load an account list view it is giving me a time exceeded error. The list view need to return only 50 records, I tried it out using SOQL in dev console. So I don' think it is an data ...
1
vote
1answer
164 views

FuelSDK SentEvent Timeouts

I read another post here that said if you are getting a timeout then extend the timeout property in the ET_Client.cs file. I searched for timeout in that file but found nothing. Anyone know where I ...
1
vote
0answers
69 views

Apex CALLOUT_REQUEST is failing with System.CalloutException: Read timed out [duplicate]

Our endpoint is an https request. |CALLOUT_REQUEST|[217]|System.HttpRequest[Endpoint=https:[intentionally left off] The logs show: |EXCEPTION_THROWN|[217]|System.CalloutException: Read timed ...
1
vote
0answers
191 views

Customize Salesforce session timeout popup page

Is it possible to customize salesforce session timeout page to include time remaining to continue session and add a logo by nullifying the salesforce default logo. I have searched on this topic but ...