3
votes
Accepted
Weird "common.apex.runtime.impl.ExecutionException: Syntax error"|0x78b85a0a while doing a Callout
I was able to figure it out. As the hint of the last character was giving it turns out that I had checked by mistake the Allow Formulas in HTTP Body in the Named Credentials definition.
So because I ...
2
votes
Accepted
Create Excel file in Batch Apex Class
Technically yes, but practically no.
Excel files are relatively complex beasts following the Office Open XML SpreadsheetML format that are put into a Zip archive.
Salesforce doesn't provide any class/...
2
votes
Accepted
Attachment content is empty
This file looks like a legitimate PNG file fragment when saved and downloaded. Reading through the file, we see:
tag
length
data
Magic
8
iVBORw0KGgo= // PNG HEADER
IHDR
13
Width = 1678, Height = ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
blob × 121apex × 66
attachment × 20
pdf × 13
contentversion × 13
visualforce × 11
rest-api × 10
callout × 9
javascript × 8
httprequest × 8
base64 × 7
blob.topdf × 7
unit-test × 5
string × 5
pagereference × 5
csv × 5
json × 4
class × 4
document × 4
crypto × 4
encodingutil × 4
lightning-aura-components × 3
trigger × 3
lightning-web-components × 3
apexrest × 3