38
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 ...
27
votes
Accepted
Math.ceil() issue. Am I losing my mind?
This is probably because when you divide an Integer by an Integer you get an Integer back which has the same value as Decimal.round(RoundingMode.DOWN).
system.assertEquals(1, 8/5);
system....
16
votes
Math.ceil() issue. Am I losing my mind?
Integer Division
In Apex Code, similar to Java, when there are two like numeric data types (e.g. both Integers), then they are calculated in a way that returns the same data type. Integers cannot ...
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 ...
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 ...
12
votes
Accepted
hashCode() is never called when adding to Maps and Sets
It took 2 months, but this is the "final" answer we got from Support on this topic. Note that the investigation by Tier 3 resulted in this Known Issue being filed which was ultimately the cause for ...
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 ...
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....
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.
11
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....
10
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 ...
9
votes
Accepted
apex:outputField not applying styleClass -- bug?
While cropredy's answer cites the correct documentation:
The style class used to display the output field component, used primarily to designate which CSS styles are applied when using an external ...
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 ...
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.
...
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 ...
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 ...
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 ...
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 ...
6
votes
Accepted
Error: Unknown property referenced in TestPage... Bug or Feature?
I believe this is a bug, because the following code does work:
<apex:page standardController="Opportunity">
<apex:variable value="{!0}" var="totalItemCount" />
<apex:variable ...
6
votes
Accepted
What is the 'INTERNAL' debug level?
I have been informed by technical support that R&D has investigated the issue, and that this value will be removed from the UI at some point. As such, we shouldn't use this value for debugging.
Community wiki
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 ...
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 ...
6
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 ...
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 ...
5
votes
Accepted
An interface extending a system interface causes process hangs?
The fact that the failure is described as an Internal Salesforce Error with a code virtually guarantees that some sort of Salesforce bug is involved. If you haven't already done so you should submit a ...
5
votes
Math.ceil() issue. Am I losing my mind?
My understanding is that when you divide an integer by an integer, it will always result in an integer. So when you divide 7/3, it's actually returning 2, which is why the Math.ceil() function is ...
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 ...
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<...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
bug × 193apex × 44
lightning-aura-components × 33
visualforce × 20
marketing-cloud × 11
lightning-web-components × 11
lightning-experience × 11
lightning × 10
unit-test × 10
soql × 9
salesforcedx × 9
error × 9
platform-bug × 9
developer-console × 7
javascript × 5
spring17 × 5
trigger × 4
email × 4
reporting × 4
salesforcedx-cli × 4
android × 4
batch × 3
visual-workflow × 3
query × 3
journeybuilder × 3