Maintenance Plan Processing Settings
You can set the batch size to limit the number of maintenance plans considered in a single batch for a process run. The batch size helps limit resource utilization and ensures minimal impact if the maintenance plan process run fails.
To set a batch size for maintenance plan process run:
1. Navigate to Setup Home > Maintenance Plan Processing > Settings.
The Settings page is displayed.
Maintenance Plan Processing Settings
2. Click Edit. You can also click the pencil icon next to the field values.
3. Provide the details for the fields as explained in the following table.
Field Name
Description
Batch Size For MP Processes
Select the batch size in the drop-down list.
* 
The default value is 20.
The smallest possible batch size is 1 and the largest possible is 100.
Enable Maintenance Plan Process Logging
Logs for the maintenance plan process is captured irrespective of the settings. The detailed logs for the maintenance plan process is captured only when this setting is enabled. It captures minimum information when the setting is disabled. Select the checkbox to disable the detail logging when the maintenance plan process runs.
* 
This setting is enabled by default. It is recommended to keep this setting disabled for high-volume processes of maintenance plans or maintenance assets.
Maintenance Plan Assignment Threshold
The Maintenance Plan Assignment Threshold field sets the maximum number of active maintenance plans you can assign to a single maintenance plan process. If that limit is reached and a user tries to assign the MP Process to a Maintenance Plan, they will receive an error message, and an email notification will be sent to the email address configured on the process. The current value is set to 10,000.
4. Click Save.
* 
Along with setting the correct batch size for process runs, you must consider the data volume recommendations to ensure successful maintenance plan process runs.
Recommendations:
When a single maintenance asset is associated with each plan, use batch sizes of 10 or 20, and keep the Maintenance Plan Assignment Threshold at or below 10,000. Ensure not to schedule more than 20 Maintenance Processes at the same time.
When 1,000 maintenance assets are associated with a single plan, use a batch size of 1, and keep the Maintenance Plan Assignment Threshold at or below 10.
To avoid Salesforce governor limits, distribute Maintenance Plans across multiple processes so that each process remains within the configured threshold. It is also important to maintain that the maximum asset per process should not exceed 10000, in any configuration.
* 
If threshold is set beyond the recommended limits, then there are chances to hit governor limits.
Was this helpful?