Skip to content

Inconsistent Sum Behaviour On CMDT Grandparent Full Recalculate rollup #616

@jaredcloudyknights

Description

@jaredcloudyknights

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:

  1. Revenue_Booked__c -> Credit_Line__c (Parent)
    image
  2. Revenue_Booked__c -> Loan__c (Grandparent)
    image

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.

Version number: 1.6.32
image

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
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions