Posts

Showing posts with the label debug

View Debug Information for Your Wired Properties Spring'23 release

Image
  Access debug information for wired properties and methods on a component via custom formatters in Chrome DevTools. Where:  This change applies to custom Lightning web components in Lightning Experience, Experience Builder sites, and all versions of the Salesforce mobile app. This change also applies to Lightning web components in Open Source. Why:  Previously, to debug data received with a wired property, you had to use a wired function to return your data and inspect the deconstructed  data  and  error  properties. How:  Consider a wired property that looks like this. import { LightningElement, wire } from 'lwc'; import getContactList from '@salesforce/apex/ContactController.getContactList'; export default class ApexWireMethodToProperty extends LightningElement { @wire(getContactList) contacts; } NOTE  For a full example, see the  apexWireMethodToProperty  component in the  lwc-recipes  repo. To start debugging you...

Governor limit SOQL 101 being suppressed

System.LimitException: Too many SOQL queries: 101 Did anyone faced scenario where SOQL 101 governor limit is not being reported to user interface (UI), instead it is being logged into debug logs ? Please provide your thoughts in the comments if there exists any possible scenario. As far as I know, Governor limits can not be suppressed and will be shown to user on the UI. However I am facing below scenario where SOQL 101 limit is being logged into debug log and not being shown in the UI. 1.User converts the lead. 2.Account, Opportunity, Contact created. 3.User is successfully redirected to newly created account page. 4.All the references are correct. Like ConvertedAccountId, convertedOpptyId etc. When I go to the Debug logs, There SOQL 101 (System.LimitException: Too many SOQL queries: 101) is being shown. If dig more in the debug logs then I found that this exception came while Opportunity Before Update trigger. The question is, Since all this is happening in sing...