Home
About
Contact
Salesforce
An effort to bring a revolution in Salesforce.
Thursday, 26 October 2017
Future method cannot be called from a future or batch method: Error
Parth Thakkar
11:40
facebook
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY
System.AsyncException: Future method cannot be called from a future.
System.AsyncException: Future method cannot be called from a future or batch method
You need to check if the trigger is being fired from the future method, add the below line as your first line of trigger.
if(system.isFuture() || System.isBatch()) return;
Apex
,
Apex trigger
,
batch
,
Config
,
future
Related Posts
Salesforce auto-create folders for all Account? Box.com
New Quote button is not visible
Status=Length Required, StatusCode=411 error in Apex callout...
No comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
Get Gmail, Docs, Drive, and Calendar for business
topics
Apex
( 20 )
Apex callout
( 1 )
Apex trigger
( 6 )
API
( 1 )
assert()
( 1 )
Auto-Refresh
( 1 )
batch
( 2 )
Batch apex
( 2 )
Box.com
( 2 )
chrome
( 1 )
Config
( 2 )
CSV
( 1 )
Dashboard
( 1 )
Data types
( 1 )
Date
( 2 )
DateTime
( 1 )
Eclipse
( 1 )
Email Service
( 1 )
Email To Opprtunity
( 1 )
Email To Sobject
( 1 )
extension
( 1 )
field
( 1 )
Field Types
( 1 )
File
( 1 )
Force.com IDE
( 2 )
formula
( 2 )
future
( 1 )
Integration
( 2 )
JavaScript
( 1 )
Lead
( 1 )
Lightning
( 1 )
LightningDesignSystem
( 1 )
Metadata API
( 1 )
Objects
( 1 )
OWD
( 1 )
PDF
( 2 )
Permission
( 1 )
Profile
( 1 )
Rest API
( 3 )
Salesforce Dashboard Auto-Refresh
( 1 )
Salesfroce
( 19 )
Salesfroce site.Com
( 2 )
schedulable Apex
( 1 )
SFDC
( 1 )
Sharing Rule
( 1 )
Spinners
( 1 )
Static Resource
( 1 )
System
( 1 )
tags
( 2 )
Unit Test
( 1 )
Visualforce
( 10 )
W2L
( 1 )
Web-To-Lead
( 1 )
Web2Lead
( 1 )
Webservice
( 1 )
Wrapper
( 2 )
Live Traffic
Live Traffic Stats
About Me
Parth Thakkar
View my complete profile
Blog Archive
►
2021
(1)
►
October
(1)
►
2018
(1)
►
April
(1)
▼
2017
(5)
►
November
(1)
▼
October
(1)
Future method cannot be called from a future or ba...
►
April
(1)
►
February
(2)
►
2016
(16)
►
August
(4)
►
July
(10)
►
June
(2)
►
2015
(43)
►
September
(3)
►
August
(9)
►
July
(30)
►
June
(1)
Powered by
Blogger
.
No comments:
Post a Comment