Skip to main content
18 votes
Accepted

Enums as Map keys don't work in Batchable

I think I've figured it out. In java, the hashCode for an enum is not consistent across different executions. My Map is being initialized in the Batchable start() (with Database.Stateful). Then I ...
NSjonas's user avatar
  • 10.2k
18 votes
Accepted

Is Apex Casting is not transitive?

You can't hop more than one data type per cast; each additional conversion requires another cast. For example, the following works: Integer i = (Integer)5.2; But you can't write: Object o = 5.2; ...
sfdcfox's user avatar
  • 495k
12 votes
Accepted

When are unhandled exception emails suppressed and not sent? or Why do I not always get exception emails even though I've set them up?

Found this interesting statement in the idea Need a reliable developer script exception alert mechanism: Salesforce R&D has acknowledged the issue but states it is a feature frozen area ...
Daniel Ballinger's user avatar
10 votes
Accepted

Is it impossible to dynamically instantiate an instance of lightning:menuItem?

Currently no. The issue is that the body attribute for buttonMenu is of type Aura.ComponentDefRef[] vs the usual Aura.Component[] Because of that, items passed to v.body are expected to be templates ...
Kris Gray's user avatar
  • 3,106
9 votes
Accepted

Lifecycle hooks in extended LWC fail if Base LWC called connectedCallback

The LWC lifecycle hooks are simply methods from the LightningElement which can be implemented at any level within the LWC inheritance hierarchy. It happens that the lightning-datatable itself makes ...
Phil W's user avatar
  • 36.8k
8 votes
Accepted

Ghost processes / batch processes (NA34 and NA39)

Seems I got some attention after submitting a case or this post or whatever, just got this notification: A bit late but at least I know the cause On March 16, 2017, Salesforce identified a ...
Eric's user avatar
  • 54.2k
8 votes

Ghost processes / batch processes (NA34 and NA39)

Not sure this is worthy of an answer, but too much to put as a comment. The only time I have seen anything remotely similar was with this and I was able to prove to support that a job had run and ...
Phil Hawthorn's user avatar
8 votes

Is it impossible to dynamically instantiate an instance of lightning:menuItem?

After all this debugging, it appears to be a bug in the framework. Essentially, what's happening is that by the time the menu gets around to rendering the body in changeVisibility, the attribute ...
sfdcfox's user avatar
  • 495k
8 votes
Accepted

Map with object as key behaves weirdly

Maps and Sets have different internal implementations depending on the debugging level of your TraceFlag, if any. This is for debugging purposes. The highest, FINEST, behaves differently than the ...
sfdcfox's user avatar
  • 495k
7 votes

Passing calculated values to components makes them immutable

This was intentionally designed this way, and reason for that is an edge case. You can still change the value, you simply need to clear the reference before setting it first. ({ changeValue: ...
Kris Gray's user avatar
  • 3,106
7 votes
Accepted

SLEEPY Strikes again - Validation bugs

I've reproduced the problem with setting the OpportunityLineItem.Quantity to zero. As you would expect, there is a field integrity exception: Quantity (quantity must be nonzero) message added to the ...
Daniel Ballinger's user avatar
6 votes
Accepted

Internal Server Error - What's in a GACK?

The best publicly available information on the structure of a gack is this blog post from Josh Kaplan Specifically, These two numbers, respectively, are the identifying ID for that specific event, ...
ca_peterson's user avatar
6 votes
Accepted

Converting Set to List creates duplicates of my Sobjects

Map and Set are internally based on HashMap and HashSet, respectively. In these classes, there are "buckets" created for each hashCode, and within each bucket, you have a list of values that ...
sfdcfox's user avatar
  • 495k
6 votes
Accepted

Param is unnamed__0 if StubProvider used on interface (instead class)

This is subtle... If I write an object to implement the ShopBackend interface, there's no requirement that this object chooses the same parameter names as the interface. It only has to match the ...
Aidan's user avatar
  • 13.7k
6 votes
Accepted

Resubmit for Security Review without Patches

If there are bugs that require urgent fixing against previous versions of the package, before you will get through Security Review, this needs to be resolved by raising a case with Salesforce against ...
Phil W's user avatar
  • 36.8k
5 votes

Can't add lightning:progressStep in lightning:progressIndicator using aura:iteration

I've been playing around and it seems that its a bit buggy. From my point of view, it doesn't like to get the body rendered dynamically while updating the currentStep. The following code is a work-...
Sergio Alcocer's user avatar
5 votes
Accepted

Creating an encrypted text field through metadata deployment - invalid length, maximum is: 255

Maximum length of text encrypted field is 175. Salesforce just shows incorrect error message you can read it here Are limited to 175 characters because of the encryption algorithm.
Oleksandr Berehovskyi's user avatar
5 votes

Are @future methods ignored in @TestSetup blocks?

Your setup definitely can run future methods, so they are not ignored entirely. This test passes for me on cs14 using any API Version between 35 and 40: @IsTest public class DemoFuture { @...
Adrian Larson's user avatar
  • 150k
5 votes
Accepted

Not full URL in Referer header in Visualforce since Spring '17

Please refer the Salesforce Spring ’17 Release Notes, this was implemented to enhance security of the platform. Updated Referer Header When loading assets outside of Salesforce, or navigating outside ...
Saroj Bera's user avatar
  • 14.8k
5 votes
Accepted

How Can I Access Site.com Studio for a Community Builder Site After Winter '17?

Navigate to Communities | Builder Now observe the URL .Remove of all the extra parameters after domain.The URL would look like below https://googleflowauth-dev-ed--sitestudio.ap1.force.com/ This ...
Mohith Shrivastava's user avatar
5 votes
Accepted

Passing complex structured data type from Lightning to Apex Controller causes Internal Error with Gack Id 263119078

I didn't even open a Salesforce ticket for this one, just observed that to avoid this Salesforce internal platform bug I can pass my model as JSON string var action = component.get( "c.saveModel" ...
Patlatus's user avatar
  • 17.2k
5 votes
Accepted

AsyncApexJob table has additional record initially? platform bug?

See What are the differences between the different possible jobs processed in the 'AsyncApexJob' object? for more information on jobs, but specifically they cover ApexToken: An 'ApexToken' job is ...
sfdcfox's user avatar
  • 495k
5 votes
Accepted

Percentage in Lightning Components is not working correctly

The Spring'18 Release Notes reveal, that this will be fixed for lightning:input in the upcomming release: lightning:input formatter—The percent-fixed formatter is new for type="number". It ...
itsmebasti's user avatar
  • 6,467
5 votes

Is Apex Casting is not transitive?

In Salesforce My_Field__c we create field with Number actually stores the decimal type values even if we define decimal places as 0. It is never be an Integer until we transform the value explicitly ...
Santanu Boral's user avatar
4 votes
Accepted

Can't open classes in developer console

This is a known Salesforce bug. It's affecting Summer '16 orgs with more than 2,000 Apex classes. If you go here, you can check the This Issue Affects Me button and Salesforce will notify you when it'...
Dan Jones's user avatar
  • 7,227
4 votes
Accepted

SOQL ignores : WHERE RequiredLookup__c = null

Salesforce support confirmed this behaviour and they are willing to fix it. Therefore they asked me to create the following Idea. Please promote. Thank you! https://success.salesforce.com/ideaView?id=...
itsmebasti's user avatar
  • 6,467
4 votes

Ghost processes / batch processes (NA34 and NA39)

This just in from SF: On March 16, 2017, Salesforce identified a misconfiguration in our test environment that allowed Apex callouts and outbound messages to reach endpoints outside of the test ...
Aidan's user avatar
  • 13.7k
4 votes

Is Apex Casting is not transitive?

It's not really a bug, because the returned value is not an instance of an Integer. Here's a snippet to demonstrate: SObject record = [SELECT Integer__c FROM MyObject__c LIMIT 1]; Object value = ...
Adrian Larson's user avatar
  • 150k
4 votes

When are unhandled exception emails suppressed and not sent? or Why do I not always get exception emails even though I've set them up?

Ralph, One of the things to check is if the Send Apex Warning Emails checkbox is checked on the respective User record for those specific Users within your Salesforce instance. Also as per this ...
Jigar Shah's user avatar
  • 1,148
4 votes
Accepted

User Visibility in Lightning Components in Summer '19 Release?

You seem to have been impacted with this known issue: Field Integrity Exception when saving a Lightning Component in Developer Console which references User Fields. This is scheduled for a patch ...
Jayant Das's user avatar
  • 30.6k

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