Too many query rows: 50001. This prevents the Health Check from completing, even when a single territory is selected. The issue typically begins or worsens after increasing the optimization threshold or expanding the horizon window.NOTE: To check the ServiceAppointment volume in your org, run the following SOQL query in Developer Console:
If the result exceeds 50,000, the Health Check will fail. If it is close to the limit (e.g., 45,000+), consider implementing a resolution strategy below to provide headroom for future growth.
NOTE: This workaround does NOT validate scheduled appointments. Use it to confirm territory setup while planning long-term data cleanup.
Match Territory to your Scheduling Policy. This filters the scope of ServiceTerritoryMembers evaluated during Health Check execution, reducing related records queried — without deleting data.
Match Territory.NOTE: Archiving or deleting ServiceAppointments is permanent — ensure your retention policy aligns with business and compliance requirements before proceeding. Reducing the horizon window may also cause the Health Check to miss optimization opportunities for appointments beyond the new window.
005387654

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.