-
-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Hi,
I've noticed some inconsistent behaviour regarding the Grandparent rollup when using the Full Recalculate button or when an update is triggered by a batch job. The rollup to the parent works fine but the grandparent will sometimes double or half the value that should be there. Interestingly, re-running the recalculate will often resolve the incorrect amounts (but sometimes cause other records to become incorrect).
For context in the loom/screenshots: Revenue_Booked__c records are created by a batch job which then triggers two rollups defined by two CMDT to two records, a parent (Credit_Line__c) & a grandparent (Loan__c). This behaviour can also be intermittently observed on using the full batch recalculate via the "Recalculate Rollup" page. I've checked and all objects have the rollup trigger setup correctly (otherwise nothing would work I imagine).
Loom Explainer here
Details about the two CMDT records in question:
I've also got Nebula Logger installed in my test org, but can't make heads or tails of what the cause may be & I can regularly replicate the issue.
Let me know if any more detail is required. Also fully recognise that it could be something to do with how my rollups are set up. 😄
EDIT: I've been trying to do my own debugging and playing around with batch sizes. I've noted that changing the batch chunk size causes the issue to amplify/exacerbate wildly.
Batch Settings

Cross-Check Report results (over 50% of records are now affected)



