RollupServiceTestTrigger, RollupServiceTest4Trigger and RollupServiceTest5Trigger has not been deployed.
ysato0000 opened this issue · 13 comments
I got some errors when I tested apex classes by clicking the "Run All Tests" button. It seems that missing three triggers below are causing the errors. I looked into the Package components list but these three triggers were not listed in the components. Has anyone seen this issue?
- RollupServiceTestTrigger
- RollupServiceTest4Trigger
- RollupServiceTest5Trigger
I installed the latest version of the tool in my Developer edition and also in Sandbox from the links below.
https://login.salesforce.com/packaging/installPackage.apexp?p0=04tb0000000ka9e
https://test.salesforce.com/packaging/installPackage.apexp?p0=04tb0000000ka9e
error example:
Class: RollupServiceTest5
Method Name: testPolymorphicRelationshipsRealtime
Error Message: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Apex Trigger RollupServiceTest4Trigger has not been deployed. Click Manage Child Trigger and try again.: [dlrs__Active__c]
Class: RollupServiceTest6
Method Name: selfRollupDelete
Error Message: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Apex Trigger RollupServiceTestTrigger has not been deployed. Click Manage Child Trigger and try again.: [dlrs__Active__c]
Class: RollupServiceTest6
Method Name: testContactMergeAsChild
Error Message: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Apex Trigger RollupServiceTest5Trigger has not been deployed. Click Manage Child Trigger and try again.: [dlrs__Active__c]
Thank you in advance!
Thanks this is a bug. Though its not common to click Run All Tests like this in an org, managed package tests typically run in the original developer org and validate the package code is working. You can run only your "local" tests in your org and not packaged ones using this feature.
Thanks for your reply! I will follow your advice and ignore the error.
Andrew, is there a new version planned or any other way to eliminate & correct this error message ?
Alternatively, we could deinstall the package but encountered some issues there.
@Benudek yeah i can treat this as a bug and try to make the tests fail silently in production org. So in your case you need to do Run All Tests? And this will not help?
What issues are preventing you uninstall btw? You have to remove the triggers first via Manage Child Triggers, but other than that you should be good.
Test failing on production as Triggers not deployed with package like 1.RollupServiceTest5Trigger
2.RollupServiceTest4Trigger
Causing production over all test below <20%.
Installed latest version "Latest Release Version 2.8". Any solution would you like to share. Thanks in advance and really quick reply will be appreciated .
Hi @VirendraNaruka this should not be causing any code coverage issue at all. Code coverage is only counted for unmanaged code in your production code. Have you deployed the managed package version of the tool (via package installl link) or just deployed the code for the tool raw / unmanaged into your production org (via deploy to salesforce button)?
Thanks 👍
Is there any time table for a fix for this issue? Love the product by the way!
Thanks,
Seth
v2.9
These errors have resurfaced and similarly, I am now having code coverage issues. I don't believe this managed package to be dragging down the % directly, but if functionality fails and causes my tests to not work, then it does have an impact. Thus, to make sure these are not issues propagating into our APEX code, or the functionality of other managed packages, these should be cleaned up before a release, please. I am on v2.11.
@kappadragon are they the same errors as above?