21 votes
Accepted

About the 10 custom objects limitation for community licenses

There are no technical restraints regarding the ten object limit. This is actually mentioned in the documentation somewhere. However, if salesforce.com finds out (however that may be), you would be in ...
sfdcfox's user avatar
  • 490k
20 votes
Accepted

Is Salesforce API limit on outbound or inbound?

Unfortunately your test is flawed. What you're missing here is that using the Developer Console uses API calls to the Tooling API (it's a little crazy that these are counted, I know)! The API call ...
Alex Tennant's user avatar
  • 13.6k
20 votes
Accepted

First error: Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce chunking

Because you wait until the execute() method to query for the records to delete, you are not utilizing the scope parameter (the second parameter of the Database.executeBatch method--in your case, 200) ...
Brent Bowers's user avatar
  • 3,104
18 votes
Accepted

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

+edit 2020-10-25: Looks like there's some concrete documentation as of API v49.0 (Summer '20). The documented limit is 16,384 bytes. The recommendation is to limit the URI to 2000 bytes, and headers ...
Derek F's user avatar
  • 61.5k
15 votes

How can I check that parent has more than 1 child?

You can use a HAVING clause: AggregateResult[] results = [ SELECT COUNT(Id) sum, Tool__c Id FROM Gear__c WHERE Tool__c = :tools GROUP BY Tool__c HAVING COUNT(Id) > 1 ]; This will give ...
sfdcfox's user avatar
  • 490k
14 votes
Accepted

Infinite queueable chaining, what is the drawback?

The primary limitation you will face is throttling. Once you surpass a chain depth of 4, Salesforce will slow you down to 15 seconds between executions. If you need to process a high volume of jobs, ...
Adrian Larson's user avatar
  • 150k
13 votes
Accepted

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

As you are chaining the jobs you have limit of 1 on child jobs. When chaining jobs, you can add only one job from an executing job with System.enqueueJob, which means that only one child job can exist ...
balinder singh's user avatar
12 votes
Accepted

Concurrent API Request Limits per org or per user

If more requests are made while the 10 long-running requests are still running, they’re denied. Salesforce allows you to have a limit of 10 long running requests per ORG, where long running requests ...
iamsfdc's user avatar
  • 867
12 votes
Accepted

How is stack depth calculated?

When you say 997, it runs 998 times counting initial call (actually not hidden) The call to the class constructor Execute anonymous This can be tested in Dev console > open log > Debug > ...
salesforce-sas's user avatar
10 votes
Accepted

Limit Exceeded: Too many target object ids

See the documentation. You can list up to 250 IDs per email. If you specify a value for the targetObjectIds field, optionally specify a whatId as well to set the email context to a user, contact, ...
sfdcfox's user avatar
  • 490k
10 votes

How to use Limits.getCallouts() in a test class for a callout in a future method

Typically, if I want to verify the callout is made and there may be asynchronous processing involve, I just track it on my mock. class MyMock implements HttpCalloutMock { Integer calls = 0; ...
Adrian Larson's user avatar
  • 150k
10 votes
Accepted

API Inbound and Callout limits SOAP vs REST

An API call is an inbound request, an API callout is an outbound request. API calls are rate-limited, limiting clients to the number of calls they are allowed to make daily. One API call costs one API ...
sfdcfox's user avatar
  • 490k
9 votes

Concurrent API Request Limits per org or per user

Concurrent Apex and Concurrent API limits are different. Concurrent API limit : for production and sandbox it is 25 for 20 or more than 20 seconds, for example : (describe in 3 scenarios) If you are ...
HoneyDaPoison's user avatar
9 votes

Large size file upload related to custom object

Yes you can do this using chatter. Check here Upload a File as Large as 2GB in Salesforce Using a Visualforce Page Basically what you need to do here is include chatter component in the VF page and ...
Tushar Sharma's user avatar
9 votes
Accepted

System.LimitException: Too many SOQL queries: 101

Hi You are getting the error because you are using Messaging.renderStoredEmailTemplate() in for loop as this is counted towards the SOQL governor limit as one query. To avoid the exception you have to ...
Rishi Golyan's user avatar
9 votes

System.LimitException: Too many SOQL queries: 101

Rishi Golyan correctly identified the issue, however, Messaging.renderStoredEmailTemplate() works on single ids rather than a list of ids. So, simply moving that method call to be outside of your ...
Derek F's user avatar
  • 61.5k
9 votes

How to monitor Platform Events consumption?

Update from the Winter '20 release notes: Monitor Platform Event Publishing Usage in REST API The hourly event publishing usage for standard-volume and high-volume platform events is now ...
Daniel Ballinger's user avatar
9 votes
Accepted

How can I check that parent has more than 1 child?

You're pretty close to a solution with your parent-child subquery. The big thing to realize is that, similar to how adding parent__r.someField__c gives you a real SObject instance nested in your query ...
Derek F's user avatar
  • 61.5k
8 votes
Accepted

How can be avoided error SINGLE_EMAIL_LIMIT_EXCEEDED Email limit exceeded if need to send email to one single user?

Looks like I have found an answer very long time back but didn't write it down. So today I started investigating this again and decided to store the solution found somewhere. It is interesting that ...
Patlatus's user avatar
  • 16.7k
8 votes
Accepted

Aura transaction details

See this answer where I experimented with the limits and came across some rather interesting answers: Question 1: will we hit 101 SOQL query limit in this case? Yes. For now, governor limits are ...
sfdcfox's user avatar
  • 490k
8 votes
Accepted

Do SFDX commands count toward limits?

Yes, SFDX commands do consume and count towards the limits of the resources they utilize on your target orgs, including API calls, Bulk API jobs, streaming and platform event consumption, and others. ...
David Reed's user avatar
  • 92.8k
7 votes

Return more than 2000 records (SOQL)

I'm using simple_salesforce for python and ran into the same issue where there was a limit on the number of records returned. But that's because I was running sf.query(my_SOQL_query) instead of sf....
SYLVIA TRAN's user avatar
7 votes
Accepted

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

So I logged a case with support (Case Number 14444735) to find out if this limit has actually been lifted, and here's the response I got: I have verified in Execute Anonymous and the heap limit is ...
Adrian Larson's user avatar
  • 150k
7 votes
Accepted

Daily email limit - via workflow, Mass Email, Single Email

It is the: Its the number of user licenses * 1000 not active users.
Eric's user avatar
  • 54.2k
7 votes

How to know, existing object limit for my current edition

Navigate to Setup -> System Overview. Here you will be able view Number of Objects you can create in your org. Custom Object Limits as per the Salesforce Doc Note:The system overview page shows ...
Devendra's user avatar
  • 5,075
7 votes
Accepted

How to show custom exception message when 6 MB Limit Exceed in Apex

When you hit the limit a System.LimitException is thrown with a message: Apex heap size too large: ... but that exception cannot be caught by Apex code (by design). If the problem arises in a ...
Keith C's user avatar
  • 136k
7 votes
Accepted

APEX Heap size and limit Confusion

As I discovered when investigating Does execute anonymous from Developer Console not enforce heap size limit? The support rep responding to my case told me: heap size checks are performed according ...
Adrian Larson's user avatar
  • 150k
7 votes

How to monitor Platform Events consumption?

I've checked every documentation on platform events I could find, and the answer is: you can't monitor it without doing the monitoring yourself. You can create a custom object or a custom setting to ...
Renato Oliveira's user avatar
7 votes

Clear platform event limits?

The phrasing is a bit ambiguous in terms of which link you should visit: For more information see the Resources section. However, that section does include the below document which I believe answers ...
Adrian Larson's user avatar
  • 150k
7 votes
Accepted

What are "LOB fields" in an asset? Querying all the fields on the asset causes a limit exception, why?

LOB simply means "Large Object" fields. They refer to long text areas (those greater than 255 characters), be it standard or custom, such as Description or MyCustomLongText__c. Note that heap isn't ...
sfdcfox's user avatar
  • 490k

Only top scored, non community-wiki answers of a minimum length are eligible