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
2answers
24 views

Running into Trigger Depth Limit

I can't seem to get my head wrapped around this one. We have main account that has many child account and what I'm trying to do is to use a trigger to automatically add up a field (eg. FieldA) and ...
1
vote
1answer
18 views

Do emails sent by workflow rule count towards processing time?

Our app contains a workflow rule that sends an email to the user when a case or lead is assigned to them. The email template contains a component with a controller that uses soql to populate the email ...
2
votes
0answers
16 views

Time Based Workflow - Records not getting added to the queue? or Queue limit exceeded?

What is the Maximum size of the Time Based Workflow Queue? I'm not able to find the record which are satisfying the rule criteria in the queue. The Workflow queue shows only 1000 records for a search ...
1
vote
1answer
12 views

Current email invocations count by org

I have developed a pretty cool, reusable piece of apex code that allows a user to define which fields on a given object that are of interest when field values change. When a field changes on an ...
2
votes
2answers
198 views

How to paginate > 10000 records. SOQL OFFSET and StandardSetController too limiting

I am working on pagination and i am able to display my records on my VF page and i have done pagination to get the record get display. But the pagination work only when the no of records is less than ...
3
votes
4answers
36 views

Is there a limit on HTTP Callouts within 24 hours?

Can someone please help me out with this: "What is exact no of HTTP callouts we can make in 24 hours?"
3
votes
1answer
22 views

Do emails sent with addresses set in setCcAddresses count against the daily email limit?

Will emails sent with values in setCcAddresses for external users count against our daily email limit?
0
votes
1answer
42 views

Hitting future call limit with Geocoding trigger

This trigger seems to work pretty well for Geocoding accounts... trigger AccountGeocode on Account (after insert, after update) { system.debug('AccountGeocode trigger fired'); ...
0
votes
1answer
67 views

How can I replace a SOQL in a loop by a list?

I am hitting the governor limits on Event object and I need to change some lines in my Apex Class to avoid SOQL statements in For Loops. I got this affirmation from the support. Someone could help me ...
1
vote
1answer
61 views

How to refer one chatter:feed component for two custom objects in a page?

Could you please suggest on this? Requirement is to create a "News Feed" page for records from two custom objects. I am able to use a component to get the feeds for records from one object but ...
0
votes
2answers
114 views

HELP : System.LimitException: Too many SOQL queries: 101

This is my first trigger, on my custom object Affaire: Trigger MissionrollupAffairesDossier on Affaire__c (after delete, after insert, after update, after undelete) { //Cumul de montants d'affaire ...
1
vote
2answers
84 views

Internal Salesforce.com Error MAXIMUM DEBUG LOG SIZE FATAL_ERROR|

Please help, I am not sure what is going on. I have an email service which is processing file attachment. Yesterday it was almost ready to go to production. I just finalized some test cases. Then ...
2
votes
1answer
110 views

Third party API has callout time limits: how to catch with error handling, and how to control callout timing?

The third party API I'm working with (Act-On, a marketing software), has a limit of 5 callouts per minute in their sandbox. Unfortunately for me, some of my code requires that I loop through a series ...
7
votes
2answers
136 views

Getting record count through WebService bypassing LIMITS

I have written the below web service class to return record count. But it is returning the following message "System.LimitException: Too many query rows: 50001". How could I overcome this limit? ...
1
vote
1answer
56 views

Describe limits for objects with a lot of picklists from remoteTK

we are using remoteTK on a salesforce project and its working great except for one very specific issue. We are hitting governor limits with describes for one of the objects. IT has 150 picklists ...
9
votes
1answer
104 views

Total number of SOQL queries issued

In a SOQL query with parent-child relationship sub-queries, each parent-child relationship counts as an additional query. These types of queries have a limit of three times the number for ...
3
votes
1answer
95 views

Custom Settings Limit: Cached data limit

Perhaps a silly question? In the Limits reference regarding custom settings we see "Custom Settings: Cached Data Limit" Where the limit is described as: The total amount of cached data allowed ...
3
votes
2answers
414 views

Help with :Too many SOQL queries: 101 - How to debug where it's failing

Having a problem with below code reaching too many queries (we have Hubspot and I'm receiving the error on HubSpot_Inc in my tests).I avoided using queries in loops, so looking for suggestions on how ...
1
vote
2answers
130 views

Organization detail shows API Requests, Last 24 Hours 298 (5,000 max). What are the variables contributing to the API requests?

When i check the Organization detail for the API usage for the day, it shows API Requests, Last 24 Hours 298 (5,000 max). According to my knowledge i did not made any API request. But i worked in ...
2
votes
1answer
142 views

Too many callouts 11 while testing using webservicemock interface

i have written a test class for a controller in which one of the method makes a callout. This is one single invocation of external SAP webservice. But my debug log shows more than 10 invocation of the ...
0
votes
0answers
41 views

Get Chatter Topic Limits via Apex

I know that the current governor limit allows only 10 topics in single chatter post thread. Is it possible to get this limit using apex, via the Limits class for example? This would allow the code ...
5
votes
1answer
710 views

Apex CPU time limit exceeded

I just got this error when trying to deploy new components to Prod. It's happening on Apex test classes that already exist in Prod, not new ones in my change set. I understand that this error relates ...
4
votes
1answer
42 views

Sites governor limit on unauthenticated users?

Are there any limits around how many simultaneous unauthenticated/anonymous/guest users can view a site at a given time? I could've sworn that there was a limit that meant there could only be 10 ...
1
vote
2answers
127 views

Sending a SOAP web-service for each Lead insert

I have a requirement where I have to send out a web service to a third party system every time a Lead is inserted. I can do it by calling the web service via trigger. However I want to make sure that ...
4
votes
2answers
124 views

Email relaying and email limits

According to the documentation there is a limit of 1000 emails per day if sent from APEX or API. If I had configured an email relay, would sending out an email from APEX count towards the email limit ...
1
vote
1answer
59 views

How to check API call requests from perticular user in salesforce on daily basis?

Is there any way in salesforce we can measure/check how many API calls specific user consumed/made? we need this to identify if any integration user is eating up most of the API calls and is there ...
1
vote
1answer
73 views

Managed packages governor limits

Is salesforce more lenient towards managed packages? I mean do they let the code in managed packages get better governor limits? Also, What should I choose? Managed packaging or Unmanaged packaging?
0
votes
1answer
21 views

First deployement questions

I am ready to deploy my first project, I have a couple of random questions before that 1) I have a form and I am performing insert operation after all the fields are entered and submitted. Here I ...
3
votes
1answer
67 views

Messy Change Log Levels Window

I'm trying to change the log levels in the Developer Console to display the transaction Limits , but I noticed that the window now displays +30 Settings, so I have no idea which one I should update. I ...
0
votes
0answers
34 views

Can we post into multiple linkedin groups at one instance using group API of linkedin

I am trying to post into multiple groups of linkedin using linkedinAPI http://api.linkedin.com/v1/groups/{group-id}/posts This works fine with a single group. I cant find any documentation on ...
2
votes
1answer
263 views

Does the “Total number of records retrieved by SOQL queries” governor limit apply to sub-selects?

I have a requirement to change the status of any Contact (master object) that has had a Booking (detail object) but not in the last 2 years to "Inactive": Date d = Date.today().addYears(-2); ...
2
votes
1answer
58 views

Find out if field is of type Currency without consuming Describe's?

Parts of my code copy hundreds of arbitrary fields of an arbitrary object to another object. Before copying currency fields I want to do some fx conversion. How can I find out if a field is a ...
3
votes
1answer
151 views

Is it possible to combine result-sets in REST API query?

I'm creating a sync engine for a mobile app, and I want to get meta data about the state of a whole lot of different objects in as few API calls as possible. Is it possible to pass more than one SOQL ...
9
votes
1answer
515 views

What happens if the Percent of Apex Used reached 100%?

I have an org which has Percent of Apex Used: 89.64% Just curious to know what happens if we reach 100% of apex code. Does the salesforce allow the to write code more than that?
9
votes
2answers
734 views

String length exceeds maximum: 6000000

Are there any work arounds for this issue? I'm trying to upload a file(attachment) to an 3rd party REST API Service. It works fine until my file sizes get about ~5 mb. Then I start getting the ...
4
votes
1answer
662 views

System.LimitException: Apex heap size too large Salesforce

Map sObjectsToClone = Map of child object along with there relationship name. I have to clone each relationship to each opportunity. global List<sObject> start(Database.BatchableContext BC) ...
3
votes
2answers
63 views

Work out remaining singlemailmessage capacity in test

I have an Apex class that does some complicated decisions surrounding whether to send an e-mail to a user or not, including the fundamental "can we send any more e-mails today" check from Salesforce: ...
2
votes
1answer
971 views

System.LimitException: Too many query rows: 50001

What I am trying to do is to set a date in my date field and also update the object. I am using the class below to do so which works just fine in my sanbox but in production I am getting this error: ...
1
vote
1answer
330 views

Getting Child and Grand Children records Query

I would like to get all the records related to a parent which includes the children, grandchildren, great grandchildren etc. What is the best way of writing such a query? The end goal is, I am trying ...
4
votes
1answer
477 views

SOQL for loop and governor limits

With regard to the governor limit of 100 SOQL calls per transaction, does the below SOQL for loop consume one call per chunk or one call across all chunks combined? Map<String, ID> campaignMap ...
3
votes
1answer
65 views

What is Limits.getInteractionQueries() used for?

Browsing the Limits class recently, I saw there was a getInteractionQueries() and getLimitInteractionQueries() method. Can anyone tell me what this Limit refers to? Running the ...
7
votes
1answer
131 views

Governor limits on http callouts

I am having to make a httpcallout from a VF page to get some data from an external source. I can see there is a limit of 10 callouts per transaction Total number of callouts (HTTP requests or ...
2
votes
2answers
116 views

Test if a field is available on arbitrary SObject record without using Describe calls

I have many Custom Objects in my package that have a common custom field Version__c. One part of my app serializes and deserializes records to/from Json. While deserializing I want to change this ...
5
votes
1answer
760 views

Apex Batch job limits not clear Queued vs Scheduled

We have a discussion going on, to know now exactly what the limits are on batch apex jobs. The docs are really not clear on this. In this document it states that "Up to five queued or active batch ...
1
vote
3answers
72 views

Governors Limits for reports

I am developing some kind of customized report functions using APEX and VF. As the conditions are quite complex and I need to query different objects even to get a number for one column for my report. ...
5
votes
3answers
1k views

How separation of Test Class can solve 101 SOQL Queries Limit Exceeded Error?

Recently one of my colleagues was trying to deploy to production some opportunity trigger activation, but during validation deployment two of ten test methods from TestMyMysteriousApexClass failed ...
9
votes
2answers
569 views

Why am I *not* hitting a governor limit?

I have an account that has 626,482 opportunities spread over 1,368 owners. In the Developer Console if I run the following Apex List<SObject> recs = [select sum(amount), ownerid from ...
5
votes
2answers
460 views

How does salesforce calculate DML rows? What is included to DML Rows Count?

Does anyone know how does salesforce calculate DML rows? What is included to DML Rows Count? Consider following code which hits "System.LimitException: Too many DML rows: 10001" ...
6
votes
1answer
502 views

Debug logs still measuring code statements and not CPU time

You'll have to forgive me if I failed to RTFM as to why I'm seeing this, but I was under the assumption as of Winter '14 that Apex execution contexts are no longer measured in code statements, but in ...
4
votes
1answer
654 views

Too many SOQL queries

This question has been asked before, but none of the answers on those threads have helped so far. Getting the following error when trying to deploy a test class from the sandbox to production in the ...