Linked Questions

0
votes
0answers
30 views

Best way to log an error [duplicate]

Which is the best way to log an error/debug logs in Production enviornment (Salesforce/apex)?
53
votes
4answers
4k views

Apex debugging in Winter '16 - how well does it work?

This Debug Apex Code in Eclipse (Generally Available) release note says: The Apex Debugger extends the Force.com IDE plug-in for Eclipse and behaves similarly to debuggers available for other ...
52
votes
1answer
21k views

How do I start to debug my own Visualforce/JavaScript?

This question is intended to complement How do I start to debug my own Apex code? as sometimes questions are asked here that could most easily sorted out by the questioner using their browser's "...
27
votes
3answers
21k views

How do I debug my lightning component?

I have seen and read many posts in regards lightning component errors and realized there are no questions actually asking how to debug them. I recently stumbled upon: How do I start to debug my own ...
15
votes
4answers
6k views

System.Exception: Too many SOQL queries: 101 [duplicate]

I am getting a Too many SOQL queries: 101 error on a trigger when I am trying to deploy another trigger. I am posting the trigger which is causing the error. trigger rollupAccountShowings on Account ...
27
votes
1answer
4k views

Force.com IDE Debugger. New feature?

Saw this as I was installing eclipse earlier. Anyone know how to tinker around with it?
12
votes
1answer
4k views

Debugging Apex Code using Checkpoints?

I currently run the Apex code using Anony exec/test class and Check the system debug logs or write system.debug to check the logs. But I feel the need to check line by line debugging of the code, with ...
0
votes
1answer
15k views

Error Attempt to de-reference a null object

My requirement is to get the list of territories present in an Account_Territory_Loader_vod__c object for a particular account and check that combination of account and territory whether it is present ...
6
votes
2answers
3k views

Solved Code for rescheduling opportunityLineItemSchedule when changing CloseDate on Opportunity

Resolved code for updating OpportunityLineItemSchedule ScheduleDate to new CloseDate when close date is changed on Opportunity object. Also to update OpportunityLineItem ServiceDate on change of ...
4
votes
1answer
2k views

Saleforce Too many future calls: 11

I have a business logic as follows. 1. A web service class parses XML file containing case data and loads the case to SF. 2. Trigger that on update of case email field make a call to future method ...
2
votes
3answers
5k views

Inserting a parent and multiple child with the same visualforce page

I have a master detail relation ship between two objects where NdF__c is the parent, and the child is LineExpense__c. I want to insert many LineExpense__c relating to one NdF__c, so I add dynamically ...
1
vote
3answers
4k views

System.LimitException: Too Many SOQL Queries: 101 in Trigger

Following is my trigger I get the following error System.LimitException: Too Many SOQL Queries: 101 in Trigger Here is my trigger trigger SubscriberUpdateTrigger on Subscriber__c (after Insert, ...
0
votes
1answer
4k views

Update a Checkbox Field Using Apex Trigger

How can I update a checkbox from false to true based on a condition using apex trigger? I have three custom objects: ObjectA__c, ObjectB__c, and ObjectC__c And here are some of fields: ObjectA__c (...
1
vote
1answer
3k views

Batch apex execute method not invoked

I copied this code from SF docs and modified it to my requirement: global class OwnerReassignment implements Database.Batchable<sObject>{ global final string query; global ...
3
votes
3answers
1k views

Test coverage in recursive scenario

I have an afterupdate trigger which was getting executed twice upon update of a field as well as fieldupdate action through workflow. In order to stop this, I had to use recursive stopping mechanism ...

15 30 50 per page
1
2 3 4 5