Questions tagged [platform-bug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
49 votes
4 answers
2k views

How can we get "Developer" bugs logged with Technical Support?

I recently found a bug, which I mentioned on The Force.com Discussion Boards, as well as submitting a case, and after a few days fumbling around with the case, they closed it by saying that they only ...
sfdcfox's user avatar
  • 481k
22 votes
3 answers
778 views

Is it possible for a test class to create data outside of the test execution context?

If you have a test set to SeeAllData=true, and you publish a platform event that has a trigger that inserts a record, will that data actually be created in the org? trigger PlatformEvent on ...
martin's user avatar
  • 12.6k
20 votes
4 answers
9k views

Unexpected behavior with ISBLANK and CONTAINS functions in Visualforce Page

I've reduced my issue to the following example: <apex:page > <apex:variable var="blank" value="" /> <p> Contains(blank, 'foo'): <apex:outputText value="'TRUE'" rendered="{!...
Jason Clark's user avatar
  • 11.8k
20 votes
3 answers
4k views

Rest Routing with Multiple Wildcards / Supporting REST Routing for Nested Resources

Question Running into a SalesForce REST mapping issue involving multiple wildcards in an url. Is this not supported? Is there anyway to supporting routing for nested resources? My Setup I have this ...
David Staley's user avatar
18 votes
1 answer
5k views

Why does ApexPages.StandardController getId return a String?

I'm writing some new code, and I came across a curious situation. We are using a dynamic piece of code that determines how a record should be handled based on its ID value (e.g. different objects have ...
sfdcfox's user avatar
  • 481k
16 votes
3 answers
1k views

Is Apex Casting is not transitive?

Seems as though casting is not transitive in some cases. Consider trying to get an Integer from an SObject number field. Integer myInt = (Integer) mySObject.get('My_Field__c'); Throws: System....
NSjonas's user avatar
  • 10k
15 votes
1 answer
1k views

Enums as Map keys don't work in Batchable

I'm running into some weird behavior when using an Enum as a Key in a map. This same code works fine in other contexts, but not when in batch. I have an Enum to represent currency types: public ...
NSjonas's user avatar
  • 10k
15 votes
1 answer
2k views

Bug? Why doesn't JSON.serialize support DescribeSObjectResult?

JSON.serialize supports DescribeFieldResult, meaning that I can do this: return JSON.serialize(Account.Name.getDescribe()); However, when I try to serialize the SObject itself, I experience an ...
sfdcfox's user avatar
  • 481k
15 votes
1 answer
157 views

Passing calculated values to components makes them immutable

I'm calculating a value while I pass it to a component. But for some reason this makes it immutable, so I can't update it in my component. These are some cases I played with: <aura:application ...
itsmebasti's user avatar
  • 6,359
14 votes
2 answers
4k views

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?

The Background According to the help docs When unhandled Apex exceptions occur, emails are sent that include the Apex stack trace and the customer’s org and user ID. However I frequently encounter ...
Ralph Callaway's user avatar
14 votes
3 answers
4k views

SOQL ignores : WHERE RequiredLookup__c = null

I just figured out, that SOQL ignores null checks on required fields. It seems to expect that required fields can never be null. In my case it's a new field, so a bunch of records actually have null ...
itsmebasti's user avatar
  • 6,359
13 votes
1 answer
246 views

Developer Edition with Namespace: duplicate triggers?

In my namespaced Developer Edition org, I started using Cloud 9 IDE, which, despite being a beta, is pretty amazing. However, in one of my orgs, Cloud 9 refused to work without any explanation. I plan ...
sfdcfox's user avatar
  • 481k
11 votes
4 answers
236 views

Ghost processes / batch processes (NA34 and NA39)

3-30-2017 Just got a call from sf tier one wanting me to show them how to replicate the issue SMH. They then point me to the dev forums and closed the case ugh We are seeing multiple customers having ...
Eric's user avatar
  • 54k
11 votes
1 answer
6k 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 ...
Jose's user avatar
  • 2,102
11 votes
3 answers
2k views

Generic SObject Getters Return Null for Boolean fields?

Question Am I taking crazy pills are is it unexpected behavior for the generic sObject getters to return null for boolean fields? Background Was troubleshooting a null pointer error and noticed ...
Ralph Callaway's user avatar
11 votes
1 answer
1k views

CSRF (Cross-Site Request Forgery) in Visualforce Pages on Public Force.com Sites

Background On one of our public Salesforce Sites (Force.com Site) we allow users to create or/and update contacts "within" salesforce. To do so I'm using <apex:form>. In case Javascript is ...
Christian Deckert's user avatar
11 votes
1 answer
2k views

Getting [Object object] and incorrect updates from attribute change event in <lightning:input />

I am trying to leverage the new (as of Winter '17) <lightning:input /> field to take advantage of the built-in field validation. However, if I am using several <lightning:input /> tags in ...
dsharrison's user avatar
  • 3,992
11 votes
1 answer
1k views

Total Batches increase during the run of a batch (again)

I experienced a batch that changed (increased) the #TotalBatches during its execution. 104 total batches Reload. 106 total batches I experienced this year ago (see this question Total number of ...
Robert Sösemann's user avatar
10 votes
1 answer
3k views

Error on uninstalling package via apex

I am getting the below error while uninstalling a package using metadata service. This issue is coming sometimes Error:- . common.exception.SfdcSqlException: ORA-20011: 10743448001074344800126 ORA-...
Sonal's user avatar
  • 545
10 votes
3 answers
971 views

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

This question is about a potential Lightning platform bug I ran across today. In my search for a resolution I ran across this post from last year that was never answered, that seems to have the ...
Grekker's user avatar
  • 1,062
10 votes
1 answer
1k views

Are @future methods ignored in @TestSetup blocks?

Ok, this is going to become a quite long question. The main goal is to document strange platform behavior and maybe learn more why this happens. It all started with that test which failed because ...
Robert Sösemann's user avatar
10 votes
1 answer
886 views

FOR UPDATE returns old values

I use FOR UPDATE locking in a query but when the first execution completed, the second execution (started while records were locked) seems to use the old data set. I played around for a while and ...
itsmebasti's user avatar
  • 6,359
9 votes
1 answer
323 views

Map with object as key behaves weirdly

consider the following code : Map<Object, Object> m = new Map<Object, Object>(); String s = 's'; m.put(IAccounts.class, s); // any type here does the trick System.debug(m.containskey(...
Julien Gaïotto's user avatar
9 votes
1 answer
11k views

What causes REQUEST_RUNNING_TOO_LONG test errors?

For most of our clients we've got a basic ant script that does a test deploy every night to make sure all the tests pass. Occassionally, we'll get a REQUEST_RUNNING_TOO_LONG error. What's strange is ...
Ralph Callaway's user avatar
9 votes
0 answers
421 views

Upgrade of Unlocked Package changed RecordTypeId of existing records

I have an Unlocked SFDX Package with a CustomObject__c and two Record Types RTypeA and RTypeB. The object and the two types have existed in the package before my update. Before the upgrade all ...
Robert Sösemann's user avatar
8 votes
1 answer
847 views

SLEEPY Strikes again - Validation bugs

I've got a class which uses a wrapper class to handle OpportunityLineItem's which both have ids and don't have an id. Before calling an upsert on these records to update them, I extract the records ...
battery.cord's user avatar
  • 8,767
8 votes
1 answer
1k views

Unable to implement HTTPMock from Managed package in Local Test Methods - Complete example with package

A while ago SF began failing tests that make callouts without an HTTP mock. When they did that we were unable to deploy some trigger as a managed package made a callout whenever an Opportunity was ...
Eric's user avatar
  • 54k
8 votes
0 answers
3k views

getRecordTypeInfosByDeveloperName doesn't work with duplicate Developer names

Our product comes with a couple objects including RecordTypes. In our customer org I'm adding some RecordTypes and experienced, that I can give them names that the packaged types already have. So now ...
itsmebasti's user avatar
  • 6,359
7 votes
3 answers
5k views

Scheduled batch "already scheduled"

I had a batch job that I tried to start. Its "startup" method that launches it checks to see if it's already running by querying the asyncjob object, then starts it only if it's not running already ...
Shane McLaughlin's user avatar
7 votes
2 answers
4k views

Email Alert Fails with Sites User "INSUFFICIENT_ACCESS_OR_READONLY, user does not have access to use approval assignment email template: []"

Question Is there anyway to get workflow email alerts to work when sent based on an action from a Sites user? Background We have an integration that pushes records into our system via a force.com ...
Ralph Callaway's user avatar
7 votes
3 answers
797 views

Data Not Available? Can't edit a custom formula field formula

Any ideas why I would get a "Data Not Available" error when editing a custom field? In this specific instance I'm editing a formula field, and I'm able to edit and save changes to the description and ...
Ralph Callaway's user avatar
7 votes
2 answers
2k views

Internal Salesforce bug: "Cannot grant or remove a profile with modify all data, without having the modify all data permission yourself."

We receive "Cannot grant or remove a profile with modify all data, without having the modify all data permission yourself." exception message when it shouldn't appear. When there are two users, User ...
Patlatus's user avatar
  • 16k
7 votes
3 answers
9k views

Percentage in Lightning Components is not working correctly

It seems like Lightning isn't capable yet, to display percentage values intuitively. I used many different ways to display the value with input and output formatted as percentage and all the ...
itsmebasti's user avatar
  • 6,359
7 votes
2 answers
535 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. ...
sfdcfox's user avatar
  • 481k
6 votes
3 answers
1k views

System.QueryException: No Such Column - Strange RunAs Behavior with Summer '14?

Question Is there any known reason a SOQL Query would return a runtime System.QueryException on a custom field in test methods, in particular one one via a parent lookup in a test? I would have ...
Ralph Callaway's user avatar
6 votes
1 answer
3k views

Salesforce api v28 not rendering CSS styling when rendering as PDF

I'm creating a Visualforce page rendered as a pdf ( renderAs="pdf" ), and the page won't render any of my CSS styling. I am wrapping my <style> with <head> as shown below. <apex:page ...
Scott Pelak's user avatar
  • 7,484
6 votes
2 answers
856 views

System.UnexpectedException: User defined type found in unsupported code path

I have a complex codebase containing numerous custom classes, subclasses, inner classes, and enums. (I specifically mention this, as I have a hunch the enums are the cause, but I can't replicate in a ...
James Davies's user avatar
  • 1,104
6 votes
2 answers
757 views

Losing StandardSetController selected records with first visit to VF page

I have a VF page that leverages a custom object's StandardSetController to compare records. I created a custom button to allow users to select records of that object from a related list and compare ...
geeljire's user avatar
  • 1,256
6 votes
1 answer
1k views

Standard Controller behavior with not available ids - behavior changed?

Question Do standard controllers no longer throw exceptions if the current user doesn't have access to the passed in id? Has this always been that case or did this just recently change? Hoping to ...
Ralph Callaway's user avatar
6 votes
1 answer
225 views

Troubleshooting a Record Sharing Mystery

Update: Totally rewriting/simplifying this question now that I've zero'ed in on the core issue. I'm sharing an Account, Program B with a public group called Access Program B's Data. As part of that ...
Benj's user avatar
  • 11.2k
6 votes
0 answers
1k views

lightning:input behaves strangely with Non-US(german/french) locale

In my app there are many users with a German or French locale. Both have in common that they use comma as decimal separator (opposed to Apex, JS and US-citizens which use a dot .) The dot instead is ...
Robert Sösemann's user avatar
5 votes
1 answer
941 views

Lifecycle hooks in extended LWC fail if Base LWC called connectedCallback

If I extends a base lightning-datatable like this Lifecycle hooks in the extended LWC will not work when the Base Component is calling connectedCallback. connectedCallback will be called but clicking ...
Robert Sösemann's user avatar
5 votes
4 answers
2k views

HTML5 Date pickers today stopped working in Salesforce1 on Android

I have a Salesforce1 app that uses native HTML5 date(time) pickers. This wonderfully worked on all supported mobile platforms, on the desktop and in the one/one.app test page. This morning (August ...
Robert Sösemann's user avatar
5 votes
1 answer
2k views

Internal Server Error - What's in a GACK?

Background I have been working with Salesforce Support for several weeks now trying to get them to escalate an internal server error with GACK 2134764861-123797 (1611479512) (1611479512). After a ...
dsharrison's user avatar
  • 3,992
5 votes
1 answer
333 views

AsyncApexJob table has additional record initially? platform bug?

I noticed when creating a new dev org, and running my first batch job. I then query the AsyncApexJob table and there are 2 records instead of the expected 1. There seems to be a default record in ...
nickforce's user avatar
  • 417
5 votes
1 answer
10k views

Example of using String.format() with a number / does this function even work?

Per the docs format(String, List<String>) Treat the current string as a pattern that should be used for substitution in the same manner as apex:outputText. Which would lead me to think ...
Ralph Callaway's user avatar
5 votes
1 answer
461 views

Any way to get Child Relationships without being bound by user permissions?

Question User object-level permissions limit the results of DescribeSObjectResult.getChildRelationships(). Are there any workarounds? I have submitted an Idea about this (https://success.salesforce....
Charles Koppelman's user avatar
5 votes
1 answer
380 views

"Decryption Exception" errors on Named Credential

I have callouts that use a Named Credential and a Custom Oauth2 Auth Provider fail with this error response: Invalid parameter value "[hidden]" for parameter "Decryption Exception" A similar ...
Robert Sösemann's user avatar
4 votes
4 answers
1k views

Can't compile Apex class due to code that does not exist anymore

I cannot reproduce this error yet, but its causing me huge trouble in release and package scenarios. I have a packaged class which implements an Abstract superclass. Sometimes when I refactor this ...
Robert Sösemann's user avatar
4 votes
2 answers
205 views

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

I am unable to use the System.StubProvider to mock/stub a complicated Backend class of which I have no implementation but only an interface public interface ShopBackend { void initialize(); ...
Robert Sösemann's user avatar