Questions tagged [debug-logs]
The debug-logs tag has no usage guidance.
105
questions
0
votes
0answers
28 views
Salesforce Debug log shows statements even after Fatal Error statement
I am perplexed by something i see in debug log, and this could be very stupid question.
We have a parentObject and ChildObject (its not mater detail... just lookup relation).
We perform some update on ...
1
vote
0answers
14 views
Why doesn't flow debug info show in my debug log?
I'm logged into Salesforce Lightning, Health Cloud Admin
I open the Developer Console and set the flow debug levels to finer
I go to an Account record and click Schedule Appointment
I complete the ...
-1
votes
1answer
79 views
Facing heap size issue when querying and processing apex logs in LWC component
We are creating a apex log table and users will select a log and we need to show the log body to them. While implementing this we are facing apex heap size issue. From the UI users will select the log ...
0
votes
2answers
42 views
Logging via debug logs
I wanted to ask about debug logs, in my application I need to pass data from Visualforce page to apex class every time I get some message from server. So every time I get a message I call apex ...
1
vote
1answer
59 views
What is the difference between “System debug logs” and “Monitoring debug logs”
The Salesforce article on debug logs (currently found here) states that "System debug logs are retained for 24 hours. Monitoring debug logs are retained for seven days."
What is the ...
2
votes
1answer
66 views
How can I see debug logs, when the record is created by System as a user?
I am trying to setup a trace flag to debug. When I select User in the dropdown and try to find System in there. It doesn't show up.
What can I do ?
0
votes
0answers
30 views
How to check debug logs for trigger when executed from the front end? [duplicate]
How can I check the debug logs for my trigger when some goes to my website and clicks a button that inserts records on salesforce?
0
votes
0answers
10 views
Debug Log In subscriber org (managed package) not working
I am logged in to the subscriber org through LMA (subscribers)... and I still just get do detail in the log.
Supposedly we should see full detail when logged in through LMA. I do recall this working a ...
0
votes
3answers
63 views
How to setup debug log for batch apex
I have a batch 'mytestbatch' which runs everyday through scheduler. This batch will update more than 15lakhs records. During execution mytestbatch is throwing an error 'First error: Attempt to de-...
1
vote
0answers
84 views
What are ConduitEventConsumer-pool-9687-thread-2 in Platform Event Debug Logs
This is the first time I saw something like this. We fire Platform Events from many places, and they are in plenty, you can say around 100 in a minute in worst case scenario.
Is there any kind of ...
0
votes
0answers
31 views
Identify which email alert triggered from email logs
Is there a way to identify which email alert sent a particular email I can see in the logs?
Even being able to find out which email template was used would work.
It seems like there should be a way to ...
0
votes
0answers
43 views
Apex Debug is not showing the errors correctly
I have trigger on Task Object as below.
trigger TaskTrigger1 on Task (before insert, before update,after insert) {
If (Trigger.isBefore) {
If (Trigger.isInsert) {
// TaskQueue is Group of ...
2
votes
1answer
42 views
Analyse apex logs
I am trying to analyse an apex log to find the operation taking maximum time. I am using log inspector.
Under Execution tree : Workflow:user duration is in negative ( -69,295) - What does this ...
3
votes
0answers
170 views
SFDX: Get Apex Debug Logs returns “undefined”
This is driving me insane - I am no longer receiving full log files when running SFDX: Get Apex Debug Logs via VS Code's command palette. Instead, I get an empty file with the correct file name, but a ...
1
vote
1answer
40 views
View debug logs to find which line is causing my error?
I've ran into an unexpected error in my lightning component and am trying to figure out where its happening/what's causing it so I can fix it. I must have skipped this section when learning Salesforce ...
0
votes
0answers
15 views
Splunk Event Log interval
We have our Splunk instance connected to an API user per the specs of the Splunk App for Salesforce.
One of the things we are trying to get more insight into is the event log so we can create alerts, ...
0
votes
0answers
25 views
Sdl.log file for Data Loader CLI jobs scheduled through Windows Task Scheduler
Can someone help me with sdl.log file setup
I'm facing issue in monitoring the dataloader jobs that are scheduled to run on daily basis through windows Task Scheduler.
The sdl.log file doesn't ...
3
votes
2answers
129 views
Mass delete Debug logs using Salesforce DX
In my developer sandbox the Apex logs count has exceeded beyond its limit and there are more than 1 lakh records created in it. I want to mass delete them, but not able to do so.
I am using the ...
3
votes
3answers
824 views
How to see anonymous code debug logs in visual studio code?
I installed the Salesforce CLI and the Salesforce Salesforce Extension Pack on Visual Studio Code because it's easier to write code than the Developer Console but I got a problem. I want to get the ...
0
votes
1answer
21 views
How to check debug logs for a user for whom tracing is not set
I need to check the debug logs when a user creates a case from the community. Obviously i will not be knowing which user will be creating a case in advance hence i cant set trace flag. How to check/...
0
votes
0answers
25 views
Apex Replay Debugger Not Getting Recent Logs
I'm trying to use the Apex Replay Debugger, but when I run the command SFDX: Get Apex Debug Logs... it is an hour behind the time. I have generated many logs since then, but still the most recent log ...
0
votes
0answers
11 views
Flow builder : Multichoice Picklist assignment not working
I'm trying to update a Contact record following a case creation.
The idea is to update the contact record multichoice picklist "Mailing list" with the aircraft model related to the created ...
1
vote
3answers
408 views
Visual Studio Code - Developer Console
I have been trying to use Visual Studio code over the Developer Console because I understand that this will be the new standard for Salesforce however I find myself using the Developer Console with ...
0
votes
0answers
42 views
Lead Validation Rule not showing up in Debug Log during Lead Conversion
This is a really strange behavior and I would like to know if you guys have faced this before.
We have "Required Validation for Converted Leads" enabled (as below):
The request was simple: Make sure ...
0
votes
0answers
22 views
Downloading Debug Logs in Subscriber Org
Recently my team was given access to a customer's org to investigate an issue. We were able to log into the subscriber's org with using the LMA. We were able to see the debug logs inside our package ...
1
vote
1answer
22 views
Developer Console Overwhelmed by Logs
So my developer console is overwhelmed by logs. I have a fair amount of regularly running (light) processes that overwhelm the web Sockets. It makes it very difficult in production to look into issues....
0
votes
0answers
7 views
Hybrid App- Bugs - Send logs from SDK´s transactions
In order to reproduce some bugs and errors I want to be able to send logs from a hybrid App created with Ionic-Cordova-Salesforce SDK.
How can I activate the logs from Salesforce SDK?
Can the ...
0
votes
1answer
92 views
Tracking Salesforce object changes - alternative tool for event monitoring
Is it possible to determine what process/trigger/code made a change to an object in SalesForce?
We have cases being created by Email2Case and there instances where we want to blank out the account ...
0
votes
1answer
166 views
Viewing/Loading downloaded Logs in Developer Console
Developer Console is a really powerful tool when it comes to debugging logs (specially with different perspectives). Developer Console provides an option to download logs, but is there a way to view/...
0
votes
1answer
31 views
Determining what process has updated a field
We are using Service cloud to provide services support.
Bulk of cases are created via email using Email2Case.
Emails submitted via internal (sales/support staff) addresses are generally related to ...
1
vote
0answers
315 views
How to get ApexLogs in an action called from LWC
I would like to know how to obtain the data that my apex method is generating step by step, system debugs. I have not seen any documentation on the internet which has some information of what I need.
...
3
votes
0answers
119 views
Exception.getStackTraceString() returning '()' on object with managed package trigger when debug logs not on
First of all, my question is very similar to this one and might actually be a duplicate, however there is no notion of a managed package or debug logs there.
We have an after insert trigger on ...
1
vote
1answer
29 views
Persisting Logs in Managed Packages
What is the best practice to persist logs from apex classes, batch jobs, and controllers? We are still in the development stage so we haven't considered LMA. We tried to store it in a custom object. ...
1
vote
1answer
437 views
to know more about (already output) in logs [duplicate]
While using system.debug for a list
I get an already output statement added in the logs as
USER_DEBUG|[]|DEBUG|lstApprovalDetails
(ApprovalDetails:[startDate=2002-01-03, status=Rejected], (...
7
votes
1answer
1k views
What is the purpose of Apex Class Trace flags?
I have an Apex Batch Class that I'm trying to view the debug logs for. I know that I can do this in the Dev Console, but the data and amount of logs its returning is causing the Dev Console to freeze. ...
0
votes
0answers
22 views
How do i get logs for a lightning component loading in salesforce android app?
I have added a lightening component to Salesforce, and its rendering fine in chrome on Salesforce and in Salesforce iOS app.
But, its not loading in Salesforce android app. and is showing blank.
Any ...
3
votes
3answers
283 views
How to analyze Apex CPU consumption
Is there a tool or a recommended approach to analyzing Apex CPU consumption based on a debug log?
For example, consider the log entries below.
18:47:41.12 (7012039114)|CODE_UNIT_STARTED|[EXTERNAL]|...
0
votes
0answers
50 views
System.Debug() appears to be summing additional logged values
I'm running the following code, and I just want to log the total amount of deletes, and the total amount of records passed into the method and return the total amount of records that were processed ...
8
votes
4answers
692 views
is there a way to check a debug statement belongs to which class
Is there a way to know if we can get class name or trigger or a component along with a debug statement like a system.debug line no and class to which it belongs?
I asked this because i came along a ...
2
votes
0answers
43 views
With Lightning UI enabled - is it possible to stop /aura Operation spam in Developer Console's log panel?
When I have Lightning UI Enabled, Open the Dev Console and toggle to the "Logs" tab, my log is spammed with nearly endless /aura operations.
This slows down my general experience in lightning as ...
1
vote
1answer
58 views
Debug statement truncated in Raw Log
It seems like something was implemented last spring that truncates long debug statements in the developer console. All the solutions say to view the raw log. I opened the raw log from both the ...
1
vote
1answer
44 views
Debug log Operation column “/services/data…”
We have an update that happens on leads and we are trying to understand what is the source.
i looked at the debug logs and saw the following info:
What does "/services/data/v26.0/sobjects/Lead/...
1
vote
1answer
41 views
ApexLog's field DurationMilliseconds is giving large values for Schedule jobs
I was trying to debug a issue for scheduleable class, I found out that it is taking approx 65,00,00,000 milliseconds which is equal to approx 180 hours. But if I open that debug logs and see execution ...
2
votes
1answer
1k views
How to obtain trigger log from Email2Case?
I have a trigger on EmailMessage that is looking at newly inserted emails sent for Email2Case, and parsing the text for certain trigger words and updating the case if found. This has been working, ...
2
votes
1answer
391 views
Developer Console Debug Logs Viewer
How can i see the entire body of the last debug log in developer console in Salesforce?
3
votes
0answers
105 views
Is Anyone Else Seeing sfdx force:apex:log:tail Only Using The SFDC_DevConsole DebugLevel Regardless of Setting --debuglevel Flag
Okay so I've read the answer here How do I set the log levels for force:apex:log:tail? as well I have read all the documentation I can find for the sfdx force:apex:log:tail command. And everything I ...
1
vote
1answer
23 views
How to get a debug log for a REST service in a managed package?
I have an error that occurs somewhere in a REST service in my managed package. I've been trying for hours to get some kind of debug log out of the subscriber Org but to no avail. Whenever I fire a ...
1
vote
1answer
67 views
Best practice to log exceptions in Salesforce [closed]
Salesforce generated many log files and from there it is very difficult to find out our desired logs (exception logs ).
What is the best practice to do that?
1
vote
1answer
516 views
How do I set the log levels for force:apex:log:tail?
I'm in SFDX/VSCode, using the sfdx force:apex:log:tail command. That makes it easy to pull up the latest log, but when I try to launch the debugger, it says I need Apex at FINEST and VisualForce at ...
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)?