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
683 stars 235 forks source link

Calculation error when child records being deleted #4. I still see this issue occurs in my instance when a last record is deleted. #1440

Closed hkrishna-contractor closed 3 months ago

hkrishna-contractor commented 3 months ago

Describe the bug If we delete the last record in the Childs, it's not updating the rollup count in the parent.

To Reproduce Create a Parent Record. Create child records for the above parent. Create a DLRS to count the num of child records that meets the Specific criteria. Update the child record to meet the Criteria, or create a new record, it updates the parent with count. When we delete the child record(If the Last operation is deletion) which meets the rollup criteria, DLRS is not decreasing the count on the parent.

But when try this use case with Account and Contact it worked as expected. Not sure if this is something to do with our custom objects.

Expected behavior Expected to decrease the count on parent when a child is deleted.