Skip to main content
39 votes
Accepted

Lightning navigation does not refresh the state of components, how to fix a bug

We're running into this too. We expected it to be the case that if we navigate to a Lightning Component URL once, then walk through other pages, then navigate back to it with a different URL, we'll ...
Charles T's user avatar
  • 11.1k
13 votes
Accepted

Massive Spring '17 bug: SOQL returns wrong Custom Metadata Type picklist value

You can track this bug at https://success.salesforce.com/issues_view?id=a1p3A000000eshdQAA It's scheduled to be fixed in the next patch release. We've identified the exact set of circumstances that ...
Avrom Roy-Faderman's user avatar
13 votes

Lightning navigation does not refresh the state of components, how to fix a bug

I found a relevant approach. In the component with lightning:isUrlAddressable simply add a change handler for the pageReference state. Component: <aura:handler name="change" value="{!v....
Gopalakrishna Boddepalli's user avatar
13 votes
Accepted

Do 2GP Managed Packages send email notifications on unhandled Apex errors?

Yes, unhandled exception emails do work with 2GP. I confirmed this by creating a managed 2GP with a Visualforce Controller that tries to divide by zero if a certain custom metadata record is set to ...
Vivek M. Chawla's user avatar
13 votes
Accepted

Possible bug in SOQL LIMIT clause

This will be the Alias Notation for objects. E.g. SELECT count() FROM Contact c, c.Account a WHERE a.name = 'MyriadPubs' In your case LIMIT43 is actually an alias for User. So you will find this ...
Daniel Ballinger's user avatar
12 votes
Accepted

lightning:radioGroup is allowing multi-select

You've forgotten a required attribute. The radioGroup is grounded in HTML's <input type="radio" />, which uses a "name" attribute to determine groups. If you forget to specify the name, the ...
sfdcfox's user avatar
  • 500k
11 votes
Accepted

Salesforce System Error when accessing a list in @AuraEnabled method

Looks weird,might be a bug. As a workaround, try passing the stages array as string from the component and deserialize the string to List<BpiStage> in the apex controller. Controller.js ction....
Praveen's user avatar
  • 10.1k
11 votes
Accepted

lightning:datatable actions menu is hidden

As it turns out the overflow properties had to be set to visible not just on the slds-scrollable_y class but also on the slds-scrollable_x class. Problem solved.
Mossi's user avatar
  • 3,996
8 votes
Accepted

Lightning component regex doesn't work

The reason for this seems to be that the framework replaces the first line's asterisk character with the \u002A Unicode escape sequence before serving the files to the browser. I'd report a bug if it ...
neonblitzer's user avatar
8 votes
Accepted

Add Error method with escape = false doesn't work in lightning Experience why?

See the idea HTML tags in the error message are escaped even if escape = false is specified at sObject.addError() in Lightning UI and Salesforce1 Sounds like they aren't going to fix/change it. ...
Daniel Ballinger's user avatar
8 votes
Accepted

SOQL bug for null required-lookup fields?

This occurs because of an optimization during the "query planning" phase of a query. The query optimizer removes null values from filters on required fields. This optimization allows Salesforce to use ...
sfdcfox's user avatar
  • 500k
8 votes

Is this expected behavior for String.containsOnly()?

Logically, yes, because the empty string does not contain any disallowed characters. Disallowed characters are any characters not explicitly listed in the "only" specification. So in this ...
Phil W's user avatar
  • 37.6k
7 votes

Test.setCreatedDate not working in SOQL Query with condition date set in future

It seems that you can set a CreatedDate on a record in the future, but when querying for that record you cannot use a date in the future as condition Although it is not likely that you will want to ...
Wim's user avatar
  • 574
7 votes
Accepted

what/who.(RecordType.Id vs RecordTypeId) SF Bug

Update: This is now logged as W-10188438. At this time, there is no ETA for a resolution. The basic problem, as stated by support, is: The named entity usecase is missed for person account in ...
sfdcfox's user avatar
  • 500k
7 votes
Accepted

Found an interesting issue in Apex (compiling Illegal forward reference)

Forward references can only ever occur in the same method/class/code block. It means "referencing a variable that is declared later in the method." As such, one does need to be careful with ...
sfdcfox's user avatar
  • 500k
6 votes
Accepted

Getting FIELD_INTEGRITY_EXCEPTION with double quotes in regex

You'll want to log a bug with this; it appears that the quotes do need to be matched in Spring 17, and this behavior also does not appear in Winter 16. For now, you should be able to escape one quote ...
sfdcfox's user avatar
  • 500k
6 votes
Accepted

BUG? - Suddenly Cannot save (existing) lightning Components or add components to Lightning Page Builder

We hit this error this morning and tracked the problem down to our use of the lightning:card component. The title attribute changed from Component[] to String. We were using the title attribute as a ...
Stuart Greenberg's user avatar
5 votes

Object clone does not work as expected

Initially, I thought that clone() creates shallow copy of the Original and a pointer to the original one. I tried the following to support my argument public class ThingToClone { public List<...
Mahmood's user avatar
  • 5,976
5 votes
Accepted

getPopulatedFieldsAsMap() Doesn't Return All Fields: Bug or Expected Behavior?

The apex dev team saw Andy's case and the resulting discussion and logged bug W-3223800 for this. The behavior you're seeing is a bug. The fix is scheduled for Spring 17, although safeharbor as ...
ca_peterson's user avatar
  • 23.1k
5 votes
Accepted

Case assignment rule is always executed in the test class

I have tried this and found that I can get it to both work and to fail. Let me explain how. I took the basic principle as the OP; A single Case Assignment Rule, assigning to a queue with the ...
Simon Goodyear's user avatar
5 votes
Accepted

Bug with parser in lightning bundle definition

For my usecase, I was able to find a workaround by doing a regex from a string instead of raw like so : var myWorkingRegex = new RegExp('/'); since you do not need to bound your regexes in a string ...
Etienne Rocheleau's user avatar
5 votes
Accepted

Sfdx export error on Windows 10

As answered there: it would seem that SFDX does not handle spaces in the LOCALAPPDATA environment variable (while still claiming to support Windows). The workaround is to use short names. In a ...
Mac's user avatar
  • 186
5 votes

Lightning navigation does not refresh the state of components, how to fix a bug

I have the same issue with you, aura init event is not getting fired when second time visits the same lightning component. My workaround is firing the refresh event after navigating to the Lightning ...
Zeeman Chen's user avatar
5 votes

Is MIXED_DML_OPERATION in unit tests broken?

Likely not a bug. Note from the documentation on sObjects That Cannot Be Used Together in DML Operations: You can insert a user in a transaction with other sObjects in Apex code saved using ...
Adrian Larson's user avatar
  • 151k
5 votes
Accepted

Bug? String.split chopping off empty trailing value

According to the documentation String Class, here you need to pass the limit which is optional one. The optional limit parameter controls the number of times the pattern is applied and therefore ...
Santanu Boral's user avatar
4 votes

BUG? - Suddenly Cannot save (existing) lightning Components or add components to Lightning Page Builder

The bug that resulted from this is W-3446814 and was an unversioned change to lightning:card. I have been told the fix is going out in an emergency release to all instances today. I have already ...
Doug Chasman's user avatar
  • 10.1k
4 votes

BUG? - Suddenly Cannot save (existing) lightning Components or add components to Lightning Page Builder

Just wanted to add to Stuart's answer above, but I can't comment yet :( Not only did the Title attribute change to a String from Component[], it's also required now. The Footer attribute was also ...
user38840's user avatar
  • 149
4 votes

Unknown error in Salesforce Production Org. Is this a bug in Salesforce?

Looks like it is reported as Known Bug on salesforce due to beta app named 'Dev Hub'. Please look at the following link. https://success.salesforce.com/issues_view?id=a1p3A0000001ChdQAE&title=...
Ricky's user avatar
  • 873
4 votes
Accepted

Bug in Lightning Button Base Component with `afterRender` in Spring 17

I belive that is happening because you are overriding the afterRender method and you are not calling the superAfterRender method. The following code will work fine. TestComponentRenderer.js ...
manjit5190's user avatar
  • 8,063
4 votes

How to force open a new Tab/Window in Lightning Experience from anchor links?

I don't know if you found the solution, but I got in the same situation, and I noticed when we pass the full url it opens in a new tab or window. <a href="https://test-dev-ed.my.salesforce.com/<...
Rogerio Honorio's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible