• MernaE
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
We defined a Process Builder on the Lead object and ran all unit tests successfully in production. However, during the deployment, all the unit tests that were creating a Lead record failed with the following error:

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. <br>common.exception.AssertionException: ORA-20070: Cannot read from apex_class and apex_trigger while running tests ORA-06512: at "SNEEZY.ASSERT", line 11 ORA-06512: at "SNEEZY.ASSERT", line 41 ORA-06512: at "SNEEZY.CAPEX", line 3095 ORA-06512: at "SNEEZY.CAPEX", line 3088 ORA-06512: at "SNEEZY.CAPEX", line 194 ORA-06512: at line 1 SQLException while executing plsql statement: {call cApex.get_classes_blk_nc(?,?,?,?,?,?,?,?)}(00DA0000000byvR, [ null ], [ null ], [ EXCLUDED (18) ], EXCLUDED, EXCLUDED,

We had to deactivate our process and then ran a deploy to work around this issue.

Based on some posts in the forum (https://developer.salesforce.com/forums/ForumsMain?id=906F0000000B5zB" target="_blank), we are not the only ones experiencing this issue. Support has been unavailable for this issue, because we are "standard" customers, even though it's clearly a platform bug. Please help!
  • April 22, 2015
  • Like
  • 0
We defined a Process Builder on the Lead object and ran all unit tests successfully in production. However, during the deployment, all the unit tests that were creating a Lead record failed with the following error:

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. <br>common.exception.AssertionException: ORA-20070: Cannot read from apex_class and apex_trigger while running tests ORA-06512: at "SNEEZY.ASSERT", line 11 ORA-06512: at "SNEEZY.ASSERT", line 41 ORA-06512: at "SNEEZY.CAPEX", line 3095 ORA-06512: at "SNEEZY.CAPEX", line 3088 ORA-06512: at "SNEEZY.CAPEX", line 194 ORA-06512: at line 1 SQLException while executing plsql statement: {call cApex.get_classes_blk_nc(?,?,?,?,?,?,?,?)}(00DA0000000byvR, [ null ], [ null ], [ EXCLUDED (18) ], EXCLUDED, EXCLUDED,

We had to deactivate our process and then ran a deploy to work around this issue.

Based on some posts in the forum (https://developer.salesforce.com/forums/ForumsMain?id=906F0000000B5zB" target="_blank), we are not the only ones experiencing this issue. Support has been unavailable for this issue, because we are "standard" customers, even though it's clearly a platform bug. Please help!
  • April 22, 2015
  • Like
  • 0
Hi,

We are trying to move Reports from Sandbox to Production, but we got the below error while validating the deployment:

Component Errors:

TestCallResultTrigger.testAssignment(), Details: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. <br>common.exception.AssertionException: ORA-20070: Cannot read from apex_class and apex_trigger while running tests ORA-06512: at "BASHFUL.ASSERT", line 11 ORA-06512: at "BASHFUL.ASSERT", line 41 ORA-06512: at "BASHFUL.CAPEX", line 3095 ORA-06512: at "BASHFUL.CAPEX", line 3088 ORA-06512: at "BASHFUL.CAPEX", line 194 ORA-06512: at line 1 SQLException while executing plsql statement: {call cApex.get_classes_blk_nc(?,?,?,?,?,?,?,?)}(00D28000000HS3L, [ EXCLUDED (10) ], [ null ], [ EXCLUDED (15) ], EXCLUDED, EXCLUDED, EXCLUDED,
 
CallResult; null, Details: Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required; Average test coverage across all Apex Classes and Triggers is 0%, at least 75% test coverage is required.
 
Apex Test Failures:
 
System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. <br>common.exception.AssertionException: ORA-20070: Cannot read from apex_class and apex_trigger while running tests ORA-06512: at "BASHFUL.ASSERT", line 11 ORA-06512: at "BASHFUL.ASSERT", line 41 ORA-06512: at "BASHFUL.CAPEX", line 3095 ORA-06512: at "BASHFUL.CAPEX", line 3088 ORA-06512: at "BASHFUL.CAPEX", line 194 ORA-06512: at line 1 SQLException while executing plsql statement: {call cApex.get_classes_blk_nc(?,?,?,?,?,?,?,?)}(00D28000000HS3L, [ EXCLUDED (10) ], [ null ], [ EXCLUDED (15) ], EXCLUDED, EXCLUDED, EXCLUDED, EXCLUDED) Cannot read from apex_class and apex_t 
Stack Trace: Class.TestCallResultTrigger.setupTestData: line 57, column 1 Class.TestCallResultTrigger.testAssignment: line 87, column 1

Please find the screenshot below:

User-added image

May we know the reason and how do we rectify this error? We don't see any Flows in Sandbox.

Please let us know for any clarification.