Maximum Grid Limit Exceeded Message
If you see the message “The organization has exceeded its maximum grid limit. Please contact your system administrator.” the Grid administrator needs to go to page 1 of the Grid Wizard and delete grid definitions to be within your organization’s limit. Access to the grid interface will then be reinstated.
Locked Record Errors
If you see the message “Some records were not saved because they were modified during your edit session.” then another user edited a record before you attempted to edit the same record. To save your changes simply click Save. To view the last saved value of a field click the undo icon.
Data Limit Exceeded Errors
If you receive an error message like the ones shown below, it means you are trying to retrieve more data in one page request than Salesforce allows. The most likely cause is that you have included one or more long text fields on one or more Grid objects, and the values for these long text fields are thousands of characters in length. It also can be caused by loading a grid with many fields and many rows.
- Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 249.031KB
- Too many script statements: 200001 An unexpected error has occurred. Your development organization has been notified.
- Apex heap size too large: 4064586 An unexpected error has occurred. Your development organization has been notified.
- There was a problem loading and/or saving data for this Grid. Please notify your system administrator of this error: The amount of data you requested exceeds limits in Salesforce. Please limit your data selection for this Grid in the Grid Wizard on page 3, and try again.
To remedy this, the Grid administrator needs to go to page 3 of the Grid Wizard and apply a limit to the Grid objects that are bringing back excess data. Set the limit under the “Set Max Record Limit” section, and reload the Grid. Apply lower limits until the page loads successfully.
Rendering issues with ClickJack Settings
The Clickjack Protection setting ‘Enable clickjack protection for customer Visualforce pages with standard headers’ and ‘Enable clickjack protection for customer Visualforce pages with headers disabled’ isn’t currently supported in Console and for Visualforce pages using an iframe which are used for embedded grids. Due to this limitation embedded grids using Visualforce pages may display blank white space or URL No Longer exists when these settings are enabled. Also, the grids accessed directly from the Grids tab in Lightning will not render with these settings enabled. To correct this disable ‘Enable clickjack protection for customer Visualforce pages with standard headers’ and ‘Enable clickjack protection for customer Visualforce pages with headers disabled’ under Setup | Security Controls | Session Settings.
In order to set that up, go to Setup > Session Settings:
- Enable the top 3 clickjack settings, but not the 4th.
- Add two domains to the whitelist:
- Their overall domain (e.g. gs0.lightning.force.com)
- Their visualforce domains (e.g. *.gus.visual.force.com) <— you can get this by inspecting an embedded grid and observing the URL. In this org it was gblite.gus.visual.force.com)
If these setting need to continue to be enabled, it is suggested to reconfigure embedded grid access using a button or link as noted in the user guide.