You need to sign in to do that
Don't have an account?
Voltum Consulting
Changeset Validation error
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:
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.
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:
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.
This issue is with the class
Class.TestCallResultTrigger.setupTestData: line 57, column 1
Class.TestCallResultTrigger.testAssignment: line 87, column 1
See the Stack Trace and find the exact error.
The message is clear about some insertion operation.
Paste some sample code of the class so that we can get an idea.
Please mark this as solution if this solves your problem, So that if anyone has this issue this post can help
Sorry for the delayed response.
It is clear that there is code coverage issue.
Please correct that then try.
Please mark this as solution if this solves your problem, So that if anyone has this issue this post can help
WORK-AROUND:
1. Check if you have Process Builder processes declared in your organization on the object that's being created by this line of code in your org:
TestCallResultTrigger.setupTestData: line 57
2. If you indeed have processes declared, then deactivate them and run the deployment
3. After deployment succeeds, reactivate deactivated processes
Salesforce support is currently telling me that it's my fault and not providing futher explanation because we are a "Standard Customer".
All my tests run without errors in production when I manually execute them through the Salesforce UI regardless of whether my Process Builder workflow is activate or not.
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 "GRUMPY.ASSERT", line 11 ORA-06512: at "GRUMPY.ASSERT", line 41 ORA-06512: at "GRUMPY.CAPEX", line 3095 ORA-06512: at "GRUMPY.CAPEX", line 3088 ORA-06512: at "GRUMPY.CAPEX", line 194 ORA-06512: at line 1 SQLException while executing plsql statement: {call cApex.get_classes_blk_nc(?,?,?,?,?,?,?,?)}(00D80000000KSY6, [ null ], [ null ], [ EXCLUDED (30) ], EXCLUDED, EXCLUDED, EXCLUDED, EXCLUDED)
Cannot read from apex_class and apex_trigger while r
That's exactly the issue we are having too and getting the exact same answer from the Salesforce support.
It's clearly a platform bug because the stack trace shows oracle exceptions with Salesforce Oracle instances, e.g. SNEEZY, GRUMPY, etc.
I am frustrated that nobody from Salesforce is attending to this issue!!! Can please someone at SFDC fix the bug?
Thanks!
To receive notifications on the progress of the fix, go to https://success.salesforce.com/issues_view?id=a1p300000008YVj and click the button that says "This Issue Affects Me"