Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RollupServiceTestTrigger, RollupServiceTest4Trigger and RollupServiceTest5Trigger has not been deployed. #365

Closed
ysato0000 opened this issue Aug 4, 2016 · 13 comments

Comments

@ysato0000
Copy link

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!

@afawcett afawcett added the bug label Aug 5, 2016
@afawcett
Copy link
Collaborator

afawcett commented Aug 5, 2016

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.

@ysato0000
Copy link
Author

Thanks for your reply! I will follow your advice and ignore the error.

@Benudek
Copy link

Benudek commented Dec 7, 2016

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.

@afawcett
Copy link
Collaborator

afawcett commented Dec 9, 2016

@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.

@afawcett afawcett reopened this Dec 9, 2016
@VirendraNaruka
Copy link

@afawcett @Benudek

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 .

@afawcett
Copy link
Collaborator

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)?

@VirendraNaruka
Copy link

VirendraNaruka commented Apr 15, 2017 via email

@afawcett
Copy link
Collaborator

Thanks 👍

@sethvertiba
Copy link

Is there any time table for a fix for this issue? Love the product by the way!

Thanks,
Seth

@afawcett
Copy link
Collaborator

v2.9

@kappadragon
Copy link

kappadragon commented Apr 24, 2018

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.

@afawcett
Copy link
Collaborator

@kappadragon are they the same errors as above?

@kappadragon
Copy link

kappadragon commented Jul 2, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants