Questions tagged [bug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
41
votes
1answer
3k views

Lightning Experience Bug: Picklist Color Values for Lightning Dashboards not working (UPDATE: fixed in Spring 18!)

Update This issue I've originally found in Winter 17 seems not fixed in Winter 18 release. However the issue does not affect Report Charts based on Opportunity.StageName - but on Custom Objects it's ...
30
votes
1answer
1k views

An interface extending a system interface causes process hangs?

We're trying to implement dynamic batch processes to dispatch different classes. Specifically, we have integrated multiple systems, and depending on certain events, we dispatch callouts to those ...
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 ...
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 ...
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 ...
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(...
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 ...
16
votes
1answer
391 views

What is the 'INTERNAL' debug level?

According to Setting Debug Log Filters, the debug levels for each category are as follows: ERROR WARN INFO DEBUG FINE FINER FINEST However, when we create a new User Trace Flag (Setup > Logs > Debug ...
15
votes
1answer
3k views

Salesforce System Error when accessing a list in @AuraEnabled method

My Lightning Component controller: doActivateNext : function(component, event, helper) { var action = component.get("c.activateNext"); action.setParams({ bpiId : component.get("v.recordId"), ...
13
votes
1answer
294 views

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

Based on all evidence gathered there is a major bug in Spring '17 involving Custom Metadata Types and picklist values: what SOQL returns is different than what's saved in the database. To reenact: ...
13
votes
2answers
2k views

Any workaround for the bug with StandardSetController getSelected method?

I'm using a VF page and a controller to get the selected records in a view list and display some info. However the first time always fails (Related question), is there a different way to do this or a ...
13
votes
2answers
3k views

Large size Attachment upload auto-removed by Salesforce. Is it a bug?

I've a Visualforce page that uploads multiple Attachments selected by user. I used following code to upload attachments: ... <apex:repeat value="{!AttList}" var="att"> <apex:inputFile ...
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 ...
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 ...
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. ...
11
votes
1answer
278 views

Why are my Portal Users sharing their usernamespace with the world in Spring '13?

At the same time as the rollout of Spring '13, I'm encountering issues related to High Volume Customer Portal Users: their usernames are now clashing with users in other orgs. I'm aware that Portal ...
11
votes
1answer
4k views

Lightning: Get list view records

How can one get ALL the records from a list view in a visualforce page running in Lightning? (Since no checkbox for selecting are available) Similar old question. With an adaptation from that ...
11
votes
1answer
308 views

toLabel in @AuraEnabled Apex Lightning controller

EDIT: This problem seems to have been fixed on Salesforce's end. See Shamina's answer below. The SOQL toLabel function doesn't work in my @AuraEnabled method when called from a Lightning component. ...
10
votes
1answer
949 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 ...
9
votes
4answers
352 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 ...
9
votes
1answer
161 views

Winter 16 issue? Tooling API queries not working from Triggers, Visualforce

This looks like a Winter 16 issue, but would appreciate any other thoughts. Queries of tooling api objects (such a FieldDefinition) return no results when run in a trigger or a VF page, but they do ...
8
votes
1answer
1k views

lightning:radioGroup is allowing multi-select

I have a lightning:radioGroup that shows record types for an object: <aura:attribute name="recordTypes" type="String[]"/> <aura:attribute name="recordTypeValue" type="String"/> <...
8
votes
2answers
2k views

Spring'14 (bug?) with apex:repeat and sets

I think I may have found a bug with iterating over a set in spring'14. So I have some code that creates a set (using set so it will be unique) and then on the page it iterates over the set using an ...
8
votes
1answer
186 views

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

Suddenly this error came and displayed on the left panel. Why is this happening in Production org? Is this a Salesforce bug? Somebody in the Salesforce testing their usecases? Any thoughts?
8
votes
1answer
4k views

Are nested aura:if elements supported? Is this a bug or simply not supported? [duplicate]

Given this gist, you'll see that there's three revisions. The first revision dealt with stray tab characters, but the second revision came about because of an apparent bug. When clicking on the ...
8
votes
1answer
613 views

Does sObject IsClone() only works in Classic Aloha interface but not in Lightning Experience?

I've created an Apex trigger on CustomObject_A__c, it is working fine when I clone a record in Classic Aloha interface, but the trigger does not return True for isClone() sObject function call, when I ...
7
votes
2answers
959 views

Object clone does not work as expected

I have an object (not SObject!) with a member of type List, when I clone the object and add something to the list, the original record will also be modified: public class ThingToClone { public ...
7
votes
1answer
396 views

Why does Apex Code let me save a parameterized interface?

For some reason, I thought I'd see if interfaces support parameterization, as a matter of trying to optimize some code. Amazingly, the following code saved once: public interface ITriggerHandler<T&...
7
votes
2answers
450 views

Why can't I edit page layouts in Google Chrome in Winter 14?

When using the latest version of Google Chrome, the Layout Editor palette is empty, so we cannot add fields, related lists, buttons, or any other objects to the page. No console errors are reported. ...
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
1answer
259 views

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

I have an issue with Querying a record in a unit test with a custom set createdDate using the method Test.setCreatedDate(); static testMethod void test() { Account a = new Account(name='myAccount'...
6
votes
2answers
380 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 ...
6
votes
2answers
2k views

SVG Icons not displaying in Spring '17 pre-release environment

I'm seeing SVG icons not rendering in a Spring '17 environment. I'm using custom SVG lightning component from SLDS framework. The icons in my component continue to display correctly in existing Winter ...
6
votes
1answer
209 views

lightning-record-form failing when User doesn't have access to a field

There seems to be an issue with lightning-record-form in Summer'19. According to documentation it's supposed to take care of field-level security and it used to (not showing a field to which User ...
5
votes
4answers
2k views

Lightning component regex doesn't work

I have the following statements in my Lightning component's Javascript controller: console.log(/.*/.test("asd")); // prints "false" console.log(/(.*)/.test("asd")); // prints "true" When I run the ...
5
votes
2answers
764 views

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

I have added a validation in Account Trigger to prevent the deletion of Account record if the status is other than Archived for(Account objAccount: lstOldAccount){ if(objAccount.Status__c != '...
5
votes
2answers
659 views

Getting FIELD_INTEGRITY_EXCEPTION with double quotes in regex

As shown in the image, when trying to create a regular expression in a lightning component controller, the save from the developer console fails because of an error parsing the data.
5
votes
1answer
493 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 ...
5
votes
1answer
261 views

Bug with parser in lightning bundle definition

If you are trying to define a regex in a helper for a lightning component for example and you try to do something like this simple regex to match a single /: var myRegex = /\//; or var myRegex = ...
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 ...
5
votes
3answers
740 views

Javascript Remoting Update causing INVALID_TYPE_ON_FIELD_IN_RECORD for Integers

I'm passing a Javascript object through JS Remoting to update an Account record. However, if I update the NumberOfEmployees field, I'm getting the following INVALID_TYPE_ON_FIELD_IN_RECORD Employees: ...
5
votes
1answer
404 views

Stop SF Lightning from trying to open up Set Up Content in a new tab

When I am in Set Up and attempt to open something, like User Profiles for example, I always get this modal that asks We'd like to open the Salesforce page ... in a new tab and then when you allow it, ...
5
votes
0answers
149 views

New Salesforce BUG Winter '19: Some Report Charts do not render on Homepage anymore

We have created some reports using cumulative line charts. They did run and render fine in Summer '18. Now in Winter '19 the Report Charts (Standard Salesforce Lightning Components) are blank. It ...
4
votes
3answers
1k views

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

Two odd issues: Last night, I was unable to add a newly created Lightning Component via the Lightning Page Builder. I also re-saved an existing component and it disappeared from the list of available ...
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
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. ...
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 ...
4
votes
1answer
2k views

NullPointerException not occurring within try/catch

I'm writing a testMethod for a custom Exception class. As part of the testMethod I want to deliberately throw another exception to become the inner cause of my custom exception. E.g. public class ...
4
votes
1answer
754 views

Salesforce Cron Expression for every second and fourth Friday?

I want to run a class at 10 AM every 2nd and 4th Friday of each month. Came up with the expression below, but it's not scheduling correctly - only schedules the fourth Friday. Could it be that ...
4
votes
1answer
68 views

How to push source to Scratch org if project code exceeds 50mb limit?

I have a managed application which I'm now trying to move to DX platform of development, but I'm getting an error of exceeding maximum storage: Maximum size of request reached. Maximum size of ...