jamessimone / apex-rollup

Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.
MIT License
210 stars 30 forks source link

Incorrect rollup calculation #496

Closed Phanishankarp closed 11 months ago

Phanishankarp commented 11 months ago

apex-07L8N000004SZ3wUAG.log apex-07L8N000004SZ3rUAG.log apex-07L8N000004SZ3iUAG.log apex-07L8N000004SZ3hUAG.log I have built custom metadata based flow implentation like below to rollup(Count) the child records whose Terminated Date field value is less than TODAY

image

Success Scenario:

  1. At present there 'Count of Terminated Records': 2 out of 6 Total records
  2. Update Terminated Date to '16-Aug-2023'(<TODAY)
  3. Calculation happened correctly and now 'Count of Terminated Records': 3 out of 6 Total records

Failure Scenario:

  1. Currently Count of Terminated Records': 3 out of 6 Total records
  2. I have modified above mentioned record's terminated date to '16-Sep-2023'(>TODAY)
  3. Calculation is incorrect and now 'Count of Terminated Records': 1 but it should be 2

I am unable to proceed further because of this issue. Can anyone assist?

jamessimone commented 11 months ago

I will have a look on Monday, should be an easy fix if there's an issue here

jamessimone commented 11 months ago

@Phanishankarp this is fixed with the latest update