The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [limits]

Salesforce imposes maximum limits on selected features. The stated limits for the features may vary based on the Edition.

Filter by
Sorted by
Tagged with
36
votes
3answers
15k views

Workaround for Offset 2000 limit on SOQL Query

Problem I'm trying to make a standard query pagination. I'm using SOAP API. The logic is classic: LIMIT recordsByPage OFFSET (recordsByPage*pageNumber)+1, It works fine, however, I'm facing the ...
80
votes
3answers
11k views

How does SF calculate the CPU time?

How does SalesForce calculate the CPU Time that was introduced in Winter '14? I am seeing varying results from it. Why does the CPU count vary? I am running a single block of code over and over again ...
39
votes
5answers
23k views

can salesforce handle 50 or 70 million records?

Can salesforce handle 50 or 70 million records? in the past I worked on the org which had 20 million tasks and it was real problem, so wanted to get experts thoughts on what is the impact if we ...
6
votes
1answer
341 views

Is there a 'rule of thumb' on the upper limit of how many related records in related objects an object should have to avoid slow page loading?

Typically, each record in Salesforce will be 2kb large: https://help.salesforce.com/articleView?id=000193871&language=en_US&type=1. However, let's say in an extreme example, the Opportunity ...
13
votes
5answers
2k views

Convert SObject.toString output to a CSV value line (Regexp..)

I am running into ToManyStatements Limits while creating a CSV blob for with the following code for(SObject row: list) { for(String fieldName : allFields) { line += fieldName + ','; } ...
16
votes
5answers
20k views

SINGLE_EMAIL_LIMIT_EXCEEDED. What does it mean?

What does the exception mean? It does not seem to be related to the Number of email invocations limit because of the following line at the end of the log: Number of Email Invocations: 5 out of 10 I ...
11
votes
1answer
8k views

Understanding Rest Apex and Webservice Limit

I'm implementing a webservice exposing an Apex Class. I was reading understanding execution governors and limits and I dont see clear enough the limit for my @RestResource. I only found some ...
12
votes
4answers
18k views

How to query more than 50000 records in apex and bind it in vf page in jqgrid and paging?

How to query more than 50000 records (78000 records) in apex and bind it in vf page in jqgrid and implement paging in it? I tried querying through SOQL and assigning it to list.. Am unable to query ...
13
votes
2answers
2k views

Way to identify API usage and limits using API?

Is there an API method to return how much API calls were used and how much total calls is allowed by my SF org?
10
votes
2answers
880 views

List of Features and Limits which can be activated/increased by the support

There are a lot of features which can be activated and limits which can be increase if you contact the support. As an examples you can log a case to do the following: Activate: Organization ...
18
votes
3answers
4k views

How to test that Apex Batch finish() sends an email?

I have a Batch class that sends an Email from its finish method and want to test that. a But....I cannot test it. The the above test fails as there was no email invocation at all. BUT: I see it in the ...
7
votes
1answer
3k views

What is the longest URI that Salesforce will accept through the REST API?

The Background I was handed a task to populate a developer sandbox with a limited set of data from our production org to allow another dev team to be able to test integration with a third party (with ...
5
votes
2answers
4k views

How do you use Batch for send more than 10 emails?

I have been watching how to implement the batch for sending more than 10 email but I get errors. When I send emails I have a limit 5 and also are sent several times to the same user email global ...
5
votes
4answers
5k views

Create CSV file bigger than 15 MB from within Force application (no dataloader, etc.)

I need to export data to XML/Excel or CSV from Salesforce.com Checking the current limits I just see those options and limitation: Render file via Visualforce page with special Mime-Type <- LIMITS ...
3
votes
1answer
3k views

Salesforce DX daily limits

As a package developer scratch orgs look like a great solution for automated CI testing and Salesforce has even done some great demos using Github and TravisCI to show automatically testing code using ...
5
votes
2answers
833 views

Limits for inline Query

I have an account record having name 'POC', This account has 5000 contacts. Now I am querying in Execute anonymous 1. List<Account> accounts = [Select Id, Name, (Select Id, Name From ...
4
votes
3answers
2k views

SOSL returning maximum of 500 records

I am using SOSL to search records in Salesforce. According to document http://www.salesforce.com/us/developer/docs/soql_sosl/Content/sforce_api_calls_sosl_limit.htm, It should return 2000 records but ...
3
votes
2answers
214 views

How to know current Email governor limits? [duplicate]

I am using SingleEmailMessage api for sending emails. I want to know the email limit quota usage, so that I can prevent further exceptions. Is there any way to know the quota usage in apex, so that I ...
3
votes
2answers
8k views

Return more than 2000 records (SOQL)

I'm trying to retrieve a list of Account objects from Salesforce using SOQL. Originally my query was this: var result = service.query("SELECT Id, Name, RecordTypeId FROM Account"); return result....
3
votes
1answer
1k views

How many recipients can i add in email template alert?

Could you please clarify my below queries on email alert which we have under workflow How many recipients can i add under email alert? Can i add group emailID (Eg. Supportmembersgroup@yahoo.com) ...
3
votes
2answers
5k views

ContentPublication limit exceeded

Is there a limit on the content publication ? Is this the same as content version? The docs say "The maximum number of versions that can be published in a 24-hour period is 5,000. " Does this ...
1
vote
1answer
524 views

What is the limitation on size of list attribute in Lightning component?

We have created a lightning component where we are displaying transaction records. We have used lightning datatable and also implemented pagination. Data that is to be displayed is retrieved by API ...
1
vote
0answers
67 views

how to avoid system.limitexception too many soql queries 101 in apex classes [closed]

when I am trying to deploy the component then I was getting this error like system.limitexception too many soql queries 101 how to avoid this? ====================================== /** * @...
8
votes
3answers
2k views

Build Custom Batch Queue to centrally manage Batches & circumvent the Max. 5 Batches in parallel

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 ...
11
votes
4answers
3k views

How can you avoid hitting 24-hour limits on emails and future calls?

I realize there are plenty of ways to try to avoid hitting limits in the first place, but when it comes to features with 24 hour limit plans, how can you know if you're getting close to them? And ...
7
votes
1answer
3k 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 ...
6
votes
2answers
1k views

Does execute anonymous from Developer Console not enforce heap size limit?

I have been investigating a potential heap size problem in our production code, and I wanted to recreate some simple elements through the developer console. To cause a heap size exception, I would ...
5
votes
1answer
3k views

About the 10 custom objects limitation for community licenses

How is the limit applied? Example scenario: User with community profile has visibility to 10 custom objects, and one of those objects is generated by processing information stored on another ...
11
votes
6answers
2k views

How can I avoid Force.com Sites Limits?

http://login.salesforce.com/help/doc/en/sites_limits.htm There are limitations on bandwidth and processing time. Has anyone run up against these limits? How do people mitigate the likelihood of ...
9
votes
1answer
2k 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 ...
8
votes
1answer
463 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 ...
8
votes
1answer
2k views

“Maximum stack depth reached: 3” when doing String.replaceAll()

I am getting a strange "Maximum stack depth reached: 3" when doing a String.replaceAll() with bigger Regex on a quite big string (40 lines of text). I am trying to remove any comments and literal ...
7
votes
3answers
2k views

Unable to perform a COUNT() query on object with many million records

I have a custom object with around 25.000.000 records and need to perform a single count query to find those records where a field has a certain value. I could get none of the following queries to ...
3
votes
2answers
1k views

APEX Heap size and limit Confusion

Hi So I am trying to understand that what is heap and how it is managed in Salesforce. What I did is created a VF page and a Http callout class, I have stored a large XML on remote server that I am ...
1
vote
1answer
3k views

Understanding Total API Request Limits

I don't understand the total API request limits as explained in the help section of Salesforce. Since I only have access to our client's sandbox environment, I can't see what the limits are in the ...
1
vote
2answers
15k views

Workarounds to avoid Error: “Too many SOQL queries: 101”

I am hitting salesforce limits in 3 cases: When user is adding a document from a large list of docs which is greater than 100? (Eg error when they are trying to pull a document from their library ...
10
votes
3answers
3k 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 ...
9
votes
2answers
835 views

Aura transaction details

I have a fundamental question about Lightning technical design. Today viewing debug logs I noticed that if Lightning component make multiple calls to server-side (invoke multiple apex-controller ...
7
votes
3answers
5k views

Master-Detail Relationship Limit

Salesforce says "As a best practice, don't exceed 10,000 child records for a master-detail relationship." here : http://na1.salesforce.com/help/doc/en/relationships_considerations.htm What does "for ...
7
votes
3answers
644 views

How many single email messages with visualforce templates can be sent in a single transaction?

If I need to send a huge amount of emails to 500+ contacts, each email using one of three visualforce templates (syntax needed for translations is available only on Visualforce templates, with ...
7
votes
7answers
693 views

How to detect and block visual force page from scraping?

We are considering developing a new version of our website (where our customers can purchase and manage certain types of content) on the force.com platform. Looking into the impact of governor limits ...
5
votes
2answers
3k 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 ...
5
votes
0answers
732 views

Apex equivalent of REST api's nextRecordsUrl

When you run a query through the REST api and the number of records returned exceeds the default 2000, or the batch size set in the Sforce-Query-Options header, the query will return a nextRecordsUrl ...
4
votes
2answers
3k views

How do I see how many custom tabs have been created?

I'm trying to create a new custom tab via setup -> appsetup -> create -> tabs. How can I get the exact count for the custom tabs, because I can see only 18 tabs, but it throws an error about the ...
3
votes
2answers
8k 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 ...
3
votes
2answers
746 views

Metadata API exception: IO Exception: Exceeded max size limit of 3000000

I am using Metadata API to get information about org. I want to retrieve all custom fields present in my org. I am using listMetadata() method which returns list of components. Below is my code: ...
3
votes
1answer
2k views

Custom Field Limits For Managed Packages

The documentation on global limits says this: The custom objects contained in a managed package publicly posted on the AppExchange don't count against the limits for your Salesforce Edition. ...
2
votes
2answers
954 views

API Usage limits

I was trying to find limits of Rest API calls an org can made in a day. This article 'API Usage Limits' helped me until a particular line confused me which says Any action that sends a call to ...
2
votes
2answers
1k views

Master-Detail Relationship on Custom Object from Managed Package

Is it possible to add Master-Detail Relationship on Managed Custom Object? currently I am getting below error
2
votes
2answers
2k views

Is there a consequence to being over data storage limit?

Our organization is at about 170% of our data storage limit. Is there any consequences of this? Or will Salesforce just not care about the limit?