SFDO-Community / declarative-lookup-rollup-summaries

Declarative Lookup Rollup Summaries (DLRS) is a community built and maintained Salesforce application that allows you to create cross object roll-ups declaratively - no code! For install instructions and documentation, visit our website https://sfdo-community-sprints.github.io/DLRS-Documentation/
https://sfdo-community-sprints.github.io/DLRS-Documentation/
BSD 3-Clause "New" or "Revised" License
690 stars 235 forks source link

Error deploying Trigger to NPSP Allocation object #989

Open samlimster opened 3 years ago

samlimster commented 3 years ago

Describe the bug I'm trying to deploy the DLRS trigger to the NPSP allocation object (npspAllocationc) but I'm getting the following error

dlrs_npsp_AllocationTest.testTrigger System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Enter a value in either the Amount field or the Percent field.: [] Class.dlrs.RollupService.testHandler: line 282, column 1 Class.dlrs_npsp_AllocationTest.testTrigger: line 11, column 1

To Reproduce Steps to reproduce the behavior:

  1. Build a DLRS rollup with the GAU allocation object as the child.
  2. Attempt to deploy the trigger on the GAU allocation object
  3. Error message is displayed.

Expected behavior The trigger should be deployed.

Screenshots Error image Rollup: image

Additional context

StephanieKing commented 3 years ago

@samlimster Did you ever find the test code needed to enable rollups from GAU Allocations?

Amanda-Styles commented 2 years ago

I have some notes on code for this, but I am not sure how to contribute them. Happy to help if someone can direct me. This has always been a pain for using DLRS with NPSP!

JimBTek commented 2 years ago

@Amanda-Styles you can certainly Fork the project and provide a Pull Request with the code. you can also drop a code block here in a comment if you do not want to do that, and it's a smaller amount of code or a sample to reference.