0% found this document useful (0 votes)
14 views3 pages

Druk Excep Limit

Uploaded by

rybkazoceanu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Druk Excep Limit

Uploaded by

rybkazoceanu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Arkusz1

Total number of SOQL queries issued for each Apex 100 SOQL queries for synch Apex or
transaction 200 for asynchronous Apex.
Total number of records retrieved by a single SOQL 50,000 for synch Apex or
queries for each Apex transaction 50,000 for asynchronous Apex.
Total number of SOSL queries issued 20 for synch Apex or
20 for asynchronous Apex.
Total number of records retrieved by a single SOSL 2,000 for synch Apex or
queries for each Apex transaction 2,000 for asynchronous Apex.
Total number of DML statements issued 150 for synch Apex or
150 for asynchronous Apex.
Total number of records processed as a result of DML 10,000 for synch Apex or
statements, Approval.process, or 10,000 for asynchronous Apex.
database.emptyRecycleBin
Total stack depth for any Apex invocation that recursively 16 for synch Apex or
fires triggers due to insert, update, or delete statements 16 for asynchronous Apex.

Total number of callouts (HTTP requests or web services 100 for synch Apex or
calls) in a transaction 100 for asynchronous Apex.
Maximum cumulative timeout for all callouts (HTTP 120sec for synch Apex or
requests or Web services calls) in a transaction 120sec for asynchronous Apex.
Maximum number of methods with the future annotation 50 for synch Apex or
allowed per Apex invocation for asynchronous Apex:
0 in batch and future context;
50in queueable context
Maximum number of Apex jobs added to the queue with 50 for synch Apex or
System.enqueueJob 1 for asynchronous Apex.
Total number of sendEmail methods allowed 10 for synch Apex or
10 for asynchronous Apex.
Maximum CPU time on the Salesforce servers 10,000 milisec for synch Apex or
60,000 milisec for asynchronous Apex.
Maximum execution time for each Apex transaction 10 minutes for synch Apex or
10 minutes for asynchronous Apex.
Maximum number of push notification method calls 10 for synch Apex or
allowed per Apex transaction 10 for asynchronous Apex.
Maximum number of push notifications that can be sent in 2,000 for synch Apex or
each push notification method call 2,000 for asynchronous Apex.
Apex cursors limits include Maximum number of rows per cursor: 50 million
Maximum number of fetch calls per transaction: 10
Maximum number of cursors per day: 10,000
Maximum number of rows per day (aggregate limit): 100 million

A System.assert failure that halts code execution. Optionally


contains the custom message specified in the last (msg) argument to
AssertException the assert() method.
Legacy Aura-related exception. Use System.AuraHandledException
AuraException instead.
Returns a custom error message to a JavaScript controller. See
AuraHandledException Returning Errors from an Apex Server-Side Controller .
Any problem with an asynchronous operation, such as failing to
AsyncException enqueue an asynchronous call.
Any problem with big object records, such as connection timeouts
BigObjectException during attempts to access or insert big object records.
Any problem with a Web service operation, such as failing to make a
CalloutException callout to an external system.
DataWeaveScriptException Any run-time script errors that occur within DataWeave in Apex.
Any problem with a DML statement, such as an insert statement
DmlException missing a required field on a record.
DuplicateMessageException Attempt to enqueue job with duplicate queueable signature
Any problem with email, such as failure to deliver. For more
EmailException information, see Outbound Email.

Strona 1
Arkusz1

Any problem with external object records, such as connection


timeouts during attempts to access the data that’s stored on external
ExternalObjectException systems.
FatalCursorException Any problem with Apex cursors in a transaction.
Any attempt to mutate a read-only collection or record such as an
sObject in an after-update trigger, or a final variable. This exception
FinalException causes execution to halt.
Any problem with starting flow interviews from Apex. For example,
if an active version of the flow can’t be found or it can’t be started
FlowException from Apex.
HandledException A generic handled exception.
An illegal argument was provided to a method call. For example, a
method that requires a non-null argument throws this exception if a
IllegalArgumentException null value is passed into the method.

An illegal header argument was provided to an Apex REST call. For


example, a call to the RestResponse.addHeader(name, value) method
InvalidHeaderException throws this exception if the header name is cookie.
This exception is used with both Visualforce pages and Salesforce
Functions.
Visualforce
The exception is thrown when an invalid parameter is supplied for a
method, or any problem is encountered with a URL used with
Visualforce pages. For more information on Visualforce, see the
Visualforce Developer's Guide .
Salesforce Functions
The exception is thrown when the functionName parameter to
Function.get() doesn’t have the correct project name.function
name format. For more information on Salesforce functions, see
InvalidParameterValueException Function.get().

LimitException A governor limit has been exceeded. This exception can’t be caught.

Any problem with JSON serialization and deserialization operations.


For more information, see the methods of System.JSON,
JSONException System.JSONParser, and System.JSONGenerator .
Any problem with a list, such as attempting to access an index that is
ListException out of bounds.
Any problem with a mathematical operation, such as dividing by
MathException zero.
Any problem with unauthorized access, such as trying to access an
sObject that the current user doesn’t have access to. This exception
is used with Visualforce pages. For more information on
NoAccessException Visualforce, see the Visualforce Developer's Guide .

This exception is used with both Visualforce pages and Salesforce


Functions.
Visualforce
The exception is thrown with data that doesn't exist, such as trying to
access an sObject that has been deleted. For more information on
Visualforce, see the Visualforce Developer's Guide .
Salesforce Functions
The exception is thrown when the project or function name provided
in the functionName parameter to the Function.get() method can't be
found. For more information on Salesforce functions, see
NoDataFoundException Function.get().

This exception is thrown if you try to access items that are outside
the bounds of a list. This exception is used by the Iterator next
method. For example, if iterator.hasNext() == false and you call
iterator.next(), this exception is thrown. This exception is also used
by the Apex Flex Queue methods and is thrown if you attempt to
NoSuchElementException access a job at an invalid position in the flex queue.

NullPointerException Any problem with dereferencing null, such as in the following code:

Strona 2
Arkusz1

Any problem with SOQL queries, such as assigning a query that


returns no records or more than one record to a singleton sObject
QueryException variable.
A Chatter feature is required for code that has been deployed to an
RequiredFeatureMissing organization that doesn’t have Chatter enabled.
Any problem with SOSL queries executed with SOAP API search()
call, for example, when the searchString parameter contains fewer
than two characters. For more information, see the
SearchException SOAP API Developer Guide.
Any problem with static methods in the Crypto utility class. For
SecurityException more information, see Crypto Class.
Any problem with the serialization of data. This exception is used
with Visualforce pages. For more information on Visualforce, see
SerializationException the Visualforce Developer's Guide .

Any problem with sObject records, such as attempting to change a


SObjectException field in an update statement that can only be changed during insert.
Any problem with Strings, such as a String that is exceeding your
StringException heap size.
A transient problem with an Apex cursor transaction. The failed
TransientCursorException transaction can be retried.
Any problem with type conversions, such as attempting to convert
TypeException the String 'a' to an Integer using the valueOf method.
A non-recoverable internal error within Salesforce has occurred.
This exception causes execution to halt. If necessary, contact
UnexpectedException Salesforce Customer Support for more information.
Any problem with a Visualforce page. For more information on
VisualforceException Visualforce, see the Visualforce Developer's Guide .
Any problem with the XmlStream classes, such as failing to read or
XmlException write XML.

Strona 3

You might also like