Skip to main content

Questions tagged [debugging]

Debugging is Force.com's way of printing the specified message, in string format, to the execution debug log with the specified log level. Called using System.debug which takes either single parameter of message or two parameters of message and log level.

Filter by
Sorted by
Tagged with
0 votes
1 answer
68 views

"Unfortunately, there was a problem" error in flow builder

I updated my flow in flow builder and I am now getting this error systematically when executing the "Run asynchronously" branch of my flow: "Unfortunately, there was a problem. Please ...
iggy1977's user avatar
1 vote
2 answers
71 views

Method does not exist error

Hi All I have written this code. can you help me spot the error public class CollectionDataTypes { public static void mymethod(){ list<integer> Listofintegers = new list<integer&...
Satyam Joshi's user avatar
2 votes
1 answer
52 views

User Name returning "null" at seemingly random instances

Okay this is a weird one. I have an aura component that I put on our user record pages that display that user's open opportunities. I pull the recordId from the URL, run SOQL to grab all open opps for ...
SethH's user avatar
  • 41
3 votes
1 answer
117 views

Debug Log shows Flows executing in a different order to Flow Trigger Explorer

Just wondering if someone can help me to understand what I'm seeing in our org. I'm trying to document the order in which our automation runs when a Lead is created. My problem is that I'm seeing ...
Matt's user avatar
  • 81
0 votes
1 answer
66 views

Security review failed due to debug lines

So the salesforce security review of my mannaged package failed due to data in log lines they have stated the below: Issue Description Revealing information in debug statements can help reveal ...
ravent's user avatar
  • 57
2 votes
1 answer
379 views

Why is my flow not returning the same results live as when I debug it?

I need your help to point me towards what might be wrong with my flow... I have created a screen flow that fetches a contract record's company account and all the contacts in that company who are ...
Sebbie's user avatar
  • 91
0 votes
1 answer
46 views

Apex Replay Debugger Checkpoint Action Script

There is a replay debugger checkpoint functionality named "Action Scripts" that appears to not be documented. I'd like to learn more outside of my own personal tinkering. Can anyone link ...
rStrunk's user avatar
  • 67
0 votes
1 answer
105 views

Visualforce unknown property on inner repeat for wrapper list

When I am trying to reference each of the list values within RowData I get an "Unknown Proprtty" error. When I remove the inner repeat below the table renders with the values that are not in ...
Unknown_Person's user avatar
1 vote
0 answers
78 views

Best Workaround for missing Login-As on Salesforce Mobile App

As an unfortunate, there seems to be still no Login-As for Admins and Devs to test, review and debug the Salesforce Mobile app impersonated as an other user. This is extremely important but since 2014 ...
Uwe Heim's user avatar
  • 28.4k
2 votes
1 answer
219 views

Anyone have a reliable recipe for debugging an LWC running in a Digital Experience in Chrome?

Having read Debug Components in an Org With LWS Enabled and various posts from the last couple of years on debugging problems, I still can't set a breakpoint in the JavaScript of my LWCs contained in ...
Keith C's user avatar
  • 136k
5 votes
1 answer
456 views

How to develop Lightning LWC and Aura Components after Winter 24 Release without 10 minutes waiting and without cache clear and without Debug Mode?

Today I went nearly crazy while working on an Aura component. I'm saving my work but the UI does not update. Damn! Waiting a while (about 10 minutes) my changes are finally showing up. This is ...
Uwe Heim's user avatar
  • 28.4k
0 votes
1 answer
57 views

.get method not returning value even though I copy/pasted the key into it

I'm creating a map based on a custom object in my org. Basically this is the code for it. Map<String, String> translationMap = new Map<String, String>(); List<StageNameTranslation__c>...
potato46's user avatar
-2 votes
2 answers
142 views

getting a 'Missing return statment required' even though i have one

I have a method: public static String doCallout(String requestJson, String recordId){ HttpRequest req = new HttpRequest(); req.setEndpoint(END_POINT_URL); req.setHeader('Content-Type', '...
potato46'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
1 vote
1 answer
657 views

CORS Issue Preventing LWC Component from Accessing Salesforce Apex Controller - No 'Access-Control-Allow-Origin' Header Present

I am working on a Lightning Web Component (LWC) in Salesforce that fetches data from a custom Apex controller. Unfortunately, I am facing a CORS (Cross-Origin Resource Sharing) issue that prevents the ...
Lakshmi's user avatar
  • 61
0 votes
0 answers
73 views

Can I test live support via Embedded Chat without Chat User license?

The company I started to work for has asked me to fix the Embedded Chat, but I have no experience with Salesforce and can't find an answer to my question so far. The company has Service Cloud licenses ...
cawecoy's user avatar
  • 101
2 votes
1 answer
2k views

Why Mobile Debugging does not work on MacOS13/XCode14/iOS16.4? Why no inspectable apps are shown in Safaris Develop-Menu?

After a long journey I was able to find out how to get a CSS-Inspector for iOS. I have answered my own question for that here: How to Run and Debug Salesforce Mobile App on the desktop? (reloaded 3rd ...
Uwe Heim's user avatar
  • 28.4k
0 votes
0 answers
231 views

Setting data in LWC lightning datatable isnt working

I have a lightning datatable ecxTerritories.html //random divs <!-- this code below works <div class="slds-col slds-size_1-of-1 slds-m-bottom_medium acc-info" lwc:if={...
Amax1's user avatar
  • 121
2 votes
0 answers
151 views

What is the fastes way to completely reload an Aura Component during debugging for iPhones after code changes? How to avoid any caching?

After doing some debugging of an Aura Component on a real iPhone, I went almost crazy because I needed to kill/restart the Salesforce mobile app at minimum 2 times and sometimes even more often to ...
Uwe Heim's user avatar
  • 28.4k
3 votes
2 answers
1k views

How to Run and Debug Salesforce Mobile App on the desktop? (reloaded 3rd time and many years later...)

I was struggling with mobile development from day one of Lightning Experience and the Saleforce Mobile app. Always I felt a huge pain and gave up mobile development and put my focus on desktop, ...
Uwe Heim's user avatar
  • 28.4k
1 vote
0 answers
363 views

Apex Replay Debugger: list of size x too large to display

I am trying to debug an Apex Class for Salesforce B2B Commerce. In this class I am querying the Order Delivery Method records but when I try to see these records in the debugger it says list of size 7 ...
RanRag's user avatar
  • 145
0 votes
0 answers
583 views

Autolaunched flow debug success but not updating records

Autolaunched flow to update partner claim based on opp field and then update record name. Says success but no records updated. Both update record thingies are pasted below and showing "All ...
Marian Luisi's user avatar
0 votes
1 answer
250 views

Before save flow not running field update on triggered record

Have a flow with 1 decision element with 4 outcomes to reflect the various Lead Sources I have. For each outcome, I have a field update to the same picklist field. Example If Lead Source is 'B' then ...
AwesomeAdmin8's user avatar
1 vote
0 answers
1k views

LWC Error Invalid reference

I have js file in the lwc that keeps giving me the Error Invalid reference, but it still works 100%, i just can't make new changes. I would like to add a validation that there has to be something in ...
Brian23Gt's user avatar
  • 119
0 votes
0 answers
621 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 ...
user135792's user avatar
2 votes
1 answer
3k views

Debug Screen Flow in Rollback mode

How can I debug a screen flow in rollback mode? I can not see that option anymore. I am on Chrome browser. Win 23 release. Can not remember if I previously used to get this, and if this is a release ...
SFDC Dev 27's user avatar
0 votes
1 answer
400 views

Invocable Apex Error: The number of results does not match the number of interviews that were executed in a single bulk execution request

I have researched StackExchange, as well as Salesforce Developer community. I cannot seem to get around this error. Ultimately, I am trying to pass into a screen flow a list of RecordTypes that a user ...
Anton's user avatar
  • 5
6 votes
4 answers
7k views

Facing issue in debugging LWC Javascript with Chrome DevTools

I am trying to debug LWC JavaScript using Chrome's DevTools. However I am unable to see /modules/c component under sources tab of Chrome DevTools. The same is working fine for other sandbox. Does ...
LakhanP's user avatar
  • 831
1 vote
1 answer
599 views

what are the components of the variable assignment log entry

on finest, my log entry looks like this: 09:30:19.490 (8458283328)|VARIABLE_ASSIGNMENT|[231]|this|{"c":"0x2980752a","tasks":"0x6e159af1"}|0x3de7ae9e It's a ...
Henrietta Martingale's user avatar
0 votes
1 answer
88 views

DML currently not allowed - trying to log exception in a custom object inside the constructor

I have a controller extension that makes a get request inside the constructor to get some information from an api. public extension(ApexPages.StandardController stdController) { Account ...
Владимир Джоване's user avatar
1 vote
1 answer
562 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 ...
Giorgos Galaios's user avatar
0 votes
0 answers
491 views

Flow runs successfully for Community user only when "Show details of what's executed and render flow in Lightning runtime" deselected

I have a flow that is to be used on a community. When debugging the flow fails for the community user when "Show details of what's executed and render flow in Lightning runtime" is selected ...
Shaquille's user avatar
1 vote
0 answers
40 views

How to debug static resource with chrome dev tools? [duplicate]

I am using a lightning web component that loads a JavaScript static resource. I have loaded the static resource with loadScript. How do I find this static resource in chrome dev tools to debug it? I ...
gburnett's user avatar
  • 181
1 vote
0 answers
192 views

Salesforce Barcode API Testing and Debugging

I am working with the Salesforce Barcode Scanner API for continuous scanning. For some reason it just keeps resetting and exiting the scan mode, even using the original example. Could you please tell, ...
user's user avatar
  • 61
1 vote
2 answers
603 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 ...
Giorgos Galaios's user avatar
1 vote
0 answers
18 views

LWC Datatable button navigation to record page does not work [duplicate]

I have a very simple datatable which has a column with a button that should navigate the user to the record page of the record row. HTML template and JavaScript controller: import { ...
DevelBase2's user avatar
0 votes
1 answer
109 views

executeBatchMethod() runs but fails to trigger start(...) method

I'm debugging a batch class which auto creates a transaction record (a custom SObject). The following is my executeBatchMethod() , @InvocableMethod(label='desc.' description='desc.') public static ...
Kishan B's user avatar
  • 136
2 votes
1 answer
1k views

Map contains null value for a key but returns false when called from another method

I'm using the following conditional logic in my class if(mapCountry.get(rec.Country__c).Allowed__c != null) The value of mapCountry.get(rec.Country__c).Allowed__c accessed via debug is false. However ...
Kishan B's user avatar
  • 136
0 votes
2 answers
3k views

How to make a date dynamic SOQL query for Database.getQueryLocator?

My goal for this class is to run for every missing day up until today, with just one call from an anon block. I would like some assistance with creating a dynamic soql query that will work within the ...
Jebert's user avatar
  • 15
0 votes
1 answer
266 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
2 votes
1 answer
2k views

How to debug an OrderItem in flow?

Context I am on a Sandbox environment. I’ve created a flow that is triggered when a OrderItem is Created or Updated. To be sure that it runs smoothly, I wish to use the debug function, with the ...
Wulf's user avatar
  • 33
2 votes
1 answer
2k views

Map.get(key) returns null

I am working on a callout that returns info about the Asset object. Based on the response payload, I need to check whether a corresponding asset exists in SFDC or not. If an asset record exists and if ...
Balaji Pooruli's user avatar
6 votes
0 answers
337 views

Debug Logs for PostInstallHandler SuperUser

I have a PostInstallScript (without sharing) that schedules a job which I need to see in Debug Logs. However, the job is run under SuperUser mentioned in this question. I have gone through the answer ...
Mariia Illarionova's user avatar
0 votes
1 answer
420 views

Managed Package's Platform Event is not triggering

I have logging setup in my managed package using a platform-event published immediately with a trigger on that platform event which creates a Log__c record based on the data in the platform event. ...
Rob D's user avatar
  • 56
2 votes
0 answers
904 views

Why is this overridden method being called twice?

I have three Apex classes. ObjectController is abstract and has an abstract method, table. PeopleController and LoanBorrowerController both extend ObjectController and each override table, the first ...
Chuck's user avatar
  • 977
0 votes
0 answers
222 views

Class not executing in Debug...?

I have a class which is invoked by Lightning Component action button. For some reason it does not seem to be executing the first part of the class in the debug log. Here is the Lightning Component ...
Zoom_v's user avatar
  • 3,894
0 votes
1 answer
186 views

How to write a method with more than one parameter in the Developer Console?

I'm trying to debug this method on the developer console: string groupId=''; List <String> selectedUsers=''; List <String> updatedUsers=''; Boolean userUpdatedBool=false; UsersController....
j1992b's user avatar
  • 29
3 votes
0 answers
4k views

How do I track my published platform events in Production?

I know we can't query a platform event. But do we have any option to track the published platform events? I have implemented platform events and Mulesoft is subscriber. What if in Production, Mulesoft ...
Jairaj's user avatar
  • 41
0 votes
1 answer
1k views

How can I get the full value of a variable while debugging Apex?

I'm using VS Code with the salesforce extensions to debug a test method. A query executed by the method is returning no records when I think it should be returning one. So I click on the "Debug ...
Chuck's user avatar
  • 977
1 vote
1 answer
840 views

Issue with spread operator in LWC Salesforce for Sandbox Environment

In the lookup component when am searching the name with (onchangesearchinput) by entering the value, here calling a method from server side class the data is returning from backend but it is not ...
Prathamesh 's user avatar

1
2 3 4 5
8