Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [governorlimits]

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

Query Limit on Batchable Class

What is the best practice with governor limits with Batchable classes and queries inside of the Batchable class? I am running into query limits with a Batchable class because I have too many ...
3
votes
0answers
44 views

Synchronous concurrent transactions limit

I know that the following limits exist in salesforce: Number of synchronous concurrent transactions for long-running transactions that last longer than 5 seconds for each org : Limit 10 Concurrent ...
0
votes
2answers
47 views

Heap size LIMIT

I'm trying to reduce the heap size limit while a program is running - I'm doing it by taking the data (a list for example) and after I'm using it, I'm assigning the instance to a new List : Example: ...
0
votes
1answer
40 views

Too Many SOQL queries: 101 Exception

trigger SoM_RequestCancelledOnFeePayment on SoM_Request__c (after update) { if (!SoM_Utilities.gs.Disable_Triggers__c) { List<MUSW__Fee_Payment__c> feePymtsToUpdate = new List<...
1
vote
1answer
44 views

Salesforce limit of synchronous rest service

I have to implement in salesforce many inbound synchronous rest services. What are the salesforce limits that I have to consider? I found only the following: API Requests. A long-running API request ...
2
votes
2answers
65 views

Map / Trigger / Governor limits

While studying for my Platform Developer 1 exam, I came across this line. Could someone please explain how this is the case? Question: How can a developer avoid exceeding governor limits when using ...
0
votes
1answer
31 views

Optimal number of records per batch

I have a problem executing a batch in some limit cases that i want to cover to avoid future concerns. The scenario is the following: My batch works on n(reasonable high number) records of the same ...
1
vote
1answer
179 views

Governor Limits on Salesforce Government Cloud

Considering Salesforce Government Cloud is a partitioned instance running on dedicated resources (and also because it's for government needs), are governor limits more relaxed for these instances? ...
1
vote
2answers
316 views

Limitation on external system calling Salesforce

Is there any limit on how many times an external system can call Salesforce to get data? For example, ETL Tools, Mulesoft etc.
0
votes
0answers
17 views

Outbound Email with attachment limitation

About attachments that need to be sent inside an email - Using the SingleEmailMessage method, Apex. I little confused, I saw a lot of documentation that talked about 10MB for all the attachments ...
1
vote
1answer
41 views

Can we avoid 'Attempted to schedule too many concurrent batch jobs in this org' error using Apex flex queue?

We have a batch class AccountDeactivationBatch from whose finish() method we run 3 more batches, including AccountDeactivationBatch again, but with new set of Ids. These new set of Ids are all ...
0
votes
2answers
79 views

Trigger error - Too many DML rows: 10001

I have tried to optimize the code, but still it throws the error: Too many DML rows: 10001 Below is my code: if(setAccID != null && !setAccID.isEmpty()) { list<Custom__c&...
0
votes
3answers
65 views

Avoid 'Apex CPU time limit exceeded' with Batch Process

I encountered this error and have trouble with performance tuning. I tried asyncronous approach, but Apex CPU time limit exceeded occurs continuously. Anybody can make it more efficient? Here is ...
1
vote
2answers
300 views

Batch APEX requiring two queries and hitting limits

I have a batch APEX class that is used to delete any contacts that have been created over a year ago and have no related opportunities. I have queries for the contacts in the QueryLocator. I am then ...
4
votes
1answer
64 views

SOQL Count() limits

Summer '18 changed Count() impact on query row limit from "number of records matched" to 1. Is there still some form of a limit, like selectivity criteria related limits, or can an arbitrary number ...
4
votes
1answer
52 views

Transactional governor limits and managed packages

My company is looking to install a very large managed package into our org, which has a significant amount of custom apex as well as several other large managed packages. As we test the package in ...
1
vote
1answer
57 views

MC AMPScript RetrieveSalesforceObjects() hitting governor limits

Imagine a scenario where we have a Marketing Cloud connected to a Sales Cloud. Around 1500 campaign members will enter a journey at approximately same time and then each of those members will receive ...
0
votes
1answer
124 views

REQUEST_RUNNING_TOO_LONG

First error: [REQUEST_RUNNING_TOO_LONG] Your request was running for too long, and has been stopped. I was looking at What causes REQUEST_RUNNING_TOO_LONG test errors?. I was guessing because its a ...
0
votes
0answers
30 views

Did not receive exception email in production

We usually get exception emails to our admin from the production. I have a asynchronous code running in production @future public static void processRecords(String FIMCJSONRec) { ...
0
votes
1answer
53 views

Batch Apex Chaining Limits

I have seen Apex Batch Job Chaining Limits, but my questions is little bit different so still wanted to confirm. I was looking to chain 3 batch classes. Below would be number of batch classes. ...
6
votes
1answer
168 views

Lightning component limitaion

Just wondering -- How many records can be shown on a lightning component without doing the pagination. Do Components have the limitaions just like that of VF pages?
0
votes
2answers
56 views

Governor Limit Exception and Finally blocks

We all know that if you hit a Governor Limit Exception, your code/application will terminate with an unhandleable exception know as a Governor Limit Exception. My question is does your code ...
0
votes
2answers
124 views

Clear platform event limits?

Where can I find clear docs on the API limits for sending platform events IN to sfdc? The platform events basics trailhead notes that: provides allocations for how many events you can define in ...
0
votes
1answer
23 views

Estimate the number of queries per month

Is there any way to estimate the number of Queries per month in a salesforce instance?
0
votes
1answer
22 views

passing an instance of the class Limits

There is a class Limits that allows to keep track of the governor limits. I need to capture 6 of the governor details of this class, that is why I need to pass an instance of the class Limits to a ...
0
votes
1answer
43 views

parent-child relationship subqueries not contributing to governor limits

As per the article Execution Governors and Limits In a SOQL query with parent-child relationship subqueries, each parent-child relationship counts as an extra query. The row counts from these ...
3
votes
2answers
66 views

How many DML statements will be execute for below code?

Below is the logic/Method i have built to eliminate error while inserting case Object. Consider a example when i try insert case object inside try block, if it is throwing an error while inserting, I ...
0
votes
1answer
32 views

Maximum number of children allowed in a parent-to-child lookup relationship

Is there any limit on the number of children a parent can have in a lookup relationship? If there is no limit, Is there any good practice guideline with regards to the number of children added to a ...
3
votes
2answers
43 views

Why is my Trigger running this many times on one order update?

I was hitting SOQL query limits in my Test class so I thought I'd test things out with some Limits.getQueries() bench-marking. I replicated the use case that would fire the trigger on 1 Order and ...
1
vote
2answers
38 views

What is the maximum number of records which can be insterted in Apex REST calling a POST method?

I have an Apex REST class with a POST method: @HttpPost global static List<Id> doPost(List<TaskWrapper> tasks) { List<Task> tasksToInsert = new List<Task>(); for (...
2
votes
1answer
279 views

Heap size error

I'm facing the error similar to given here (First error: Apex heap size too large: 12000354) to avoid this what I'm trying to do is, I'm inserting the csv file when my first batch run and then in sub-...
1
vote
2answers
114 views

Apex CPU timeout: has it been increased for synchronous transaction?

I was just trying out some code and accidentally found that the code was running more than 10s. I was able to make the code run (anonymously from dev console) upto 15 sec beyond which it timed out. ...
0
votes
1answer
22 views

How can I report on Salesforce's 'External Email limit' for my specific organization?

I was looking at the Governor Limits page: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm And I wanted to see if we can see how close our org comes to ...
2
votes
2answers
95 views

Determine whether Apex transaction is asynchronous

According to the Execution Governors and Limits the limits for either synchronous or asynchronous transactions can vary, that is why I would like to check whether my current apex transaction is ...
0
votes
1answer
176 views

Difference between dataloader and dataloader CLIq and dataloader.io? [closed]

Can any one explain difference between normal data loader and data loader CLIq and dataloader.io? and What are the governor limits?
0
votes
1answer
48 views

How to query Id and Name for multiple SObject types without a for loop?

I know having a query in a for loop is bad practice because you can easily hit the governor limits but am having trouble working out a better way. What I'm trying to do is get the Id and Name of all ...
3
votes
0answers
173 views

Bulkify existing flow to avoid SOQL Limits?

I currently have a flow that looks up and passes the ID of a Fire Department into an object called Service Plan. The Fire Department is found by looking up the BillingCity on the Account associated ...
1
vote
1answer
55 views

How to use this getLimitQueryLocatorRows() before actual query

I want to make use of getLimitQueryLocatorRows() before i use the below code and throw exception or custom error message accordingly. Is this possible? SetCon = new ApexPages.StandardSetController(...
1
vote
1answer
95 views

What exactly is execution time limit of 10 minutes?

Execution Governors and Limits documentation says that Maximum execution time for each Apex transaction is 10 minutes for both Synchronous and Asynchronous To understand this I executed the ...
0
votes
1answer
106 views

SOQL Query Limit to 50000 records

I was wondering if there is any way of updating an account field in APEX if i have the account ID in the Triggered Object. Right now i am running into the issue that I can not do the following (...
0
votes
2answers
47 views

how to programmatically identify Salesforce Governor limits are hit? can i create a workflow each time when governer limits are hit?

I need a way to programmatically identify Salesforce Governor limits and get an alert when the limits are hit.
0
votes
1answer
27 views

Report from Custom CSV Visualforce hits CPU Limit but works after reloading page

I have a Visualforce page that exports a custom CSV File. This report is very big and have a lot of processing on it thus causing sometimes CPU Limit. The problem is that for some users always on the ...
1
vote
2answers
305 views

How can I know the Rest Request and Response size?

I am writing an Apex Rest web service and I do not want to hit the cap of 6 MB on request or response payload or the 12 MB limit for asynchronous APEX. But the size of the request and responses are ...
0
votes
2answers
56 views

Seeing the View State for a page in a managed package in customer orgs

We have a managed package that we have installed in customer orgs. One of the pages shows the error below when loaded: I know I can go to user settings and turn on "Developer Mode" and "Show View ...
4
votes
2answers
108 views

What user actions cause an API call?

Recently we have hit the API call governor limit and since then we are looking at the administrative report 'API Calls Made Within Last 7 Days'. The Salesforce documentation states What counts ...
1
vote
3answers
173 views

Mass Updating Accounts( more then 20k) in Production through developer console

I have to run manual one time script on produciton for mass updating accounts. I would need help for best way so that below scripts would not hit apex limits. Is there any other way by which i would ...
3
votes
1answer
704 views

How do processes consume SOQL queries?

I'm currently using processes to update records. The ills describing of using the process builder are known to me, but I need more information on how 'Update Record actions' in a process are bulkified....
1
vote
1answer
230 views

How is calculated “24-hour period” for the limitation of Asynchronous Apex Executions

I have a question regarding Execution Governors and Limits for daily maximum number of asynchronous Apex method executions. In the Salesforce documantation it is written, that the maximum number of ...
7
votes
2answers
155 views

Do Lightning callbacks (in Promises) get their own scope/governor limits

My apps use promises (using the Lax library) quite heavily and I have seen that different callbacks often produce their own log in the Dev Console. Does this mean that: Each callback gets its own ...
0
votes
1answer
285 views

Aggregated Query Too many query rows

I have this aggregated query which seems to return only 1050 rows but still I am getting a limit exception. This is the APEX query: AggregateResult[] groupedResults = [SELECT COUNT_DISTINCT(ID) cnt, ...