• Manit Jain 31
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
While calling a flow from APEX getting below error:


Sandbox

Apex script unhandled exception by user/organization: 00546000001qdag/00Dq00000001DE1
Source organization: 00DG0000000gNom (null)
Failed to invoke future method 'public static void runFlow(Id)' on class 'invokeFlowForContentVersion' for job id '707q000001EtdbU'

caused by: System.UnexpectedException: Salesforce System Error: 603109869-55056 (-914716401) (-914716401)

Class.invokeFlowForContentVersion.runFlow: line 38, column 1

Debug Log:
42.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WAVE,INFO;WORKFLOW,INFO
19:43:52.0 (371119)|USER_INFO|[EXTERNAL]|00546000001qdag|manit@theranet.io.trgger2|Central Standard Time|GMT-05:00
19:43:52.0 (400527)|EXECUTION_STARTED
19:43:52.0 (406351)|CODE_UNIT_STARTED|[EXTERNAL]|FutureHandler - state load
19:43:52.0 (1589278)|CODE_UNIT_FINISHED|FutureHandler - state load
19:43:52.0 (2409256)|EXECUTION_FINISHED
19:43:52.12 (12209844)|USER_INFO|[EXTERNAL]|00546000001qdag|manit@theranet.io.trgger2|Central Standard Time|GMT-05:00
19:43:52.12 (12222737)|EXECUTION_STARTED
19:43:52.12 (12226036)|CODE_UNIT_STARTED|[EXTERNAL]|01pq0000000SKvr|invokeFlowForContentVersion.runFlow
19:43:52.12 (12666633)|HEAP_ALLOCATE|[72]|Bytes:3
19:43:52.12 (12710395)|HEAP_ALLOCATE|[77]|Bytes:152
19:43:52.12 (12726716)|HEAP_ALLOCATE|[342]|Bytes:408
19:43:52.12 (12743353)|HEAP_ALLOCATE|[355]|Bytes:408
19:43:52.12 (12758201)|HEAP_ALLOCATE|[467]|Bytes:48
19:43:52.12 (12785909)|HEAP_ALLOCATE|[139]|Bytes:6
19:43:52.12 (12800293)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
19:43:52.12 (12804925)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:24
19:43:52.12 (12814587)|METHOD_ENTRY|[1]|01pq0000000SKvr|invokeFlowForContentVersion.invokeFlowForContentVersion()
19:43:52.12 (12820648)|STATEMENT_EXECUTE|[1]
19:43:52.12 (12825910)|STATEMENT_EXECUTE|[1]
19:43:52.12 (12829748)|METHOD_EXIT|[1]|invokeFlowForContentVersion
19:43:52.12 (12835376)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
19:43:52.12 (12844059)|VARIABLE_SCOPE_BEGIN|[33]|contentDocId|Id|false|false
19:43:52.12 (13008096)|VARIABLE_ASSIGNMENT|[33]|contentDocId|"069q0000000MBDKAA4"
19:43:52.12 (13020904)|STATEMENT_EXECUTE|[33]
19:43:52.12 (13022946)|STATEMENT_EXECUTE|[34]
19:43:52.12 (13045105)|HEAP_ALLOCATE|[34]|Bytes:4
19:43:52.12 (13061652)|VARIABLE_SCOPE_BEGIN|[34]|params|Map<String,ANY>|true|false
19:43:52.12 (13084782)|VARIABLE_ASSIGNMENT|[34]|params|{}|0x7494fffa
19:43:52.12 (13090167)|STATEMENT_EXECUTE|[35]
19:43:52.12 (13094226)|HEAP_ALLOCATE|[35]|Bytes:15
19:43:52.12 (13153039)|HEAP_ALLOCATE|[35]|Bytes:18
19:43:52.12 (13179992)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:-4
19:43:52.12 (13187378)|STATEMENT_EXECUTE|[37]
19:43:52.12 (13190001)|HEAP_ALLOCATE|[37]|Bytes:11
19:43:52.12 (13223069)|HEAP_ALLOCATE|[37]|Bytes:32
19:43:52.12 (13246351)|SYSTEM_METHOD_ENTRY|[9]|Interview.Interview()
19:43:52.12 (13250026)|STATEMENT_EXECUTE|[9]
19:43:52.12 (13256650)|SYSTEM_METHOD_EXIT|[9]|Interview
19:43:52.12 (13274884)|METHOD_ENTRY|[37]||Flow.Interview.createInterview(String, Map<String,ANY>)
19:43:52.12 (19703989)|ENTERING_MANAGED_PKG|Flow__Interview
19:43:52.12 (19722839)|METHOD_EXIT|[1]|doc_sharing
19:43:52.12 (19732510)|HEAP_ALLOCATE|[75]|Bytes:16
19:43:52.12 (19751203)|HEAP_ALLOCATE|[75]|Bytes:8
19:43:52.12 (19756260)|VARIABLE_SCOPE_BEGIN|[5]|this|Flow.Interview.Doc_Sharing|false|false
19:43:52.12 (19782388)|VARIABLE_ASSIGNMENT|[5]|this|null
19:43:52.12 (19788077)|VARIABLE_SCOPE_BEGIN|[5]|initialValues|Map<String,ANY>|true|false
19:43:52.12 (19804415)|VARIABLE_ASSIGNMENT|[5]|initialValues|{"ContentDocument":"069q0000000MBDKAA4"}|0x7494fffa
19:43:52.12 (22040049)|METHOD_EXIT|[37]||Flow.Interview.createInterview(String, Map<String,ANY>)
19:43:52.12 (22052617)|VARIABLE_SCOPE_BEGIN|[37]|docSharingFlow|Flow.Interview|true|false
19:43:52.12 (22106868)|VARIABLE_ASSIGNMENT|[37]|docSharingFlow|"interaction.apex.FlowInterview@13cb3ab4"|0x13cb3ab4
19:43:52.12 (22114602)|STATEMENT_EXECUTE|[38]
19:43:52.12 (22131829)|HEAP_ALLOCATE|[38]|Bytes:26
19:43:52.12 (24863817)|HEAP_ALLOCATE|[38]|Bytes:70
19:43:52.12 (24925354)|FATAL_ERROR|System.UnexpectedException: Salesforce System Error: 603109869-55056 (-914716401) (-914716401)

Class.invokeFlowForContentVersion.runFlow: line 38, column 1
19:43:52.12 (24935787)|FATAL_ERROR|System.UnexpectedException: Salesforce System Error: 603109869-55056 (-914716401) (-914716401)

Class.invokeFlowForContentVersion.runFlow: line 38, column 1
19:43:52.24 (24941641)|CUMULATIVE_LIMIT_USAGE
19:43:52.24 (24941641)|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 0 out of 200
  Number of query rows: 0 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 60000
  Maximum heap size: 0 out of 12000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 1
  Number of Mobile Apex push calls: 0 out of 10

19:43:52.24 (24941641)|CUMULATIVE_LIMIT_USAGE_END

19:43:52.12 (24970625)|CODE_UNIT_FINISHED|invokeFlowForContentVersion.runFlow
19:43:52.12 (25847955)|EXECUTION_FINISHED
While calling a flow from APEX getting below error:


Sandbox

Apex script unhandled exception by user/organization: 00546000001qdag/00Dq00000001DE1
Source organization: 00DG0000000gNom (null)
Failed to invoke future method 'public static void runFlow(Id)' on class 'invokeFlowForContentVersion' for job id '707q000001EtdbU'

caused by: System.UnexpectedException: Salesforce System Error: 603109869-55056 (-914716401) (-914716401)

Class.invokeFlowForContentVersion.runFlow: line 38, column 1

Debug Log:
42.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WAVE,INFO;WORKFLOW,INFO
19:43:52.0 (371119)|USER_INFO|[EXTERNAL]|00546000001qdag|manit@theranet.io.trgger2|Central Standard Time|GMT-05:00
19:43:52.0 (400527)|EXECUTION_STARTED
19:43:52.0 (406351)|CODE_UNIT_STARTED|[EXTERNAL]|FutureHandler - state load
19:43:52.0 (1589278)|CODE_UNIT_FINISHED|FutureHandler - state load
19:43:52.0 (2409256)|EXECUTION_FINISHED
19:43:52.12 (12209844)|USER_INFO|[EXTERNAL]|00546000001qdag|manit@theranet.io.trgger2|Central Standard Time|GMT-05:00
19:43:52.12 (12222737)|EXECUTION_STARTED
19:43:52.12 (12226036)|CODE_UNIT_STARTED|[EXTERNAL]|01pq0000000SKvr|invokeFlowForContentVersion.runFlow
19:43:52.12 (12666633)|HEAP_ALLOCATE|[72]|Bytes:3
19:43:52.12 (12710395)|HEAP_ALLOCATE|[77]|Bytes:152
19:43:52.12 (12726716)|HEAP_ALLOCATE|[342]|Bytes:408
19:43:52.12 (12743353)|HEAP_ALLOCATE|[355]|Bytes:408
19:43:52.12 (12758201)|HEAP_ALLOCATE|[467]|Bytes:48
19:43:52.12 (12785909)|HEAP_ALLOCATE|[139]|Bytes:6
19:43:52.12 (12800293)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
19:43:52.12 (12804925)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:24
19:43:52.12 (12814587)|METHOD_ENTRY|[1]|01pq0000000SKvr|invokeFlowForContentVersion.invokeFlowForContentVersion()
19:43:52.12 (12820648)|STATEMENT_EXECUTE|[1]
19:43:52.12 (12825910)|STATEMENT_EXECUTE|[1]
19:43:52.12 (12829748)|METHOD_EXIT|[1]|invokeFlowForContentVersion
19:43:52.12 (12835376)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
19:43:52.12 (12844059)|VARIABLE_SCOPE_BEGIN|[33]|contentDocId|Id|false|false
19:43:52.12 (13008096)|VARIABLE_ASSIGNMENT|[33]|contentDocId|"069q0000000MBDKAA4"
19:43:52.12 (13020904)|STATEMENT_EXECUTE|[33]
19:43:52.12 (13022946)|STATEMENT_EXECUTE|[34]
19:43:52.12 (13045105)|HEAP_ALLOCATE|[34]|Bytes:4
19:43:52.12 (13061652)|VARIABLE_SCOPE_BEGIN|[34]|params|Map<String,ANY>|true|false
19:43:52.12 (13084782)|VARIABLE_ASSIGNMENT|[34]|params|{}|0x7494fffa
19:43:52.12 (13090167)|STATEMENT_EXECUTE|[35]
19:43:52.12 (13094226)|HEAP_ALLOCATE|[35]|Bytes:15
19:43:52.12 (13153039)|HEAP_ALLOCATE|[35]|Bytes:18
19:43:52.12 (13179992)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:-4
19:43:52.12 (13187378)|STATEMENT_EXECUTE|[37]
19:43:52.12 (13190001)|HEAP_ALLOCATE|[37]|Bytes:11
19:43:52.12 (13223069)|HEAP_ALLOCATE|[37]|Bytes:32
19:43:52.12 (13246351)|SYSTEM_METHOD_ENTRY|[9]|Interview.Interview()
19:43:52.12 (13250026)|STATEMENT_EXECUTE|[9]
19:43:52.12 (13256650)|SYSTEM_METHOD_EXIT|[9]|Interview
19:43:52.12 (13274884)|METHOD_ENTRY|[37]||Flow.Interview.createInterview(String, Map<String,ANY>)
19:43:52.12 (19703989)|ENTERING_MANAGED_PKG|Flow__Interview
19:43:52.12 (19722839)|METHOD_EXIT|[1]|doc_sharing
19:43:52.12 (19732510)|HEAP_ALLOCATE|[75]|Bytes:16
19:43:52.12 (19751203)|HEAP_ALLOCATE|[75]|Bytes:8
19:43:52.12 (19756260)|VARIABLE_SCOPE_BEGIN|[5]|this|Flow.Interview.Doc_Sharing|false|false
19:43:52.12 (19782388)|VARIABLE_ASSIGNMENT|[5]|this|null
19:43:52.12 (19788077)|VARIABLE_SCOPE_BEGIN|[5]|initialValues|Map<String,ANY>|true|false
19:43:52.12 (19804415)|VARIABLE_ASSIGNMENT|[5]|initialValues|{"ContentDocument":"069q0000000MBDKAA4"}|0x7494fffa
19:43:52.12 (22040049)|METHOD_EXIT|[37]||Flow.Interview.createInterview(String, Map<String,ANY>)
19:43:52.12 (22052617)|VARIABLE_SCOPE_BEGIN|[37]|docSharingFlow|Flow.Interview|true|false
19:43:52.12 (22106868)|VARIABLE_ASSIGNMENT|[37]|docSharingFlow|"interaction.apex.FlowInterview@13cb3ab4"|0x13cb3ab4
19:43:52.12 (22114602)|STATEMENT_EXECUTE|[38]
19:43:52.12 (22131829)|HEAP_ALLOCATE|[38]|Bytes:26
19:43:52.12 (24863817)|HEAP_ALLOCATE|[38]|Bytes:70
19:43:52.12 (24925354)|FATAL_ERROR|System.UnexpectedException: Salesforce System Error: 603109869-55056 (-914716401) (-914716401)

Class.invokeFlowForContentVersion.runFlow: line 38, column 1
19:43:52.12 (24935787)|FATAL_ERROR|System.UnexpectedException: Salesforce System Error: 603109869-55056 (-914716401) (-914716401)

Class.invokeFlowForContentVersion.runFlow: line 38, column 1
19:43:52.24 (24941641)|CUMULATIVE_LIMIT_USAGE
19:43:52.24 (24941641)|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 0 out of 200
  Number of query rows: 0 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 60000
  Maximum heap size: 0 out of 12000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 1
  Number of Mobile Apex push calls: 0 out of 10

19:43:52.24 (24941641)|CUMULATIVE_LIMIT_USAGE_END

19:43:52.12 (24970625)|CODE_UNIT_FINISHED|invokeFlowForContentVersion.runFlow
19:43:52.12 (25847955)|EXECUTION_FINISHED