Questions tagged [bug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
20
votes
2answers
515 views

hashCode() is never called when adding to Maps and Sets

Given the following Apex class, which implements equals() and hashCode() as per the Using Custom Types in Map Keys and Sets documentation: public class Foo { private Integer x; public Foo(...
21
votes
2answers
6k views

Using an sObject as a Map key

Are sObjects supported as the keys for Maps? I thought they were, but it appears that any subsequent changes to the key sObject break the mapping to the value. This might be better shown with an ...
11
votes
7answers
1k views

Develop Console Code Coverage Issues (Winter 15' Release) - Production vs. All Test

Wondering if this is a bug or there is something about CC that just doesn't make sense to me. Below is screenshot after screenshot of example of red-lined code coverage that makes no sense. ...
3
votes
2answers
1k views

Case assignment rule is always executed in the test class

No matter what to do, the case is always assigned by the assignment rule!! You can try the scenario and code which are attached in the post. But, I have tried to execute the code in the developer ...
5
votes
1answer
492 views

Decimals pretending to be Integers when used in Maps

I came across some very strange behaviour when working with a Map with Decimal keys today. It seems like the Decimal type can't handle Integer assignments properly, but allows them nonetheless. I've ...
17
votes
3answers
7k views

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

I am using lightning:navigation component in our project, and it doesnt refresh the state of component, when the url changes. To be clear, lightning framework just keeps the state of component/page ...
21
votes
3answers
7k views

Math.ceil() issue. Am I losing my mind?

Ok I hope I am mising something here as I really don't want this to be a bug. The following piece of code returns 2. Per my understanding of the ceiling functionality, the result should be 3 because ...
4
votes
1answer
580 views

Error: Unknown property referenced in TestPage… Bug or Feature?

Salesforce telephone support tells me that I should not use Visualforce variables in this way because they're only intended for display in a Visualforce page and not for inclusion in a calculation. ...
11
votes
2answers
2k views

How to Report a Salesforce Issue

While creating report in Salesforce, we can add the date filter to filter the records. This is allowing from date as today and to date as past date. The Salesforce should throw validation error in ...
12
votes
2answers
114 views

Dev Console Debug Log Becoming Unreliable?

Has anyone else noticed that the Debug Logs in the Developer Console are becoming notoriously unreliable? I am finding that often when I run code through Execute Anonymous in the hopes of examining ...
9
votes
4answers
346 views

Is MIXED_DML_OPERATION in unit tests broken?

We have a nightly integration that runs all tests and reports any errors against production, currently on Winter '19. Everything was fine until January 14th, 2019, when 13 previously passing tests ...
2
votes
1answer
722 views

LockerService in Lightning Components is blocking Canvas element color fill completely

When LockerService is activated, it makes <canvas> element unusable. And if I deactivate LockerService, it would display <canvas> in filled color. Consider following code and actual ...
28
votes
1answer
369 views

Strange Allowed Apex Syntax

Found some crazy apex syntax and I have no clue what it does. public Account<List<String<Contact>>> whatIsWrongWithApex; Is this a defect? Should this do something? Compiler not ...
2
votes
2answers
8k views

How to use output text date format to respect locale [duplicate]

Possible Duplicate: Visualforce Locale specific date format Is there anyway to get the <apex:outputtext> tag to respect a user's locale when printing out dates? Example Controller: public ...
10
votes
1answer
941 views

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

I was very excited to learn about the new getPopulatedFieldsAsMap() method added to the SObject class with Summer '16. Unfortunately upon testing I found what appears to be a bug based on my ...
4
votes
3answers
5k views

How do we pre-populate force:inputField in Lightning Component?

I'm trying to preset a Lookup field when my Lightning Component form loads, but the field is always showing as nothing selected, even though the value exists in the field itself. The code looks like ...
3
votes
1answer
474 views

Unable to Save Record with on load initialized Date Field in Lightning Component in Summer '16 org

Record cannot be saved if we have an ui:inputDate control in the Lightning Component and is preset to a date value (like today) on component initialization in a Summer '16 organization. The code is ...
6
votes
2answers
1k views

PushTopic Test: Duplicate Name Bug?

I am writing a test class for a utility class for inserting PushTopics. Despite explicitly setting @isTest(SeeAllData=false) on my test class, I am getting a System.DMLException because of a ...
6
votes
2answers
379 views

URLFOR/Component.Apex.OutputText in Unit Test causing Internal Server Error?

Background I'm trying to build the usual "URL hack" to default some field values when a new record is created. This is a simple override that basically has a page like: <apex:page ...
5
votes
1answer
7k views

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

I have a visualforce page that has links in it, but those links are specifically set to target="_blank", and they open new tab in Aloha interface, but in Lightning Experience they open the links in ...
4
votes
3answers
4k views

Customer Portal gets 404 error trying to display logo. Bug?

I am just re-factoring a Customer Portal (not Communities) on an old org and I come across the following error - just wondering if anyone has seen something like this before. Please have a look at the ...
4
votes
1answer
212 views

LockerService with Lightning Components & d3 transformation issue

I'm experiencing issues with d3 v4.4.0 and v4.7.3 when I'm trying to redraw some chart. There is a problem with g tag decomposition. When I try to redraw some element: rect.transition() ....
2
votes
1answer
60 views

Dynamic sObject Lookup field throws “SObject row does not allow errors” if lookup is entered record name that do not exist in org

Feels like I'm not having a good day at all with platform :-) ... another day and another issue with platform dynamic sObjects :( So I'm trying to create an sObject record dynamically from a VF page. ...
1
vote
2answers
2k views

lightning:datatable actions menu is hidden

The actions menu that is supposed to show when you click on the downward arrow on the right-end of a row is not showing. My component is dead simple: there is a lightning:datatable inside it ...
1
vote
1answer
667 views

Unable to position LEFT when showing popover using lightning:overlayLibrary

I'm trying to generate a popover but it seems the position is always right. I tried to make the position go left using nubbin class slds-nubbin_right-top, but with this the nubbin arrowhead shows up ...
0
votes
1answer
107 views

Did salesforce changed sender profile implementation? Bugs for me

Today a message of salesforce popped up: Unfortunately it popped up after we had a journey activity that had send emails. We changed nothing at our sender profiles (that work with ampscript) or the ...