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

Partial Soft Credit Trigger Issue #1154

Closed
jessicatownsend opened this issue Feb 24, 2022 · 3 comments
Closed

Partial Soft Credit Trigger Issue #1154

jessicatownsend opened this issue Feb 24, 2022 · 3 comments
Labels

Comments

@jessicatownsend
Copy link

Describe the bug
Received the following error when trying to deploy a child trigger for Partial Soft Credits

dlrs_npsp_Partial_Soft_CreditTrigger:Test coverage of selected Apex Trigger is 0%, at least 75% test coverage is required

To Reproduce
Steps to reproduce the behavior:

  1. Create a DLRS where the Parent object is Contact and the Child object is npsp__Partial_Soft_Credit__c
  2. Click on "Manage Child Trigger" and then "Deploy"
  3. See error dlrs_npsp_Partial_Soft_CreditTrigger:Test coverage of selected Apex Trigger is 0%, at least 75% test coverage is required

Expected behavior
Expected the trigger to be deployed successfully

Screenshots
DLRS Error

@StephanieKing
Copy link

Same here!

@adamjass
Copy link

I encountered a similar (maybe same?) issue today when trying to deploy the child trigger for Campaign Member to Contact. Screenshot attached.

Error:
dlrs_CampaignMemberTest.testTrigger System.DmlException: Insert failed. First exception on row 0; first error: MALFORMED_ID, Invalid campaign id: null: [CampaignId] (dlrs) Class.dlrs_CampaignMemberTest.testTrigger: line 11, column 1

Warning:
dlrs_CampaignMemberTrigger:Test coverage of selected Apex Trigger is 0%, at least 75% test coverage is required

Messages
Deployment complete.
Click Deploy to install the Apex Trigger and Apex Class for this child object.

image

@adamjass
Copy link

FYI I successfully deployed now. I followed instructions from Jon LaRosa in this Trailblazer community post: https://trailhead.salesforce.com/trailblazer-community/feed/0D53A000033V8LeSAK. I think the default code wasn't sufficient in this case, so adding some test code enabled it to work.

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

No branches or pull requests

4 participants