If you are encountering the error message ” You have reached the limit for dashboards run as the logged-in user ” while installing a managed package, it could be due to a limitation on the number of dashboards that can be created within the installed package. Note : You can get this error, when creating or updating Dynamic Dashboards as well.
Error Number: 216189788-31637 (-1680130226) was the issue in my case.
Root Cause
The root cause of the error message “You have reached the limit for dashboards run as the logged-in user” is that the user has exceeded the maximum number of dashboards that can be created within their Salesforce account or within the installed managed package. This limit is typically put in place by Salesforce to prevent abuse of the service and to ensure optimal performance.
Each Salesforce edition has a limit on the number of dashboards that can be created. For example, the Enterprise edition allows up to 200 dashboards, while the Unlimited edition allows up to 500 dashboards. If a user exceeds this limit, they will encounter the error message.
In the case of a managed package installation, the package may include pre-built dashboards that count towards the user’s dashboard limit. If the user has already reached the limit before installing the package, they will encounter the error message when attempting to install the package.
Resolution
To resolve this error, you can take the following steps:
- Check your current dashboard usage: First, log in to your Salesforce account and navigate to the “Dashboard” tab. Check how many dashboards you currently have and how many you are allowed to create according to your Salesforce edition. If you have reached the maximum number of dashboards allowed, you will need to delete some of the existing dashboards to make room for the ones included in the managed package.
- Delete existing dashboards: If you have reached the maximum number of dashboards allowed, you can delete existing dashboards that are no longer needed. To delete a dashboard, click on the dashboard name, then click on the “Delete” button. You can also mass delete dashboards by using the “Mass Delete Dashboards” button on the “Dashboard” tab.
- Contact the package developer: If you are still encountering the error message after deleting existing dashboards, you may need to contact the package developer for further assistance. They may be able to provide additional information on the dashboards included in the package and how to manage them effectively.
You can use workbench to check a little more details about this issue as well :
Steps to use Workbench to query:
1. Go to Workbench
2. Tick I agree to the terms of service
3. Click Login with Salesforce
4. Choose “SOQL Query” on Jump to.
5. Choose “Dashboard” for the Object.
6. Hit Select
7. Choose the columns you want to show on under Fields
8. Filter results by Type = LoggedInUser
Query would look like this – SELECT FolderName,Title FROM Dashboard WHERE Type = ‘LoggedInUser’ OR Type = ‘MyTeamUser’
Conclusion
In summary, if you encounter the “You have reached the limit for dashboards run as the logged-in user” error message while installing a managed package, it is likely due to a limit on the number of dashboards you can create within the package. By checking your current dashboard usage, deleting existing dashboards, and contacting the package developer if needed, you can resolve this error and successfully install the package.
Leave a Reply