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)

0
votes
0answers
11 views

SINGLE_EMAIL_LIMIT_EXCEEDED [duplicate]

I wrote one trigger for sending mail to admin account. " SINGLE_EMAIL_LIMIT_EXCEEDED". anybody knows the solution? trigger MailToAdminAfterDeletingEmployee on Employee__c (after delete){ ...
0
votes
2answers
36 views

Batch Class CallOutLimit Doubt

As we have 10 callout governor Limit in each execution . So I can query 100 records in start and execute the batch class with batch size as 1 and do 10 callout for each record . So total I can query ...
-1
votes
2answers
66 views

Too Many SOQL Queries 101 though limit 100 [duplicate]

I am getting this error though limit 100 is provided in SOQL statement.Can someone please suggest a way out here? Apex code: public class Attachments_11{ public List<attachmentCaseWrapper> ...
1
vote
1answer
30 views

What Is The Limit On Record Count When Using Upsert in Apex?

When using Apex in a transaction, what is the maximum number of records that can undergo the upsert command? Example: I am consuming a web service (SOAP) that returns me a lot of information. I ...
4
votes
1answer
36 views

Maximum CPU time limit allowed to be exceeded in Sandbox

I recently deployed some code to a production org after significant bulk testing in my Sandbox. There were no problems so assumed it was ok to promote. After promotion however, certain processes ...
2
votes
2answers
142 views

Disadvantages of the Force.com platform - are these (still) true? [closed]

I'm evaluating pros and cons for building an integration with Salesforce on Force.com platform. This time, I'm curious to what extent are the following points (still) valid, since they were made a ...
11
votes
1answer
103 views
+50

Does API calls to Apex REST service published on a public Force.com site come under Daily API Limit

I have a public Force.com site without any pages. I have created a APEX REST service and added it to the force.com site. So the APEX REST service will be accessible public without authentication. All ...
4
votes
2answers
85 views

Governor limit SOQL 101 being suppressed. How?

As far as I know, Governor limits can not be suppressed and will be shown to user on the UI. However I am facing below scenario where SOQL 101 limit is being logged into debug log and not being shown ...
7
votes
2answers
305 views

Handling Large JSON String Values on Visualforce Page

I'm using amcharts to build graph on a visualforce page. The amcharts's input is JSON. So I parse my object to JSON string using JSON.serializePretty. Using this approach, the graph is built fine and ...
4
votes
2answers
78 views

Batch Apex: Can I run code prior to running 'Execute' code on batches, and will it affect governors limits?

Below is my question in a nutshell, using the framework for a batch apex class: global class ActOn_Batchable implements Database.Batchable<sObject>{ string query = 'query here'; **CAN ...
0
votes
1answer
83 views

Error: 'System.LimitException: Too many SOQL queries: 101' [duplicate]

I am getting an error: 'System.LimitException: Too many SOQL queries: 101' when I run a testing class for another class similar to this one, which is located in the same Object. I am trying to use ...
4
votes
2answers
57 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
34 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
54 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
18 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 ...
4
votes
2answers
890 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
48 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
24 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
73 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
109 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
91 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
156 views

HELP : System.LimitException: Too many SOQL queries: 101 [duplicate]

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
231 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
188 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
169 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
2answers
83 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 ...
10
votes
1answer
141 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
178 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
778 views

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

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
139 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
195 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
51 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
1k 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
54 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
188 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
137 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
70 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
105 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
23 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
77 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
40 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 ...
3
votes
1answer
406 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
63 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
186 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
613 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
1k 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
976 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
81 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: ...
3
votes
1answer
1k 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
510 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 ...