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
2
votes
1answer
391 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
84 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
708 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
109 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
39 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
2k 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, ...
1
vote
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
297 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
105 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
322 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
66 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
321 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
193 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
570 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
48 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
295 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 ...
0
votes
1answer
491 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
2k 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
580 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
67 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
844 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
137 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
225 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
640 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
110 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
48 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
303 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
517 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
1k 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
275 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
400 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
204 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
433 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 ...
2
votes
1answer
152 views

What is AGGS limit?

While going through Execution Overview in Developer Console, I noticed a new kind of limit, called AGGS. It may not be new, but I never paid attention to it. I tried to find out more about it, but no ...
-1
votes
2answers
113 views

System.LimitException: Too many DML rows: 10001 because of Duplicate Records [closed]

I have Limitations error. Found out that i am adding Duplicate values to the List. How do i verify that i am not adding Duplicates. public void financialAccountforContactAndAccounts(List<...
0
votes
1answer
250 views

Apex Execution Error: Too many DML rows: 10001

I have a method which is returning Apex Execution Error: Too many DML rows: 10001 public void financialAccountforContactAndAccounts(List<Financial_Account_role__c> newFinancialAccountRoles) ...
0
votes
0answers
336 views

sending out email alerts - Limit exceeds

I have a process builder setup which send out an email alert when ever a new records is created. I use dataloader to insert about 40,000 records and after a while I start getting daily email limit has ...
1
vote
2answers
87 views

Unsupported sObjects for List Controllers

I am new to SFDC and have only been developing for about 6 months, in this time I have noticed some limitations around List Controllers and some standard objects. Is there any way (programatically) ...
5
votes
2answers
816 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 ...
8
votes
1answer
288 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.
1
vote
2answers
602 views

User Licenses Remaining?

I want to know, current user limit i.e. how much I utilized and how much I have remaining. I went through Limits class and UserInfo class, but I didn't find useful stuff. And even in OOTB, there is ...
0
votes
1answer
20 views

Initial term of field expression must be a concrete SObject: List<Account>

Even it is pretty easy one, but error is not able to solve by me. public class one{ public List<Account> accs{set;get;} public void main(){ accs = [select id,name,type from ...
1
vote
1answer
1k views

System.LimitException: Too many SOQL queries: 201

I know that this error is fed up, but i'm really doesn't know what i'm doing wrong? So the process: The batch starts every day and checks the value of FirstDateOfMonth__c = Today() and update the ...
0
votes
1answer
528 views

Debugging System.LimitException: Apex CPU time limit exceeded

I have a bunch of triggers in the opportunity object which throw System.LimitException: Apex CPU time limit exceeded when we do a mass update on opportunities. In my client org, the client has created ...
2
votes
4answers
1k views

Limit on child records

If I have two objects with lookup. How I can limit quantity of children records to 1. For example Apple->Worm objects Create one worm, and forbid creating record in Worm. How resolve this problem?...
3
votes
1answer
2k views

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

I have been looking for some time looking for a way how can error SINGLE_EMAIL_LIMIT_EXCEEDED Email limit exceeded be avoided if I need to send one simple email to one single user, for example, myself....