While opening the Salesfoprce Field Service dispatcher console, an error is received stating that the Remoting response size exceeded a maximum of 15 MB.
We were getting an error related to the overall size of the GetResourcesAndTerritories function.
Salesforce Field Service dispatcher console can report the error about the "Remoting response size" because there is a platform limitation that the platform doesn't allow to ship more than 15MB of a remote action response, and sometimes the overall size of the GetResourcesAndTerritories function is returning more than that.
In this particular investigation, we have an implementation issue wherein the customer has set up 427 operating hours, which is fine, but they have created 46520(!) time slots to be assigned to them.
The customer has set up most, if not all of their time slots to be 1 hour long throughout the working day. For example, if an engineer works from 5 AM to 8 PM, they have created timeslots from 5 AM-6 AM, 6 AM-7 AM and so on.
This results in our service territory query retrieving 427 rows, but the inner query that retrieves the operating hours (and time slots) of those territories comes back extremely large, which results in that error.
To resolve the problem where the remoting response size is too large in the Field Service dispatcher console can be solved either using any of the below options:
000390060

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.