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
5
votes
1answer
10k 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 ...
1
vote
1answer
442 views

SingleEmailMessage limit

Below links says we can send up to 100 recipients for the To field in Salesforce. https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/...
0
votes
2answers
679 views

Adding tabular report to dashboard in lightning experience

As adding a tabular report to the dashboard is not available in lightning experience. Does any one know the solution for this limitation? Any Appexchange product? any other solution like creating a ...
1
vote
0answers
64 views

Available push topic records

In Apex code, how can I fetch the available number of topics (PushTopic records) per Org so I don't hit its limit? I know there's a helper class for limits, but I don't think it mentions push topics.
6
votes
2answers
355 views

OFFSET with long text area field - undocumented?

I have a custom object with 4 long text fields, all with max length 131,072 characters. I have more than 200 records in my org of type CustomObject__c. Now, Scenario 1: [Select LongText1__c, ...
1
vote
0answers
15 views

Retrieve API calls number from API [duplicate]

I'm currently running large processes, and I'm afraid the limit of my API calls is not enough to handle that. I want to retrieve my current number of API calls (and my maximum API calls), to verify ...
1
vote
1answer
105 views

Apex Rest service consumes API?

When consuming a salesforce apex Rest api, the header is not returned: Sforce-Limit-Info. My question is, when I consume a personalized service, I am not consuming api? What I noticed was when using ...
2
votes
0answers
82 views

Limits class getDatabaseTime() and getLimitDatabaseTime() methods

I notice that the developer console autocomplete shows getDatabaseTime() and getLimitDatabaseTime() methods on the Limits class. Neither appears in the documentation and they don't show up at all in ...
0
votes
3answers
236 views

How to use limit? [duplicate]

I am getting 50001 Soql Error when i am trying to do with the following code: private static Integer getNumberOfRecords (String objectName, String whereClause) { String soql = '' + ' ...
0
votes
0answers
147 views

Getting Apex Limits in Customer Org With Managed Package

This is related to Invocable Apex in Managed Package Not Returning Values; however I am trying to find a workaround. We have a managed packaged Apex class that uses the Salesforce Limits class to exit ...
4
votes
0answers
54 views

How to track limit usage over time

I am trying to develop a way that will allow our company to track our usage of various limited resources over time and then store those on a custom object. In short I am looking to track things like ...
1
vote
1answer
170 views

What is the maximum number of rows retrieved in a SOQL NOT IN clause?

What is the maximum number of rows, which can be queried inside a NOT IN clause? For example, let's say I have this query: SELECT Id FROM Campaign WHERE Id NOT IN ( SELECT xxx__campaign__c FROM ...
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 ...
2
votes
1answer
454 views

Chatter REST API Limit

Is there any way to increase the Chatter REST API limit of one poll per minute is a hard limit and cannot be increased? We built a connected app using REST from a 3rd party portal application and ...
1
vote
1answer
39 views

What is Maximum simultaneous requests limitation is calculated across all orgs that access the same host?

We have a managed App to integrate with a third platform, so our app do a lot of API calls in Apex code. I reviewed the Apex Governor Limits and found the following item: Maximum simultaneous ...
0
votes
0answers
106 views

System.LimitException: Too many query rows: 50001 [duplicate]

I am getting an error in a test class System.LimitException: Too many query rows: 50001 Here is the line in the code. There are not 50,000 ProductCategoryMappings, only ~4,400. Seems I am ...
5
votes
0answers
819 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 ...
1
vote
0answers
115 views

How to select the first record from multiple records from SOSL query

I am using SOSL query: List<List<Account>> acclist = [FIND :newstring IN ALL FIELDS RETURNING Account(id,Name,FirstName,LastName,Territory_vod__c,NPI_vod__c where RecordType.Name='...
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 ...
0
votes
1answer
44 views

Is there a good email service to replace Salesforce's email service as a workaround for the attachment size limit? [closed]

I like Salesforce's email service in that I can: Send emails to any contact in the database Use templates Track and log activities from emails However, I can't send attachments larger than around ...
2
votes
2answers
3k views

ant deployment fails with “Error: limit exceeded”

I've been running ant deploy all day yesterday on an org of mine with no problems. Before each deployment, I ran an undeploy to delete everything I had deployed previously. In the middle of the day, ...
2
votes
1answer
2k views

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

I am getting error when I am trying to run my batch even I have applied the sort on list. Here is my batch: global class DeleteRecordsBatch implements Database.Batchable<String>, Database....
0
votes
1answer
318 views

Workflows / Process Builder Limitation from an Unlimited Edition to Enterprise Edition

I'm moving an org from unlimited edition to Enterprise edition. I've about 180 workflows in an object in Unlimited Edition. But in Enterprise edition, we can have only 50 active workflows. We can ...
0
votes
1answer
115 views

How can I make my TestDataFactory class insert 30,000 records (9,999 records in 3 objects)?

Title says it all. I'm making a standard TestDataFactoryClass. I want it to insert 30,000 records. For example: 9,999 records in 3 objects. I get an error: Too many SOQL queries at 10,000 records. ...
0
votes
1answer
346 views

Workflow limits and alternate approach

I noticed that workflow I scheduled runs only about 500 records at a time and it runs consecutively every hour. Is this because of org limit? I am worried as I have 20K records to execute and it is ...
2
votes
0answers
69 views

Custom Track Field history mechanism with reporting

I have the task to create a function of tracking field changes on objects which are associated with some relations(master-detail, lookup) and show that changes on report for all track history objects. ...
6
votes
1answer
407 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 ...
0
votes
1answer
208 views

Picklist - Value cannot exceed 40 characters

Picklist - Value cannot exceed 40 characters Can't save a picklist values exceeding 40 characters through VF/APEX. But the same value is saved through standard layout. Any workaround for this?
5
votes
1answer
685 views

How to save large files in Salesforce with synchronous Apex?

I've created a Visualforce page that allows users to drag and drop files and have them uploaded to Salesforce and then displayed in a list immediately. To do so, my VF page sends the file in chunks ...
1
vote
2answers
49 views

View object's custom relationships?

I'm hitting a "Custom Relationship Limit Exceeded" error on the Account object, but I'm not really sure how to identify the existing relationships so that I can clean them up. For example, I pulled ...
0
votes
2answers
341 views

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

I want to show the Instruction message along with the Max heap size Exception Message Heres the code I am using: stQry = 'SELECT ' + AllFieldNames('VWC_CvID_BodySize_Pairs__c') + ' FROM ...
1
vote
1answer
586 views

Do composite subrequests count toward API limits?

With Spring '17, the Composite REST API becomes generally available. It allows to bundle multiple subrequests into a single HTTP request by describing them in a JSON payload. Will this composite ...
0
votes
3answers
3k views

Too many Email Invocations: 11

I am deactivating no of users and when user is deactivated then all of the open opportunities of user has been assigned to their Manager. But I am getting below error message: Error Message: Apex ...
2
votes
2answers
635 views

Maximum number of classes, visualforce pages and page layouts per saleforce org?

Is there and if so, what is the maximum number of classes, visualforce pages and page layouts that can be created per salesforce organization?
1
vote
0answers
68 views

Complex custom VF page that could query and perform calculations from up to 1.5kk Cases

I was given a task: create a complex report based on VF page that queries up to 1.5kk cases and represents it as a table with several variables in it. Let's say I need to get something like this: The ...
0
votes
1answer
932 views

How many custom tabs can be created in a salesforce org?

How many custom tabs can be created in a salesforce org?I don't want these limits for a particular app or managed package,but in an entire org. Can anyone help?
1
vote
1answer
146 views

Is there a way to empty the Web-to-Case / Web-to-Lead queue in Salesforce

We have received a huge amount of Web-To-case request, at some point I received a exceed limit error message debugging the case creation, my question is if there's a way to empty the Web-To-Case queue ...
1
vote
3answers
273 views

SingleEmailMessage emails not going out

I have increased the limit of single email messages in one of my test orgs to 500 via creating a case with salesforce. My problem is that I am still not able to send out more than 50 to 60 mails. The ...
1
vote
2answers
799 views

First error: Too many query rows: 50001 in a batch apex class without any inner query

I am having a strange First error: Too many query rows: 50001 when my batch run. I know that this will occur if I am trying to execute queries inside my execute, as those query result list count ...
7
votes
1answer
116 views

Does Salesforce-to-Salesforce use API calls?

Easy question. I have searched quite a bit, but could not find it: does the Salesforce-to-Salesforce functionality use API calls?
0
votes
2answers
49 views

Limiting Protected Accounts for Users

Edited Code - trying to limit 1000 Protected Accounts per user. Protected Accounts are identified by a checkbox field.
1
vote
1answer
325 views

Apex Heap Size Limit Exceeded

This question may asked in many posts and blogs but this became nightmare for me now. Please help me to overcome this issue Issue is Apex Heap Size Limit Exception while Saving a Record We have ...
4
votes
1answer
599 views

How can I limit REST API response to less than 2000 records?

I have seen several question that ask the opposite, how to overcome that limit. I need smaller response because some downstream issue I have with very long responses. I cannot use the LIMIT clause ...
2
votes
1answer
2k views

How to know, existing object limit for my current edition

I need to know existing object limit for my edition, this is not the standard limit. For my org, the limit has been exceeded by Administrator by contacting to Salesforce. However, I am keen to know ...
4
votes
0answers
50 views

Data Storage value in UI differs from a value returned by limits service

I have found that Data Storage Values are different in the UI and in the /services/data/v37.0/limits response I know that storage values are calculated asynchronously but this is not the case as I'...
1
vote
2answers
300 views

Winter '17 Apex Email Limits: What counts?

Salesforce has raised the daily limit for apex emails from 1k to 5k, which is fantastic. The email limits have always contained this clause: There’s no limit on sending individual emails to ...
2
votes
2answers
423 views

Retrieve millions of records on an apex class

I need to write a specific report for my company which cannot be accomplished using the standard/custom reports on Salesforce as it will calculate Year today sales, months today sales, etc. My ...
1
vote
1answer
2k views

How can I monitor my batch api usage and limits?

Salesforce says: Batch limit You can submit up to 10,000 batches per rolling 24-hour period. You can’t create batches associated with a job that is more than 24 hours old. How can I monitor my batch ...
1
vote
1answer
218 views

Use developer console in idle state

Is it possible to use developer console in idle state so it does not maintain an active connection to salesforce and send a request only when i save a class or do an action. We have many developers ...
4
votes
1answer
512 views

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

I am confused by what I read in document and what I saw in workbench. General Email Limit for email alert send through process builder/wprkflow: In workbench I see the limits as below: I am using a ...