Skip to content

Full Recalc Queueable confusion #703

Open
@NBray-VTG

Description

@NBray-VTG

Hello James,

I was hoping to get some clarifying information about what could be an issue. I'm hoping just on my configuration part. When running the below as a full recalc through the LWC, I noticed that a handful of these value do not line up the ways they should. I have about 1800 Accounts that all have Contacts that meet this criteria to rollup a count onto. Most of these appear correct when i run a report and compare the rollup to the actual count. there are however 9 specific ones where the count is not right. Changing a record on Contact for one of these Accounts however, will update the Account to have the correct count.

Image

I turned on some debugging and noticed that this query is run, resulting in nearly 6000 Contact records. When I ran this query and exported the results to excel myself, I noticed that one of the Account records with an incorrect number would have Contact records not grouped together in one batch, given the Batch Chunk Size of 500 in the Rollup Control record. Example: I have Account A with 837 Contacts where the where clause is met. in the spreadsheet
rows 1-500 contain 80 of those
rows 501-1000 contain 500
and 1001-1500 contain 257

The end result after a full calc on this specific account is 257

Below is the query, and the Rollup Control
Image
Image

I know I could increase the size, but this would only move the issue. Am I missing something to allow the full calc to be able to count all of the child records?

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