Questions tagged [debug-logs]
The debug-logs tag has no usage guidance.
133
questions
0
votes
0
answers
48
views
Global action - insufficient access rights on cross-reference id
On Opportunity Object, I have a global action button. This global action type is 'Create a record'. The purpose of this action is to convert the Opportunity into an Order.
It is working for me as a ...
0
votes
1
answer
53
views
Debug log do not trigger for Mobile actions
I have a custom detail page vf button on Opportunity, once the user clicks it, it runs few validations and redirects to another vf page. It works in Lightning experience in PROD and Sandbox in browser ...
0
votes
1
answer
218
views
execute method of batch apex not running from anonymous window
I have a batch apex that I made few changes. The functionality of the batch apex is to pull assets of a specific record type, and updates a specific field to true based on a criteria.
To test my ...
1
vote
1
answer
57
views
Capture debug log via subscriber access
I am getting an exception from managed package code and I need to capture debug logs via Subscriber access so that all details from managed package code are displayed.
How can I enable this setting to ...
0
votes
0
answers
191
views
`sfdx force:apex:log:tail` to only show [USER_DEBUG] logs not working
I'm connected to a Playground org in VS Code.
I have made and deployed a class to this org and would like to run some anonymous code in VS Code to test a method of the class.
I was able to do this by ...
3
votes
0
answers
61
views
Formatting and color of values of objects logged in chrome devtools is unreadable in dark mode
After the Winter 23' release added Lightning Web Security I started having a problem viewing the values of JavaScript objects.
Correct me if I'm wrong but to debug LWC in chrome devtools with LWS ...
0
votes
0
answers
177
views
Scheduled Apex Batch job taking too long to execute
I have one batch job which delete old account associations then create new account associations & update fields[ For which logic is written in a trigger]
Previously it was taking less time, it ...
0
votes
0
answers
60
views
Flow + External Service Failing with "The URI is invalid"
Summary: My POST operation fails, but my GET operation works.
Details:
I have successfully created an External service, using an OpenAPI API Spec with 3 endpoints. No auth is required.
3 endpoints ...
1
vote
0
answers
53
views
Replay Debugger Filters
Does anyone knows if we are able to filter Replay Debugger Logs?
I mean, lets say we have a collection of data, which will be iterated 1000 times. Let's say we are interested to see what data are ...
4
votes
1
answer
1k
views
Proxy on all Objects and Arrays logged in LWC - Salesforce
Good afternoon,
Witnessing strange behavior today in the browser's developer console when logging objects and arrays from my lightning web component. All objects and arrays are being logged as "...
2
votes
1
answer
105
views
Prevent flows from writing sensitive data to debug logs in plaintext
We have a screen flow that collects a password from the user using a Password field component. That masks the input on screen, but when looking at debug logs, the value of that field gets written to ...
0
votes
0
answers
592
views
Can't view debug logs in Developer Console - Failed to load data Log from Salesforce.com: Salesforce automatically deletes system logs 24 hours
The following error is coming up in a Sandbox Developer Console no matter what I try and it's been like this for weeks.
Video: https://www.screencast.com/t/ULztMIi0edS0
Failed to load data Log from ...
0
votes
0
answers
133
views
Unable to figure out why the Update Record element isn't working on my flow
I have a flow that is supposed to update a field if it meets a criteria.
This is the assignment element
This is the Update Record element
When I debug it using developer console, I can see its ...
0
votes
1
answer
401
views
Salesforce event monitoring log access required permissions
Have a requirement to create a permission set which will allow users to access the event log monitoring files. As per this link https://help.salesforce.com/s/articleView?id=000363350&type=1 User's ...
0
votes
0
answers
174
views
How to Find Debug Logs in Apex Test Class
Hey there this is my first Apex code and I'm having trouble finding my debug logs. Heres my Trigger and Test Class First, then below I'll try and explain all that I've tried so far.
trigger ...
1
vote
0
answers
51
views
Help with understanding debgf log on a decision element in a flow
I'm trying to understand what these lines mean when it says true and false on my debug log.
Line 1 says False | False
Line 2 says true | False
Line 3 says true
Line 4 says just false
What does the ...
1
vote
1
answer
292
views
Developer Console: Keep constantly open without stopping producing debug logs
If i open developer console and leave it open without any activity, i get a message after (e.g. 1hr) that
"Your Developer Console session has been idle. To resume logging and listening for ...
1
vote
2
answers
315
views
Hide Debug Logs of Managed package
We have a managed package installed, where we have performed several customizations. Now, it is needed to test the whole solution end-to-end. But i have to issues:
Managed package has a VF page ...
0
votes
1
answer
183
views
How to override logging on a particular APEX class
The document Debug Log Filtering for Apex Classes and Apex Triggers
says log filtering can be "turned off" for a particular class. How is this done? I have a class1 calling calling class2. ...
0
votes
1
answer
160
views
Debug log for AccountContactRelation trigger doesn't show up on after delete
I have a trigger on AccountContactRelation object, which tracks after update and after delete events.
When I update ACR record - I see the log on the after update trigger transaction.
But when I ...
1
vote
0
answers
89
views
Apex Log manager needed, or way how to filter big amount of logs
I'm looking for some tool, or extension for managing/ searching Apex logs.
My main problem is I can produce very easily, a lot of logs by myself and ofc I'm not alone.
Basically, when I reload one ...
0
votes
1
answer
320
views
Apex Debug logs not showing Statement executes
I am trying to run a batch class from anonymous window. In the debug logs i am not getting the statement executes. Only method entry/exit is showing. Debug level for apex is set to finest. It keeps ...
-3
votes
2
answers
460
views
Is it possible to know WHY SOQL retrieves EMPTY?
I have a SOQL in an APEX Class, and it works okay when I'm logged as a System Administrator User, but it gets empty when I log as a different user. I suppose it could be permissions and field ...
0
votes
0
answers
76
views
High API usage, repeated calls!
Over the weekend our Salesforce environment is now getting thousands of API calls every hour.
We have custom integrations that have not changed, nor have any API's been deprecated, or any server ...
0
votes
2
answers
227
views
Get Logs on User Password Reset Button
Greetings Salesforce Friends!
I've got a bit of a weird situation around Users in a Community getting the wrong email when we use the User Record Reset Button.
Is there a way to get the logs for this ...
0
votes
1
answer
405
views
What is the 'SFDC_Devconsole' debug level?
I am trying to retrieve error logs for a batch apex class and am creating a new user trace flag for the running user. The standard preset is 'SFDC_Devconsole' - will this trigger debug logs to show ...
1
vote
1
answer
188
views
Is there a way to check @RestResource usage frequency?
Can you please tell me, if there is a way to check @RestResource usage frequency?
Short summary: I have a legacy @RestResource which is supposedly not used by anyone. I want to check that.
I have ...
1
vote
1
answer
2k
views
Logs for flow execution are not detailed
I am building a basic public page form on the salesforce communities, creating a 'Property lead' record in our org. By giving edit access to 'Guest User' I can create the records with no problems. I ...
-1
votes
1
answer
1k
views
How can I capture Debug Logs for Web to Lead form?
The error is
Salesforce could not create this lead because of the reason listed below. For more information about this error or help with Web-to-Lead, please contact Customer Support.
Reason: Use one ...
1
vote
1
answer
207
views
Is there a way to create Trace Flags for certain user using SFDX?
I'm just tired of manually setting trace flags on my org.
My question is, is it possible in any way to create trace flags using SFDX? Or is there any APEX script to create these trace flags for ...
0
votes
1
answer
87
views
EDA: Enabling debug logs
I am working on creating some classes on top of EDA package. Inside the EDA package, there are some debug statements which is controlled by a field Enable_Debug__c on Hierarchy Settings custom ...
0
votes
1
answer
96
views
Difference between sending leads into Dev account as opposed to Sandbox account? Leads not sent into Sandbox with similar settings as Dev account
We have created a webapp to send Leads into the salesforce system, which works great in our Dev account. However when using the same app for another business, which has a Sandbox account, the Leads ...
0
votes
1
answer
150
views
Is there a debug log level for Salesforce Streaming?
Is there a debug log level for Salesforce Streaming ?
For example, let's say that, I have subscribed to PushTopic or Platform Events?
Is there a debug log level setting which allows to see the logs ...
1
vote
2
answers
2k
views
Standard Rest API - Logs
In my organization I am doing a simple standard Rest API Call to insert Account:
URL : https://MyInstance.salesforce.com/services/data/v51.0/sobjects/Account
Body : {
"Name"...
0
votes
1
answer
884
views
FATAL_ERROR|System.QueryException: expecting a colon, found ')'
We have issue with one of the apex class which stopping us from configuring a record through lightning component. When we debugged the issue we found this error in debug logs and could not identify ...
1
vote
1
answer
331
views
VSCodedx is no longer showing execute anonumous debug logs in the output panel
All of a sudden my vscode isn't showing the debug logs from execute anonymous in the output panel. Other messages show up in there such as when I deploy a source to org, Turn on apex debug log for the ...
1
vote
1
answer
1k
views
Who runs Email-to-Case
I am trying to debug the case trigger when I create a case via Email-to-Case. But I don´t know which user run the trigger. Any help?
0
votes
0
answers
213
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 ...
3
votes
0
answers
302
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
1
answer
565
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
2
answers
135
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
1
answer
819
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
1
answer
1k
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
0
answers
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
0
answers
178
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 ...
-1
votes
3
answers
5k
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-...
2
votes
0
answers
276
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
0
answers
102
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
1
answer
123
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
0
answers
1k
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 ...