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 ...
1
vote
1answer
17 views
Trapping “Maximum size of callout request or response” exception
Salesforce limits: "Maximum size of callout request or response: 3MB", is there a way to "trap this exception", to gracefully handle responses that end up being over 3mb? I'm hitting these limits and ...
3
votes
2answers
50 views
Centralized Apex Batch Management with a constantly running worker batch class
Just assume you had an app that would have to process huge amounts of records in an org in multiple ways each day. For each "way" you have a separate Batchable class and those are triggered ...
1
vote
1answer
21 views
Issue with Request time Limit governor exception on force.com sites
We are currently working on a UAT phase for a force.com site implementation where we have custom visual force forms running upto 70 steps. We are currently facing request time governor limit exceeded ...
4
votes
1answer
33 views
Custom Settings in Managed Package limits
So I have a use case where I will have many custom settings and each custom setting has many fields so easily getting in several MB of custom settings data.
If I put this into a managed package where ...
1
vote
2answers
56 views
Custom Logging, how to bypass Limit Exceptions
I'm developing a custom log system for Blackbox Testing.
The goal is to log everything until transaction ends or an exception is thrown - even if apex throws a Limit Exception and rolls back all ...
1
vote
1answer
57 views
More than 50000 items inside a list in apex
Can we store more than 500000 items into a list in apex? I tried this and is working fine. So the limit of 50000 has been lift up? When this update was made to salesforce? any idea?
1
vote
0answers
47 views
Which type of enterprise software cannot be build on Force.com? [closed]
Having reached nearly every Governor limit in the last time I would now state that even with the knowledge and application of all best-practices in this space there are limitations when it comes to ...
-1
votes
1answer
56 views
@future to reduce number of Soql Queries
Say Suppose I'm having 150 Records in a Custom object and I will display 100 records in a Vf page.When I select all the records and process then what happens is based on criteria,these fields will ...
0
votes
1answer
64 views
Too many SOQL queries: 101 in apex class. How to count results?
List<tempcon1> listoftemp;
CheckContactController chk = new CheckContactController();
public List<tempcon1> getconValues() {
listoftemp = new List<tempcon1>();
for ...
2
votes
1answer
31 views
Governor limits in relation to System.setPassword
I can't seem to find how to bulkify System.setPassword(Id, String) method to set passwords for multiple users at once.
Can it be done? If not, what governor limits I might potentially hit?
2
votes
1answer
38 views
Error in inserting a sobject in batch apex and passing the same object in webservice call
i need to
Insert a List of Sobject
Pass the ID of SObject that has been inserted in to a webservice call.
This has to be done in Batch Apex since it needs to run on a daily basis.
Now i have done ...
1
vote
1answer
35 views
Heapsize problem on VF page
I am VF page which display records for a custom object. When there are a large number of custom records - I get: HEAPSIZE 6014176 error on page.
Any tips?
2
votes
1answer
20 views
Do governor limits changes for schedulable tasks?
I have a scheduled task which reads data and then sends out an email. In some cases the data returned can be very large and I am wondering if I need to make this a batch job or not. Basically what ...
3
votes
1answer
47 views
TotalRequests Limit exceeded error using force.com IDE
We have a trial org and we currently have 7 developers working on the org. Currently all our developers are getting an error which is TotalRequests Limit exceeded if we use the force.com Ide. Do you ...
1
vote
1answer
45 views
How can I find the total size of a project
I'd like to increase my test coverage from 73% to 75% for Production. I am now increasing coverage on classes in Sandbox. I know how large are those classes without comments from Apex Classes page.
...
5
votes
1answer
67 views
Performance of objects with many relationship and formula fields?
I have the need to create a denormalized, flattened view of multiple sobjects in Salesforce.com. In numbers this means 20 Lookup fields, around 100 text formula fields to extract data from those ...
6
votes
2answers
118 views
Governor Limit question: Large data set. How do I avoid hitting governor limits?
We have a pretty complex trigger suite on our org. We've built a lot of custom functionality. I'm starting to worry about governor limits and not really understanding how to manage them. I've read ...
1
vote
2answers
53 views
How to find org's date of creation?
I want to know if my org was created before Winter '12 so that the higher outbound email limit will apply. How do I find my org's date of creation?
2
votes
1answer
70 views
Do Governor limits apply to downloading files?
Governor limits include
Maximum size of callout request or response (HTTP request or Web services call) - 3 MB
Does this include downloading files via HTTP from external servers? Will those ...
5
votes
1answer
96 views
Using limit in SOQL subselect.
I wish to get the top 5 opportunities for each user.
I do:
SELECT OwnerId, Amount, Probability, ExpectedRevenue
FROM Opportunity
WHERE isClosed = False
AND Opportunity.OwnerID IN :userIDs
AND ...
5
votes
3answers
211 views
50,000 query row governor limit
I have a read query in a batch class which in orgs with a lot of data can bring back over 50,000 records and violate the governor limit. My question is it possible to do a count query, realise that ...
1
vote
2answers
95 views
How to build a Stackexchange-like search while typing in Salesforce
We have an internal defect tracker in Salesforce which should have much more of the charming features of Stackexchange.
One feature that I love the most is the live-search for duplicates while ...
4
votes
3answers
195 views
SOQL aggregate query limit
I'm trying to use aggregate queries to save work and script statements. The object has a field for each month representing energy usage for that month for a building.
In situations where a building ...
0
votes
1answer
115 views
How to handle SOQL max query limit
On a project I'm working on I'm starting to get the SOQL maximum query limit. Of course, I can use the debug logs to view all the queries to investigate. But that would be time consuming and ...
3
votes
1answer
82 views
Too many script statements (in a patch org only - OK in dev org)
I have a schedulable class in my managed application.
(I feel that some of the code I am about to discuss is not good code so in my defence I want to clarify that I did not write this code - I just ...
2
votes
1answer
138 views
How to avoid Too Many SOQL Queries
I know that the reason for this it's because I have a query that it's executed inside a loop, but I don't see how to redesign the code to avoid this. Any help will be appreciated.
Basically, I have a ...
5
votes
2answers
372 views
SOQL Query Limit and Data Loading
I have a philosophical question about the SOQL Query limit. What I mean by that is I don’t want to talk about specific code – just the design requirements that are leading to code.
I am new and while ...
16
votes
2answers
1k views
How to reduce a large internal view state / what is in the internal view state?
I'm building an account search page that lets users select accounts and then pass them to other pages to perform various actions on them. Unfortunately users are reporting hitting the view state ...
11
votes
2answers
842 views
How can I determine how many future calls have been executed in 24 hours?
I just ran into a huge gotcha in Salesforce: the 24 hr limit on # of future calls - cf. http://www.sundoginteractive.com/index.php?/sunblog/posts/governor-limit-gotchas-part-1-the-future-call/.
I ...
5
votes
1answer
112 views
Submit records for approval in bulk without hitting DML Statement limit
I've got code to create and submit for approval a custom object.
I'm running into the DML statement limit.
As far as I can see each record I submit for approval takes up a DML statement, but there's ...
1
vote
2answers
213 views
Question on Bulkification/Governor Limit of Code
Is the code below ready to handle bulk changes? Is there a limit to how many Accounts I can be bulk updating with this trigger active?
Trigger:
trigger transferRelationshipTeamFromAcctOnAcctUpdate ...
2
votes
2answers
926 views
Schedule apex class to run every minute as there can only be 5 batch jobs
I have a need to execute the Apex class every minute.
I have a Sites VF page and in that I have link called "Export to Excel" which exports bulk data (say 50000 records of my wrapper class type) ...
1
vote
1answer
201 views
Trigger SOQL on Parent/Child/Optional Child situation (Too many SOQL Queries)
The following is a part of an AFTER trigger that I have written.
It works fine - on 1 record... but when you get a few more than 1 I am getting the Too Many SOQL Queries error.
The first select ...
2
votes
2answers
169 views
Performance of sites and Authenticated Website User Type
I have to develop a "private" auction site based on data already stored in Force.com platform.
Develop a site with Authenticated Website User Type is a viable way? I'm worried about perfomance and ...
3
votes
4answers
513 views
Non-selective query against large object type in trigger
The Alert__c object has a Rule ID field, which is just text, and a lookup to the Master__c object. I have a trigger on Alert__c, which when runs after insert, update or delete. It collects the Master ...
8
votes
1answer
478 views
Time limit exceeded and 'Response size exceeded 30MB organization limit' and Semi-join subselects not allowed
Am getting a time limit exceeded error when am trying to pull a set of records through database.getquerylocator and binding it to vf page (jqgrid).
I have about 80000 records but am limiting it to ...
7
votes
5answers
753 views
Are there best practices to get scheduled apex scheduled to run faster than once per hour?
When trying to set up a schedule to run every 5 minutes I got an error that seemed to indicate that you can't schedule apex to run every X minutes or every Y seconds. It appears the fastest you can go ...
3
votes
3answers
218 views
What are your options if you start to run in to @future method invocation limits?
Salesforce limits all account types to 200 future method invocations per full paid license every 24 hours. Are there any known options to increase this limit? If you start to run in to this is your ...
7
votes
1answer
713 views
Detecting governor limits through apex
Is it possible to programatically detect if you have reached a governor limit?
For example, you can make 200 future calls per license per 24 hours. IF you hit that limit SFDC just starts to blow up ...
6
votes
3answers
514 views
Viable design for multiple batch jobs
I've recently run across multiple needs to execute multiple different batch jobs at the same time, and almost immediately hit the (somewhat inexplicable) SFDC limit of 5 batch jobs queued at once.
...


