The exception tag has no wiki summary.
2
votes
2answers
56 views
System.LimitException: Too many DML rows: 10001
A user is trying to update some records in Salesforce, he is getting this error:
OrderHistory: System.LimitException: Too many DML rows: 10001.
He added that he is not able to insert 100 records ...
2
votes
1answer
31 views
Getting a System.DMLException:Insert failed error
I"ve created a trigger which is relatively short
trigger trig_Opportunity_CreateOppOwner on Opportunity (before update,before insert) {
List<id>OppsID = new List<id>(); //List that ...
0
votes
0answers
41 views
Visualforce Error
I get the following Visualforce Error:
System.NullPointerException: Attempt to de-reference a null object
Error is in expression '{!checkAccessibility}' in component
in page vendorinformation
...
3
votes
1answer
61 views
Can't catch System.ProcedureException thrown by System.requestVersion()
I'm trying to write a simple method to extract the package version (using System.requestVersion()) and convert it to a string. The documentation for that method indicates that it will throw an ...
1
vote
1answer
60 views
Unhandled Exception
I'm developing an error handling platform for apex but I'm facing some doubts.
Is there a way catch the unhandled exceptions?
When using a public site page, the user is redirected to an error page ...
5
votes
2answers
296 views
Catching Limit Exception: “Attempted to schedule too many concurrent batch jobs”
I've got a Visualforce page that allows the user to fire a batch job manually, using this action method:
public void FireBatch()
{
try
{
Database.ExecuteBatch(new AutobotBatch());
...
2
votes
2answers
78 views
Storing exceptions in salesforce
I have a different requirement in which I want to store all exceptions that occurred through out the application in a custom object. What is preferred way of doing that and what fields should be ...
1
vote
1answer
88 views
system.listException:List Index out of Bounds:1
My class is
List<CampaignMember> cm; List<Campaign> camp1;
// if suppose transactions.size() is 2.
for(integer t=0;t<transactions.size();t++){
...
0
votes
1answer
87 views
How to Solve the List index out of bounds: 0 issue [duplicate]
How can I solve the List index out of bounds: 0 issue .
ID Accid;
Account[] acc = [Select id,name from account where name ='test']; -->1
if(acc.size() >0){
Accid = acc[0].id;
...
1
vote
1answer
29 views
Chatter for exceptions
I have a page that is doing a lot of heavy-lifting server-side and then showing up as a page-within-a-page on a custom object layout.
When something goes wrong (usually finding no available products) ...
1
vote
3answers
115 views
System Null Pointer Exception: debug help
So I have the following controller:
List<User> users {get; set;}
public reshapeUserDivisions()
{
users = new List<User>();
users = [SELECT Id, Division, FROM User WHERE ...
2
votes
3answers
114 views
How to Prevent the System.QueryException
I am getting "Error System.QueryException: List has no rows for assignment to SObject".
Line 1: Account ac = [select id from Account where name='testaccount' limit 1]
Line 2: if(ac != null) {
...
9
votes
2answers
409 views
Convert HTML to PDF in APEX
I am trying to convert an HTML email that is sent to an Email Service into a PDF file. Some of the options I have explored:
attachment.fileName = fileName + '.pdf';
attachment.mimeTypeSubType = ...
4
votes
3answers
293 views
SOQL aggregate query limit
I'm trying to use aggregate queries to save work and script statements. The object has a field for each month representing energy usage for that month for a building.
In situations where a building ...
0
votes
1answer
133 views
How to resolve the LimitException?
for(PricebookEntry pbe:[Select product2Id from PricebookEntry where PriceBook2Id = :pbId]){
productIds.add(pbe.product2Id);
}
I am getting the following exception.
...
5
votes
2answers
172 views
System.CalloutException: “Algorithm missing:”
I have been getting a System.CalloutException with the message "Algorithm missing:" when I try to make a call to a specific endpoint. This is an exception that happens intermittently. For example, ...
1
vote
1answer
208 views
NullPointerException not occurring within try/catch
I'm writing a testMethod for a custom Exception class.
As part of the testMethod I want to deliberately throw another exception to become the inner cause of my custom exception.
E.g.
public class ...
1
vote
2answers
555 views
Database DMLOptions and Apex Error Messages
We found an issue when portal users leave comments on our cases. Email notifications to the case owners were not being sent. So I did change the code to use the setoptions method.
The problem is that ...
3
votes
1answer
113 views
Not receiving all Apex Exception emails for Managed Package
We have a Managed Package deployed on several dozen orgs, and appear to be missing a lot of Apex Exception emails.
We do receive a number of such emails on a regular basis (so we know it's working ...
15
votes
2answers
604 views
How can I capture a system.limitexception stopping my emails being sent
In Salseforce governor limits, it states that every org is allowed to send single emails to 1000 external addresses every 24 hours. On very rare occasions, an org I work with has exceeded this limit ...
6
votes
2answers
553 views
SObjectException “SObject row was retrieved via SOQL without querying the requested field” not being thrown
Usually if apex code attempts to access an sObject field that wasn't retrieved via SOQL I get an exception like:
System.SObjectException: SObject row was retrieved via SOQL without
querying the ...
6
votes
3answers
795 views
“Too many SOQL queries: 101” - Apex error occurred while executing Site URL Rewriter
Here is the scenario, when I receive "Apex error occurred while executing Site URL Rewriter" error message.
I have a link in my VF page to export records as excel. on click of this export link, I ...
10
votes
4answers
1k views
Custom Exception with a constructor that takes parameters
I'd like to extend Exception to create a custom exception class that takes several arguments in addition to the standard string message.
I've found examples showing basic inheritance (An Introduction ...
2
votes
1answer
534 views
'java.io.StreamCorruptedException: invalid type code: 00' Error during new VF page creation
I am getting the following visualforce error while trying to save a new/existing visual force page. java.io.StreamCorruptedException: invalid type code: 00.
I use Notepad++ to edit the markup. While ...
8
votes
1answer
504 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 ...