function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Parin LadParin Lad 

Roll-Up Summary Field Limit exceeded during Change Set

Hello - I wonder if the Community could help on of my Customers here as they have the following issue - we have estabished that the Limits are set correctly in the object and that any previously deleted Roll-Up summary fields have been permanently deleted. Any help appreciated.

"We have Dev Environment Sandbox and SIT Environment Sandbox with Limit of 40 Roll-sup Summary Fields. 

In Dev Environment we have used up 31 Roll-up Summary fields + new 9 Roll-up Summary Fields ; total 40,

1.But when we are trying to move the same into SIT i.e. the old (with new Labels and API) Roll-up Summary fields and new roll-up Summary fields we are getting an error " Limit Exceeded". 
2. So that we have tried to move only the old fields( with new Label and API) , but even then we are getting the same error.

As a workaround, we have created and edited roll-up fields manually. But If we want to deploy them into production it is not possible because, we have used these fields in some of the Apex classes & Visual force pages."

 
NagaNaga (Salesforce Developers) 
Dear Parin,

The maximum limit of rollup summary fields that can be used in an org is 25 (generally starts with 10, and can be increased to 25 depending on the business case).
I think thats the reason you are having issues with trying to move the same.

If you are trying to enforce a record limit of 25 on the parent roll-up summary field, when you add a new child record, your validation rule on the child object needs to check if the count is already 25 or greater.

AND(ISNEW(), Sample.Line_Count__c >= 25)
Plan your implementation of roll-up summary fields carefully before creating them. Once created, you cannot change the detail object selected or delete any field referenced in your roll-up summary definition.

Please follow the below link for more info

https://na10.salesforce.com/help/pdfs/en/salesforce_app_limits_cheatsheet.pdf  (7th page)

Best Regards
Naga Kiran
Parin LadParin Lad
Thanks Naga - the customer definitely has 40 though they have checked multiple times.  Would you be willing to join a quick web meeting to look through what they are doing and provide some best practice please?  They could really do with some help on this issue but are only a Basic customer.