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
80
votes
3answers
12k 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 ...
40
votes
5answers
26k 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 ...
40
votes
3answers
17k 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 ...
34
votes
3answers
705 views

Spring 14 Limit change can break existing apps even when running previous version API

I'm looking for confirmation that what I'm seeing is real, and if this is a bug or an intentional breaking change. Create the following test class: @istest public class TestLimits{ public static ...
21
votes
1answer
3k 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?
21
votes
1answer
796 views

Do Custom Labels created by managed packages count against an Org's limit of 5,000 Custom Labels?

As of Winter '14, Salesforce imposes a limit of 5,000 Custom Labels per Org. That sounds like a lot, and would be for most Orgs, but I've noticed that many managed packages create a LOT of Custom ...
20
votes
5answers
25k 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 ...
19
votes
3answers
5k 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 ...
19
votes
2answers
22k 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 ...
16
votes
4answers
9k views

Is Salesforce API limit on outbound or inbound?

Does the Salesforce API limit apply on outbound API requests or only on the inbound API requests? From this Knowledge article: What counts towards my API limit? SOAP (https://www.salesforce.com/...
15
votes
1answer
2k views

Percent of Apex Used: Do spaces count?

The limit on the amount of characters you can have in Apex is 3,000,000. I understand that comments and test classes do not count towards this limit. Another developer just asked me if the space ...
14
votes
3answers
3k views

What qualifies as running a test synchronously?

This Limits Documentation mentions: Total number of test classes that can be queued per a 24-hour period (5) - The greater of 500 or 10 multiplied by the number of test classes in the organization ...
14
votes
1answer
846 views

What are the, if any, Tooling API Limits?

What are the, if any, Tooling API Limits? I can't find any info on it. I checked in the docs, but no word of it, unless i'm just missing them. Thanks
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 + ','; } ...
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?
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 ...
12
votes
1answer
9k 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
0answers
201 views

Made 3500 SOQL Queries in one context. LIMITS HACK?

Steps to reproduce: Create Visualforce Email Template Create Visualforce component and add it into the email template Create Apex Controller for the component from pt.2 Do some SOQL queries there, ...
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 ...
11
votes
1answer
527 views

Do configurations in Salesforce count against Storage Limits?

I have a client asking whether Salesforce configurations (objects, fields, etc) count against any of the limits they impose (specifically Data Storage). I'm pretty sure the configurations themselves ...
11
votes
1answer
12k views

When I load the developer console, I get a “Total Requests Limit Exceeded” error

When I load the developer console, I get a "Total Requests Limit Exceeded" error. This is on a dev org. I have been using the Force.com IDE all day, and have been writing alot of unit tests (and ...
11
votes
1answer
1k 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 top-...
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 ...
10
votes
4answers
4k 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 ...
10
votes
2answers
1k views

Unit test SOQL limit setting up data model

I have run in to this situation where the data model is very complex and since SF doesn't support mocks (e.g., Mockito) there are so many SOQL executions in just setting up the data model (triggers, ...
10
votes
2answers
903 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 ...
10
votes
1answer
2k views

What counts as a login for login-limited licenses (Authenticated Sites / High Volume Customer Portal)?

We're re-building a webservice that previously had it's own authentication and security model baked in. Instead of having the webservice handle this we're looking at switching to using Authenticated ...
10
votes
1answer
2k 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 ...
9
votes
1answer
14k views

System.LimitException: Too many queueable jobs added to the queue

I have a scheduler class which is scheduled to run every 5 min which calls a batch class. This batch class calls a method from another class which adds multiple jobs to a queue. When it's scheduled I ...
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 ...
9
votes
2answers
965 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 ...
9
votes
1answer
6k views

Error - “Time limit exceeded - Your request exceeded the time limit for processing”

I have a VF Page where I gather data from Attachments, deserialize the Attachments into Apex Classes, process the data, and then display the data on the VF page with ContentType="application/vnd.ms-...
8
votes
3answers
6k 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 ...
8
votes
1answer
292 views

Limit Exceeded: Too many target object ids

What does the error "Limit_Exceeded: Too many target object ids" mean. I couldn't find any documentation related to this. We are getting this error when we do mass emails from Apex in Salesforce.
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 ...
8
votes
1answer
205 views

Do SFDX commands count toward limits?

I am looking into utilizing some SFDX commands to possibly use for some data integrations and/or one-time loads. Do these commands count toward the same API call limits as API calls and Bulk API ...
8
votes
1answer
587 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 ...
8
votes
3answers
4k views

Limits on required Lookup Filters when deployed in a managed package

I have a managed package with a number of Lookup fields from Opportunity to Contact and Opportunity to a custom object. For each of these lookups I'd like to restrict the records the user can select ...
8
votes
1answer
554 views

Standard Objects Limits

Is there a way to know programmatically what are SOQL limits on objects? some way that given a standard object tells that to query this object you need to use filters on the fields [x,y,z,...]? to ...
8
votes
1answer
272 views

REST API - Sforce-Limit-Info header not returned

I'm using SFDC's REST API to access org data. According to the docs (https://www.salesforce.com/us/developer/docs/api_rest/Content/headers_api_usage.htm), each request to the REST API should return a ...
8
votes
1answer
233 views

Maximum number of fields in a custom object, considering managed packages?

I am under the impression that a custom SObject can have no more than 500 (or 800) fields in total across all namespaces. From the Salesforce Features and Edition Allocations documentation there is ...
7
votes
7answers
5k views

Multiselect Picklists with many values

Note: Though this is still of use in extreme cases, the limit on multi-select picklist values has been raised to 500 values in Winter '16. Also, the Global Picklists feature, which is currently (...
7
votes
5answers
4k views

96% code already used. How to manage it?

We are using a developer sandbox for development. When i go to System OverView > Business Logic > Code Used, i see that we have already use 96% of the amount of code we can write. Can we get it ...
7
votes
1answer
5k 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 ...
7
votes
3answers
3k views

Large size file upload related to custom object

Is it possible to upload the files with size more than 25MB and can we show them in related list of a custom object? what is the best way to achieve this? Do we need to use external storage if the ...
7
votes
7answers
737 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 ...
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 ...
7
votes
1answer
1k views

Does custom setting count against the total number of custom objects available for your organization?

The Salesforce documentationhas below line Custom settings are a type of custom object. Each custom setting counts against the total number of custom objects available for your organization. I ...
7
votes
3answers
855 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 ...

1
2 3 4 5
8