3
votes
Queries on Large Object (>1 million rows) Fail to Execute
First, a full recycle bin can cause problems, because IsDeleted is not indexed. Consider hard-deleting records as you delete them with the emptyRecycleBin function. I suspect the Queueable is probably ...
2
votes
Accepted
Test Class Out of Bounds Exception
In unit tests, there are 3 phases.
Create test data
Execute the method you want to test
Gather the results, and make assertions
You're doing #2 and #3, but you've skipped over #1.
You are ...
1
vote
Illegal assignment from account to id
Here is the updated code with comments for fixes. The primary fix is to ensure that you assign the ID of the Account as the AccountId, rather than attempting to assign the Account record itself (which ...
1
vote
Aggregate result not working in soql query
AggregateResult objects are treated like sObject objects; you can't access any of the fields directly with the dot-notation, but instead you need to use the dynamic notation.
<td> <apex:...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
soql × 5541apex × 2615
query × 608
visualforce × 395
trigger × 361
dynamic-soql × 294
governorlimits × 211
relationships × 153
rest-api × 130
batch × 128
unit-test × 112
community × 112
list × 105
sosl × 98
aggregate × 91
custom-object × 86
map × 74
api × 68
account × 66
date × 64
lookup × 59
sobject × 57
class × 55
opportunity × 55
contact × 54