Skip to main content

Questions tagged [debug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
0 answers
179 views

Error when trying to debug "Apex language server could not provide information about valid breakpoints"

Every now and then when I want to start a debug sessions from a log file, I receive the following error: Apex language server could not provide information about valid breakpoints I have a workaround,...
PieterJacob's user avatar
1 vote
0 answers
76 views

Flow assignment not populating field

So I have a flow that assigns values to create records and it appears that all but one field assignment is not working/populating despite the assignment correctly appearing in the debug log. The ...
patriciajlim's user avatar
0 votes
0 answers
282 views

Flow Error message: Unable to process the email template...Argument cannot be null

Can anyone help with this Flow error message: Error Occurred: We were unable to process the email template. Error Message: core.email.template.TemplateRenderingException: Argument cannot be null. It ...
AwesomeAdmin8's user avatar
0 votes
0 answers
44 views

Debug user movement on store to reproduce error on local environment?

I am in a situation where I am encountering an error on my sandbox environment, I know how to trigger it, but I don't know what is throwing that error. Is possible to somehow log everything from when ...
Carlton Banks's user avatar
2 votes
1 answer
1k views

Error when trying to debug log file: Unable to retrieve breakpoint info from language server, language server is not ready

I receive the following error when trying to debug a log file: Unable to retrieve breakpoint info from language server, language server is not ready. I already reloaded my VS Code window, what ...
PieterJacob's user avatar
0 votes
1 answer
914 views

System.debug() in production code (Apex)

What, if anything, is the overhead of leaving System.debug() statements in Apex code that's deployed to production? Obviously, if Debug Logging is started for a User who is executing the code there ...
John Lewis's user avatar
1 vote
1 answer
176 views

There is a way to download developer console debug logs filtered?

Hi Guys! There is a way to download developer console debug logs filtered? I made this filter on developer console and my wish is to download only this and not all debug file.
Hugo Corrêa's user avatar
3 votes
1 answer
871 views

How to create a no-code test for a Asynchronous Path in Flow?

I'm trying to create some tests for Flows using the no-code test feature within Flow builder. According to this article, the ability to add tests for scheduled paths was rolled out in Winter '23, but ...
DrElyk's user avatar
  • 43
0 votes
1 answer
115 views

Build Test Class For Invocable Apex Class (Invalid type: FilterObjectsByIds.filter)

I'm having difficulties building a test class for an Apex Class I found online, being used in a Flow to help update records from a many-to-many relationship. With the current setup, I get the error ...
joshholloway's user avatar
1 vote
1 answer
1k views

Unable to locate modules/c folder while debugging LWC in browser

So I've been working on several LWCs for SF community and suddenly the modules/c folder in browser's DevTools (both Firefox & Chrome) which contained all the custom components present on page ...
RangeTrooper's user avatar
0 votes
1 answer
187 views

Error While Cloning Products with Opportunity through Apex

I'm getting following error: List has more than 1 row for assignment to SObject Please find the code: //Clone Products Related With Opportunity OpportunityLineItem oppLineItemCloneRecord =...
Rose 's user avatar
  • 123
1 vote
0 answers
89 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 ...
Hulk Buster's user avatar
0 votes
1 answer
494 views

Unable to see log entries when running a test class

Apologies if this has been explained elsewhere but I cant find an answer specific to my problem. I'm trying to test a trigger that prevents a contact from being entered if the last name is "...
IvanTT's user avatar
  • 13
0 votes
1 answer
267 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 ...
Duck The Developer's user avatar
0 votes
0 answers
2k views

Asynchronous Flow only working on create in Debug mode

I have been working on a roll up flow to sum up a field on a custom object and then update a field on the parent object with that total. However I have used the asynchronous path and while it works ...
Aaron's user avatar
  • 3
1 vote
0 answers
148 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 ...
karmelos's user avatar
0 votes
2 answers
1k views

How to debug a flow that is triggered after creation of a CaseComment?

Something is not going right in my flow and it's not crashing, so I don't get an e-mail with a trace. But if I want to debug my flow, the dialog asks me to select a CaseComment. Which is impossible, ...
Sander de Jong's user avatar
1 vote
1 answer
4k views

LWC - Debugging using devtools [duplicate]

I am new to writing LWC's. I am good with APEX and Visualforce but I am trying to debug Javascript. More specifically right now i am trying to Trouble Shoot Quick Actions that is a LWC. I seen that ...
CodeMonger's user avatar
6 votes
1 answer
691 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 ...
Rechu's user avatar
  • 452
0 votes
0 answers
95 views

Unable to add record into multiple publication lists using SSJS script Activity in marketing cloud

Am trying to insert records into many publication lists from a DE(say XXX - this DE has emailaddress, subscriberkey, listid, list name, status) using SSJS. But no output is coming. Please review my ...
DSK's user avatar
  • 1
1 vote
2 answers
1k views

Enable Lightning Components "debug mode" for a guest user

Is it possible to turn on Debug Mode for Lightning Components for a guest/anonymous/not signed in user? When I go to Setup -> Custom Code -> Lightning Components -> Debug Mode, I cannot see ...
Mark Beavis's user avatar
-2 votes
1 answer
966 views

HOW TO Avoid three or more nested LOOPS [duplicate]

for(String objectName : jsonMap.keySet()){ // List<map<String,String>> listObjects=jsonMap.get(objectName); List<Map <String, String>> ...
ABC's user avatar
  • 1
0 votes
0 answers
1k views

Test Email Deliverability not working

I am working in Apex email services. I encountered that the email is not delivering. Therefore I checked the Test email deliverability which was also not working. Checked the deliverability in our ...
Adarsh Srinivasan's user avatar
2 votes
1 answer
2k 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 ?
manb's user avatar
  • 95
0 votes
0 answers
275 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 ...
dacology's user avatar
  • 2,992
-1 votes
3 answers
8k 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-...
Vignesh S's user avatar
4 votes
6 answers
4k 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 ...
Akshay Vasu's user avatar
1 vote
2 answers
2k views

Converting Datetime to Date returns date in the past

Datetime conversion of a custom datetime field to a date value doesn't work correctly. This behavior isn't explained in Salesforce's documentation as far as I know. Set your org & user to Pacific ...
YXY's user avatar
  • 130
1 vote
1 answer
2k views

How can I find out API name of Process Builder decision/actions? (myDecision, myWait, myAction)

I get emails when an error is occurred from a Process Builder or Flow, such as below: DECISION: myDecision4 Outcome executed: myRule_5 However, its very hard to debug because the API names does not ...
Ian K's user avatar
  • 13
0 votes
0 answers
373 views

How do I troubleshoot @future jobs that simply vanishes?

I am working in an environment where some @future jobs seems to vanish. It's a quite complex org so I'll try to explain as clearly and detailed as possible. When a lead changes Status a new record ...
Muxlix's user avatar
  • 1
0 votes
1 answer
595 views

How to track the source of Custom Object updates?

I'm facing many parasite update subscription API events for Key_Feature__c object. Some of them are happening on the records that describe the activities finished in deep past. These records do not ...
Pavel Koryagin's user avatar
0 votes
0 answers
218 views

Debug Warnings in VSCode

A coworker gets warnings while editing JS files (e.g. misspelling variable names, missing semicolons, missing closing brackets or parentheses...). That doesn't happen on my VSCode. I don't see ...
Tom's user avatar
  • 1
0 votes
1 answer
219 views

Determine if the current user has active debug logs turned on

In apex, can you dynamically check if the current user has an active debug session (i.e. Setup -> Monitoring -> Debug Logs)? I looked at the DebuggingHeader, but it doesn't quite do the trick https:...
PartOfTheOhana's user avatar
0 votes
1 answer
2k views

How to test webservice trough workbench

I have a webservice and want to test this in workbech but get the error: [ { "errorCode" : "NOT_FOUND", "message" : "The requested resource does not exist" } ] webservice @RestResource(...
Thomas's user avatar
  • 2,310
1 vote
2 answers
52 views

Keep log file at 23:00 hrs

I have a scheduled job running at 23:00 hrs, Is possible to keep a log file from that hour saved somewhere? So I can see the degubs and errors in the morning? A lot of thanks, Reg
Mar Andrés López's user avatar
0 votes
0 answers
371 views

Inserting an object is causing it to be updated multiple times before it finishes

Been trying to navigate around this opportunity object that has been causing us deployment issues for a while now (aka anytime a new anything is added, high chance of older test classes to error out ...
J. Zhang's user avatar
  • 313
3 votes
1 answer
233 views

Query Debug Mode Information Via Apex

Is there any way to Query the Debug Mode Information? I am looking to get information about all the users for whom debug mode has been enabled via apex? if there is any other way than apex, i would ...
sanket kumar's user avatar
  • 15.4k
0 votes
1 answer
37 views

Comparing String Variables give different results

I was working on a POC and as a process of which I ran into a weird issue of comparing two strings differently gives different results. I might be missing something simple but wanted to see if there ...
Anurag's user avatar
  • 2,236
3 votes
1 answer
2k views

VS Code + sfdx: debug logs [duplicate]

Until a few weeks ago, vs code use to have a reasonable error message if there was an error when deploying. But I notice the last few weeks this is change and it is not very descriptive the problem, ...
manza's user avatar
  • 1,953
1 vote
1 answer
1k views

Flow Not Creating Account Share Record (Works in Debug Mode)

I have a flow that is working via the flow builder Debug page, but not when triggered in Salesforce. It worked several weeks ago, so I wonder if there's something with Summer '19 that's causing an ...
Rochelle C's user avatar
4 votes
1 answer
1k views

Is there any way to change definition of default user created for scratch org without using custom sfdx plugin? [duplicate]

Is there any way to change definition of default user created for scratch org? I would like the default Administrator user to have properties UserPreferencesUserDebugModePref ...
Patlatus's user avatar
  • 17.3k
1 vote
1 answer
2k views

Can not enable debug logs because there are "too many logs" [duplicate]

I am trying to set up debug logs for a user, but every time I try it, I get the following error: Having an active trace flag triggers debug logging. You have 329 MB of the maximum 250 MB of debug ...
Novarg's user avatar
  • 5,284
2 votes
3 answers
2k views

apex replay debugger - command 'sfdx.launch.replay.debugger.logfile' not found

Problem with launching apex replay debugger. Cant even launch. I have in vsc Salesforce Extension Pack and work with it. run SFDX: Turn On Apex Debug Log for Replay Debugger. get debug logs.(level ...
Nikita's user avatar
  • 33
10 votes
3 answers
1k views

Adding a System.debug changes code behavior

I have the following code Map<Account, Integer> accountsMap = new Map<Account, Integer>(); Account a = new Account(); accountsMap.put(a, 1); a.name='Bob'; //System.debug(accountsMap); ...
Oles Malkov's user avatar
  • 2,161
0 votes
2 answers
1k views

How print return value in debug - return (WS_BankStatementResponse) System.JSON.deserialize(jsonReplacedString, WS_BankStatementResponse.class);

public static WS_BankStatementResponse parse(String json){ String jsonReplacedString = json.replace('"date":', '"startDate":'); System.debug('String Replaced : '+jsonReplacedString); ...
Tarsbir Singh's user avatar
0 votes
1 answer
287 views

Where to look for in debug: list index out of bounds

I am trying to debug a piece of code where I get the error : list index out of bounds: 0 In this case do I need to look for:ZcheckoutBaseFor.validateConfiguration() or could this also be :...
Thomas's user avatar
  • 2,310
1 vote
1 answer
1k views

Too Many SOQL Queries error

I am coming into this problem in my debug logs. But when I'm reviewing the logs I am only seeing individual reads of SOQL query counts from various apps such as : Number of SOQL queries: 5 out of ...
Zoom_v's user avatar
  • 3,894
1 vote
1 answer
182 views

Debug a Beta version of the managed package

Is it possible to debug a Beta version of the managed package? It seems that LMA works only with those apps that were published on AppExchange. Thank you.
oobarbazanoo's user avatar
0 votes
1 answer
166 views

System.debug prints twice [closed]

I encountered this weird thing: when I use: System.debug(); I get everything printed twice... and it only happens for the Account object. I'm guessing this is a reason why my API callout doesn't ...
Nerijus's user avatar
2 votes
1 answer
722 views

Avoid "Variable Assignment" log event creation

Due to Salesforce logsize limit (250 MB) I have to reduce the log file issued from one of our process in the org. After a lot of code-optimization and removing all useless statements the logfile is ...
J.Dillinger's user avatar