Unanswered Questions
6,786 questions with no upvoted or accepted answers
18
votes
0
answers
1k
views
Custom Labels in Packages - Potential BUG in Winter 19 (Confirmed as Known Issue by Salesforce)
We have an unmanaged package using 167 custom labels to use the Translation Workbench in Salesforce and to be able to translate texts into different languages.
Until now, all our custom labels have ...
18
votes
1
answer
2k
views
Using apex class as attribute type for component - Summer '14 IDE issue
I have a component that gets an instance custom Apex Class as an attribute, ie:
<apex:component controller="ComponentController">
<apex:attribute name="myAttr" assignTo="{!attr}" type="...
14
votes
1
answer
1k
views
Multiple future method from Queueable Apex
As per the documentation we can only call 1 future from Queueable context.
But in below code I am able to call multiple future methods from same queueable class and no error is being thrown.
public ...
14
votes
0
answers
2k
views
Managed Package error "Dependent class is invalid and needs recompilation"
I'm getting an exception email from a client who has installed my Managed Package in his org. The error message I receive is:
Apex script unhandled trigger exception by user/organization:
...
13
votes
0
answers
3k
views
Test cases failing with "Could not run tests on class 01pXXX because: connection was cancelled here"
When running all the test classes in my dev org I'm getting intermittent failures on some of them with:
Could not run tests on class 01p400000000001 because: connection was cancelled here
The ...
12
votes
1
answer
670
views
Creating Idea Votes from portal user in Test code. DML Exception
I Wrote a very simple VF Page and Controller to show the Accounts that voted on certain Ideas. Here is the controller. Just aggregates the Up and Down votes on the Idea excluding internal votes. ...
11
votes
0
answers
362
views
Cache.Session not honoring ttlSecs argument?
I'm using session cache and trying to set the TTL (lifetime) to 60 minutes. However it is expiring much more quickly (it appears to be using the default 5 minute expiry). The docs say TTLs is ...
10
votes
1
answer
111
views
Why the Sorting Logic in Salesforce SOQL and UI is VERY different from other Systems?
The ordering mechanisms in Salesforce are really odd.
Take any SObject having any Text field (e.g. Name on Account) and create some Records. Do that on an Org with no other Records of the type (e.g. a ...
10
votes
0
answers
374
views
Spring 18 breaks overridden apex methods in lightning components
We have an overridden @auraEnabled method that returns an array of custom apex class objects with @auraEnabled get methods. This has worked since it was built. However, one of our customers just ...
10
votes
0
answers
2k
views
How do you use a mock response when calling Auth.JWTBearerTokenExchange.getAccessToken()?
Let's say I have a class like this
/**
* Example of using JWTBearerTokenExchange to demonstrate issues with testing and mocks
*/
public class JwtBearerTokenExample {
public static String ...
10
votes
2
answers
812
views
Field filter does not Work for Text Formula field used in SOQL
I have a simple SOQL query on Account which has a field Full_Address__c which is joint of Billing Street, City Zip.
When I use this field as a filter it doesn't return the records:
Example:
String ...
10
votes
1
answer
168
views
Non-Selective Query Async (fails) vs Sync (works) - Is that supposed to happen?
Running into the following issue only during async processes (i.e. Batch Apex):
Code used is same for both sync and async apex. Both essentially pass a single record into the method
Batch scope is 1 ...
10
votes
0
answers
1k
views
Error parsing json response: 'expected expression, got '<''. Logged in?
I'm calling a remote action which returns a wrapper. It works without any issues on most of the time. But sometimes, it throwing an error:
Error parsing json response: 'expected expression, got '&...
10
votes
1
answer
244
views
Read access denied: getQueryLocator(soql) vs. query(soql)
I am attempting to add pagination, and I followed this great article by Jeff Douglas.
I am an admin so when I run the page it runs great, I can navigate forwards, back. When I log in as a user my ...
9
votes
0
answers
443
views
Salesforce External Service - Capturing Request and Response
We are doing POC to use external services for integrating with external systems.
It works well.With spring 20 as per preview release notes enhanced external service is going GA.
Question:
Is ...