Skip to main content

#DLRS Package토론 중인 항목 0개

Rick C (DUAL) 님이 Commons Project: DLRS에 질문했습니다

We are facing issue as DLRS rollups are not working at any level. 

 

Object Hierarchy Requiring Rollups 

Opportunity → Quote → Carrier_Quote_Coverage__c → Carrier_Quote_Details__c 

 

Rollups Required Across All Levels 

For each level, we have rollups for: 

 

  • Taxes
  • Premium
  • Fees

 

Specifically: 

 

Opportunity:

 Amount field (using Type__c picklist with values  - Taxes, Premium, Fees) 

Quote:

 Amount field (using Type__c picklist with values  - Taxes, Premium, Fees) 

Carrier Quote Coverage: 

Amount field (using Type__c picklist with values  - Taxes, Premium, Fees) 

Carrier Quote Details:

 Amount field (using Type__c picklist with values  - Taxes, Premium, Fees) 

 

Issue 

DLRS rollups are not working at any level. Previously, the lowest-level rollup (Carrier_Quote_Details__c → Carrier_Quote_Coverage__c) worked, but now even that is no longer updating. No rollups are firing in Realtime across the entire hierarchy. 

 

What Has Been Verified

  • All rollups are configured as Realtime.
  • Lookup relationships are correct.
  • DLRS child triggers are installed.
  • No errors appear in DLRS logs.

 

The managed package is the standard Declarative Lookup Rollup Summaries package. 

 

We need help to understand why all DLRS rollups have stopped functioning, including the lowest level, and determine whether this is due to platform behavior, trigger conflicts, or a DLRS package issue. We also need confirmation on whether DLRS supports cascading multi level rollups natively or requires additional configuration. 

 

#DLRS #DLRS Package #Declarative Lookup Rollup Summaries

답변 3개
  1. 3월 5일 오전 1:52

    Thanks, @Rick C

    ! Full Calculate not working gives us something to start with. That takes a bunch of things out of consideration. Is it that nothing is changing or that the rollup value is wrong or that it is always leaving an empty field? 

     

    Remember, we're ignoring the realtime problem for now. It is almost always simpler to troubleshoot the Full Calculate, fewer moving parts. 

     

    After starting Full Calculate, are you applying any filtering on the start screen? (It gives you an opportunity for a WHERE clause to limit which parent records are updated) 

     

    Can you check the Setup => Apex Jobs page once you start the Full Calculate? You should see a RollupCalculateJob Apex class as a Batch job. It should have a number of batches with it. If you monitor that it should progress through all the records. Depending on the number of parents it needs to recalculate it might take a bit. Let us know how many batches it needed and roughly how long it takes from start to finish. (It should show the start and end times in the list view) 

     

    Will you check if it completes without any errors? If it encounters an un-handled error then it should report that error in the batch job's status. If it is a contained/handled error then it should email whoever started the job as well as add records to the Lookup Rollup Summary Log object. 

     

    I would start by watching the Batch job then if that looks good but still doesn't produce any results I would check the Lookup Rollup Summary Log object next. 

     

    Please report back if everything looks clean or if you find any obvious problems. You may need to look at the modified dates on those log objects to make sure you're dealing with recent outcomes.

0/9000
Shaher Cardona 님이 Commons Project: DLRS에 질문했습니다

I am planning to enable the “Enforcing No-Argument Constructor on Apex Classes Used for Invocable Action Parameters” release update in PROD and would like to ensure that the DLRS

 managed package complies with the requirements of this update. 

 

So, could you please confirm if apex classes used for invocable action within your managed package have public no-argument constructors? 

For example, the RollupActionCalculate class. 

 

Thank you. 

#DLRS #DLRS Package

답변 2개
  1. 2월 26일 오전 1:44

    @Shaher Cardona

    lucky thing the code for DLRS is open and publicly viewable. 

     

    This is the only Invocable action in DLRS. It doesn't have any constructors on it at all. Reading the release notes it is not clear to me if that could be a problem. 

     

    https://github.com/SFDO-Community/declarative-lookup-rollup-summaries/blob/61d1cc9fb7d2c55ff9669302a659b962eb5abefe/dlrs/main/classes/RollupActionCalculate.cls#L48

     

     

    As with most things, enable it in a Sandbox and confirm it behaves the way you want.

0/9000

Ok, I was looking over the documentation more closely around the Relationship Criteria and Relationship Criteria Fields and I have a few clarifying questions.  If I understand correctly, the relationship criteria field is where you put in what records you want included in your rollup.  For example, on the child object if the "Engagement_Year__c != null, it would only include the child records where there IS a value in the Engagement Year field.  Correct? 

 

I know I am supposed to put Engagement_Year__c in the criteria fields, but why? 

 

I have a couple of other questions about Watch for changes and a job specific scheduled calculation, but that's for another time. 

#DLRS #DLRS Package

답변 2개
  1. 2025년 12월 1일 오후 6:56

    @Michael Kolodner

    thanks, that makes sense.  

     

    I had an issue last night where like 11,000 rollup up summary log records caused an issue with another process and trying to figure out why. (well I know part of the answer, but still trying to figure out the rest, as issue has got to do with a managed package that is still using a PB that I can't "see", so I don't know what's causing that to fail, which in turn is impacting the rollup. It's never happened before, so I am guessing the vendor made an update which is causing issues....)  And I am making sure that some of my early rollups I made, make sense...

0/9000

Hi,

 

We use DLRS Rollup Summary package, and I created a new rollup summary and expected it to be able to deploy via DevOps Center. But it doesn't show as metadata change or I can't even get it through manually. Is there a way that I can deploy the newly created Rollup Summary via DevOps center. I can see this new rollup summary in the Change Set. but not in DevOps Center. #DLRS Package

답변 8개
  1. 2025년 10월 29일 오후 4:55

    For those still looking for help on this, I found the solution for change sets rather than DevOps on this thread; add a Lookup Rollup Summaries [dlrs] component.

0/9000
Anushka Sharma (Infosys) 님이 Commons Project: DLRS에 질문했습니다

Hi team,

 

I am using Nonprofit Cloud and I have installed DLRS Package.

I created Lookup Rollup Summaries between Account and Benefit Disbursement, While deploying the child triggers I am getting this error.

 

Please refer to the attached Screenshots.

 

Could you please help me identify the source of this issue? I’m trying to determine whether it's related to Non-Profit Cloud or the DLRS package. Additionally, I’m unable to delete this auto-generated class and trigger.

 

Unable to deploy child triggers

 

Screenshot 2024-11-06 at 1.51.22 PM.png

 

Screenshot 2024-11-06 at 1.51.36 PM.png

답변 5개
  1. 2024년 11월 8일 오후 4:17

    Looking at the bottom of the rollup configuration you should see an "Advanced" header and inside of there "Test Code (Child Object)" which would be the method body that should be executed when testing the added trigger. This text will be merged into the generated test class and once added should be visible on the "Manage Child Trigger" page.

0/9000

My questions are:

1. Why is the wizard complaining about the parent and the child on screen 1?

2. Why is my rollup working in my dev org but in my sandbox I get "IO Exception: Read timed out"? Could it be the difference in the Salesforce release? Or the renamed Account object in the sandbox?

 

Here are the details:

 

Using the Wizard in preview Spring '24 sandbox, I chose the Account object (which was renamed in this org to "Organization" pre-me, don't ask!) to "Organization (Account)". When I try to save (on the first screen) it says the parent does not exist and the child does not exist. It hasn't asked me for the child yet.

 

When I try it without the wizard, I'm getting 

"Error:IO Exception: Read timed out"

 

So I next installed DLRS in my Winter '24 dev org. Wizard gives me the same message - parent doesn't exist and child doesn't exist. Account has not been renamed in this org. And I haven't had a chance to select a child yet. 

 

Without the wizard, I was able to save, deploy, and successfully calculate the rollup in my Winter '24 dev org with these values (it also contains this custom object and fields. I cut and pasted field API names in each org):

Parent Object: Account

Child Object: Food_Trip__c

Relationship Field: Food_Recipient__c

Field to Aggregate: Trip_Date__c

Field to Order by Trip_Date__c (do I need to specify this?)

Aggregate Operation: First

Aggregate Result Field: First_Completed_Delivery__c

Active

Realtime

User

 

Both orgs have DLRS v2.19

 

Thank you!

 

#DLRS Package #DLRS #Declarative Lookup Rollup Summaries @Stephane Plancke @Commons Project: DLRS

답변 3개
  1. 2024년 1월 12일 오후 4:12

    @Dodi Friedenberg, very odd behavior. I don't know why the new wizard would be so different. "Read Timed Out" suggests a problem talking to the Salesforce API but both wizards talk to the same API endpoints, and I think using the same code.

     

    I think the most interesting is the parent does not exist error, like it is collecting the wrong value for the renamed object... BUT in your org that isn't renamed it does the same thing.

     

    I can't think of anything off the top of my head that tells us what is going on. Any other insight or tests that might surface more details?

0/9000
Patriece Wright (N/A) 님이 #Chatter에 질문했습니다

I have a custom object for which I have enabled the chatter feed. I want to be able to count the number of posts made to Chatter on that object. I created a DLRS with the parent object being my custom object and the child object being FeedItem. The relationship field is ParentId. For the field to aggregate I selected 'CommentCount' to test. This is not functioning as intended, please advise.  #Chatter #DLRS Package #Declarative Lookup Rollup Summaries #Automation

답변 2개
  1. 2023년 11월 30일 오전 6:00

    Hi @Patriece Wright,

     

    Unfortunately The FeedItem object doesn’t support aggregate functions in queries. Other way of doing above would be querying for FeedItems into a collection and checking the size in apex. Make sure to add any appropriate filters to the query to narrow down the results

    List<FeedItem> fiLst = new List<FeedItem>();

    fiLst = [SELECT Id FROM FeedItem WHERE Type = 'TextPost'];

    system.debug("FeedItem Count:"+ fiLst.size());

0/9000

We have just installed the package and set up our first job. 

Parent Object: Account

Child Object: Opportunity

Related list: Partner Opportunities

 

We have a field, which itself is a lookup field, on opportunity object. Each time we close a deal with a partner we should add that account on the opportunity.

We would like to see the total value of closed deals related to accounts that have a partner associated with them.

 

The field we are currently using in our setup of the job is Total ARR Value (Net), see screenshots.

 

@Nils Henrik Haga

Lookup not working

 

Account exmaple.png

 

Opportunity example.png #DLRS Package 

답변 3개
  1. 2023년 11월 28일 오후 6:34

    @Antonija Mihic, "already running" state is tracked in a "Rollup Jobs" custom object, you can look at the age of the record and possible remove it if you think it isn't related to any actually running jobs.

    In theory the jobs should have cleared it out when they were finished, if it isn't really running then it likely means the job failed for some reason. You can look through your Apex Jobs around the time time as the record was created to see if there is anything indicating failure.

     

    If the record was fairly recent, you can again look in the Apex Jobs. I think those are exclusively created for Scheduled Recalculation jobs or performing a Full Recalculation.

0/9000