Governor limits are limits enforced by the Apex runtime engine to ensure that runaway Apex does not monopolize shared resources in the multitenant environment. These limits are tracked and enforced during the execution of Apex code and if a governor limit is exceeded an uncatchable runtime ...

learn more… | top users | synonyms (1)

2
votes
1answer
36 views

Apex heap size error - VF dowloading attachments

I have one VF page from where I am trying to download some attachments - The time I tried to download attachments which includes Attachments of size 4 MB+ size, it start showing me this error. ...
3
votes
0answers
21 views

CPU timeout in production org due to strange waiting lags cannot be reproduced in slow DE org

Our managed package runs into CPU timeouts in a customer production which we tried to reproduce in our DE packaging org. We added some of the custom workflows, formulas and rollups but where unable ...
1
vote
1answer
24 views

Web-To-Lead throwing ConcurrentPerOrgApex Limit error

We are getting ConcurrentPerOrgApex Limit error on some of the Web-To-Lead creations. It used to occur rarely before but has become more frequent now, have had 3 of such incidents in the past week. ...
-1
votes
1answer
24 views

concurrent request limit exceeded

I am getting below eroor intermittently. I know the reason for this error as I read on docs but could not find out what I am supposed to do to avoid it, what might be the resolution. Error - ...
5
votes
1answer
41 views

How do governing limits work with @testSetup from Spring 15' release

The new @testSetup method is covered pretty well by Jesse Altman in his: New Spring ’15 Feature: @testSetup article but as mentioned in the comments, there is a question about how this new feature ...
0
votes
2answers
47 views

I get System.LimitException: Too many query rows: 50001 when querying via a static method in a different class but not if querying from the same class

I understand this exception. But what I don't understand is this: THIS APPROACH WORKS: public List<String> optionType { get { if (optionType == null) { ...
3
votes
2answers
53 views

Apex Email Limits Clarification

I need to send a (potentially large) number of emails to (community) users via code using an Email Template, with a custom object as the whatId. Because my whatId is a custom object, I am using ...
0
votes
2answers
35 views

CUMULATIVE_LIMIT_USAGE & CUMULATIVE_LIMIT_USAGE_END - Too many SOQL queries

We are getting 'Too many SOQL queries' on execution of Triggers on Account. We are using lot of Managed packages.I am trying to debug a single test method to start with. I am looking at the debug ...
3
votes
1answer
35 views

How can I create over 10,000 records with information from Visualforce?

I have an inventory input page that I am working on and I am running into an issue where I need to create more than 10k records. The problem here is that all the information needed is not stored in an ...
1
vote
0answers
13 views

How can I get a list of existing cross-object references without hitting the limit?

I am auditing our org - I'm aware that we're close to the cross-object reference limit on OppLineItem and Asset because we've hit it before, but have been able to rationalise various rules, formulas ...
4
votes
1answer
35 views

Test.StopTest Not Resetting Limits?

I have a test running in API Version 29. I am actively testing against governor limits and I think I am running into a bug. My test has the following sequence: //setup Test.startTest(); // ...
0
votes
1answer
35 views

Convert trigger to apex class

I have two custom objects. The first stores transactional data with a externally generated customer ID. The second custom object maps this customer ID to a salesforce account ID. I'm trying to find ...
1
vote
1answer
54 views

System.LimitException occurs in WSDL Class

I'm getting System.LimitException: Too many callouts: 101 error message in my WSDL class file generated by SFDC. Repeated error was shown as following: ...
2
votes
1answer
39 views

Does the query cursor limit matter if I'm only returning a single row?

I'm using the Salesforce SOAP API on our website. I am only using it for read operations on a table with around 50,000 records, however I only return one or two rows from the table (which I am ...
2
votes
1answer
38 views

Does a 304 response count toward api-usage count?

When making an API call with If-Modified-Since header - if the response returns with a 304-Not Modified will that use one of my call allocation? Also can the If-Modified-Since if supplied in a list ...
1
vote
1answer
34 views

Batch Apex Governor Limit and Managed Package

If a certified managed package initiates batch apex, does it come under governor limits of native org for batch apex? e.g. per documentation: The maximum number of asynchronous Apex method ...
1
vote
1answer
35 views

skip duplicate records

Scenario: 500 records of contacts will be getting to endpoint 'https://nurtureapi.nurturehq.com/sfdc/contacts' Which i want to insert this part i have done. if next time same contacts are found then ...
3
votes
0answers
35 views

Batch performance impact of Database.Stateful

I know that a Batch will generally run faster when the Database.Stateful marker interface is not used. What I don't know is, how badly the serializing and deserializing of state between each execute ...
0
votes
0answers
107 views

Too many DML statements: 151 - no DML in a for loop (that I can see)

I'm trying to build a newsletter manager that allows users to easily update and clear newsletter campaign members based on their subscription and region without having to run multiple reports. I've ...
0
votes
1answer
21 views

Error using Limits class

Following is the code where Salesforce is showing error: "Compile Error: Variable does not exist: Limits" if(updatedContacts.size() + Limits.getDMLRows() > Limits.getLimitsDMLRows()) { // ...
0
votes
2answers
29 views

Error: Creating a Formula field referencing another Formula field

I'm using the following formula in order to show color coding: And the content of CS_CaseAge__c are as: IF(ISNULL(ClosedDate), (FLOOR(( NOW()- CreatedDate)*24)) + ROUND(((( ((Now() - ...
-2
votes
1answer
48 views

Batch Apex Doubt

Im writing a Batch APEX prgoram. The program works but it doesnt follow Governor Limits since I have used select statements inside for loop. The data in the 2 Objects is as follows. Object 1: Id ...
8
votes
1answer
92 views

What does Limits.getAggregateQueries() represent?

Per the Limits class documentation, there are a pair of methods for "aggregate queries": getAggregateQueries() Returns the number of aggregate queries that have been processed with any SOQL ...
0
votes
1answer
141 views

Heap size limit when uploading file using Visualforce page

I have a visualforce page which has control. I am using this to upload a text file. I have property of type Attachment in my controller. Value of inpufile control will be Body of Attachment property. ...
0
votes
0answers
44 views

SOQL: Too many query rows even when only 1 is returned

My question is in addition to the issue described here: System.LimitException: Too many query rows: 50001 What I don't understand is that my query only returns 1 row so how is it possible that I'm ...
2
votes
2answers
43 views

How to manage the cumulative time callout limit?

i searched aroud a solution, but I didn't found someone that already made the question. I'm searching an approach to calculate the value of the cumulative time spent in callouts... I checked the apex ...
2
votes
0answers
30 views

Append content to a document

I need to create a huge document. Naturally I face up the apex's limits such that heap size and string length. I can split the creation of the document using a batch job. I thought to create the rows ...
1
vote
1answer
85 views

regex too complicated error when using split function for less than 1M characters

I am working with an attachment in Salesforce. this is a text file with 7291 rows and each row has 94 columns. I am able to read this attachment record as "Attachment". I am also able to convert ...
0
votes
2answers
155 views

AddAccountTeamMember : System.LimitException: Too many DML rows: 10001

Please Help me the Following Code when i Ran "AddAccountTeamMember: System.LimitException: Too many DML rows: 10001" public class AccountTeamMemberExample{ public static void ...
4
votes
1answer
45 views

Are Force.com Platform limits, per org or per name space?

Within the Salesforce Governor Limits docs, there are many limits that operate at a platform or org level as opposed to at a transaction level. I understand the detail and working of these, but wanted ...
1
vote
1answer
38 views

test method to test for LimitException

I want to simulate LimitException error on StandardSetController which can only return max 10000 records. So I am trying to create a test method which creates more than 10000 records and then try to ...
5
votes
2answers
157 views

Concurrent Batch Job Limit of 2?

Under what circumstances does an org have a concurrent batch job limit of 2 rather than 5, and is there a way to determine this in apex? We have code that assumes that 5 batch jobs can be scheduled ...
0
votes
0answers
103 views

Difference between Apex Heap Size and JSON heap size

Helllo, I am getting a specific error of "JSON string exceeds heap size limit" . I can not find reference specific to JSON related to heap size. I know we have Email Heap size of 36 MB, while ...
0
votes
1answer
29 views

Site bandwidth limit and request time set at sandbox values in a production org - increase via support request?

Just noticed that a customer's (enterprise) production org has in the "24-Hour Usage History" panel of a Force.com Site: Bandwidth Limit: 1 GB Service Request Time: 30 minutes These correspond to ...
6
votes
1answer
72 views

How to best analyze limit problems in the Developer Console

I have a somewhat complex piece of code that runs into Limit Exceptions under some circumstances. The complexity comes from: Code is in manages extension package, the base package itself depends on ...
3
votes
2answers
276 views

Number of synchronous concurrent requests for long-running requests that last longer than 5 seconds for each organization

The title is one of the limits of salesforce. Link : https://www.salesforce.com/us/developer/docs/pages/Content/pages_apex_governor_limits.htm but I'm not understanding in a full way the meaning of ...
3
votes
1answer
248 views

Does scheduled Apex use synchronous or asynchronous governor limits?

People tend to lump "batch" and "scheduled" Apex together, given that the former is often invoked from the latter. The way they're talked about, it's easy to think that they are both examples of ...
-1
votes
2answers
67 views

How to resolve the apex Governor limit exceptions?

i am newly move into salesforce. am facing some exception problems. For example: In my Controller, lot of insertion and updation of data. whatever the Trigger i have inside my all, they are getting ...
0
votes
0answers
15 views

Batch apex error “Apex CPU Time limit exceeded error” [duplicate]

I have created batch apex class to insert records into salesforce but i got an error i.e."CPU time limit exceeded error" Please help me to solve this error. global virtual class InsertProductData ...
3
votes
2answers
95 views

Heap size limit in Javascript Remoting method

I'm fairly sure that Remoting is Asynchronous. The docs state that the Apex heap size limit is 6Mb for a Synchronous op, and 12Mb for an Asynchronous op. However, from my RemoteAction (@Readonly) ...
2
votes
1answer
146 views

Web Service limits for inbound calls to managed package

I am developing an AppExchange managed package intended for multiple organizations. I have a web-service in the managed application which I will invoke from my java based server to achieve few ...
6
votes
1answer
66 views

REST API - Sforce-Limit-Info header not returned

I'm using SFDC's REST API to access org data. According to the docs (https://www.salesforce.com/us/developer/docs/api_rest/Content/headers_api_usage.htm), each request to the REST API should return a ...
3
votes
1answer
119 views

Using @future tag on Apex Webservice but code not executing asynchronously

With the winter '15 release over the weekend some mission critical code for us is now getting the infamous "Apex CPU time limit exceeded". It worked fine for the past 8 months until this release. (as ...
3
votes
1answer
400 views

System.AsyncException: Database.executeBatch cannot be called from a batch start, batch execute, or future method on batch within batch

I am attempting to call a batch within a batch. The reason why I am attempting this is because the values returned in the main batch is used in a query to grab other records to be updated from a ...
1
vote
1answer
227 views

Batch apex error in apex job : Exceeded max size limit of 3000000

Using Batch apex i am trying to Insert new records in to custom object from json string in salesforce from API url. When my batch apex class run i got this error in apex log. please explain me
1
vote
1answer
245 views

How to manage the governor limit : Maximum number of Apex classes scheduled concurrently : 100

I launch a batch which call a lot of scheduled job. But I reach the governor limit : Maximum number of Apex classes scheduled concurrently : 100 I'm wondering what happens when this limit is ...
3
votes
1answer
265 views

How does API request limit count

Our org has hit API Request Limit again yesterday which is 25k in 24 hours. Since it is not a small number I am wondering how does that count. Suppose we were running a test class, how many API calls ...
8
votes
1answer
137 views

Group by Rollup: Visualforce Remoting Exception: Too many query rows: 1000001

I have 557,029 Foo objects in my org. I want to count how many of each kind of picklist value there are within these: Type 1 - 100,000 Type 2 - 60,000 Type 3 - 40,000 Type N - N I thought I could ...
0
votes
3answers
300 views

System.LimitException: Too Many SOQL Queries: 101 in Trigger

Following is my trigger I get the following error System.LimitException: Too Many SOQL Queries: 101 in Trigger Here is my trigger trigger SubscriberUpdateTrigger on Subscriber__c (after Insert, ...
3
votes
2answers
64 views

What is the importance of Heap size limit?

I don't understand the importance of heap size limit of 6MB. So could someone help me understand the heap size limit?