Sub topic 14
Troubleshooting common dashboard problems
This chapter assumes you can build a summary report, add it to a dashboard as a component, and set a running user. It also assumes you know how profiles, roles, and folder sharing control access. If any of that is unfamiliar, review the earlier chapters on running users, dynamic dashboards, and folders first.
Most dashboard problems come from one of three places: the source report, the running user, or folder access. A good diagnosis starts by working out which of the three is at fault before you change anything.
A method for diagnosing problems
Work from the data source outward. A dashboard component only displays what its source report returns to the running user. If the report is wrong, the component is wrong.
Follow these steps in order:
- Open the source report directly and run it. Compare its results with what the component shows.
- Identify the running user in the dashboard properties.
- Run the report as, or compare it against, what that user can see.
- Check the folder access for the dashboard and for the report.
- Check dashboard filters and the refresh time.
Empty components
An empty component, or one that says "No data", usually has a simple cause. Check these in turn.
- The report returns no rows. A report filter such as "Close Date = THIS QUARTER" may match nothing yet. Run the report and confirm.
- The report has no grouping or summary the component needs. A chart needs a grouping. A gauge or metric needs a summarized value. A summary report with no groupings cannot feed a chart component.
- The running user cannot see the records. The report runs with the running user's visibility, not yours. If you can see the records but the running user cannot, the component is empty.
- A dashboard filter excludes everything. A filter applied at the dashboard level combines with the report's own filters. Clear the dashboard filter and see whether data returns.
- The report was changed after the component was built. If someone removed the grouping or the summarized field the component used, the component may show an error or no data. Edit the component and reselect the fields.
You can check the first cause quickly with a query that mirrors the report. This query returns the same grouped totals as an open-pipeline report grouped by stage. If it returns no rows when you run it as the running user, the report will be empty too.
SELECT StageName, SUM(Amount) total
FROM Opportunity
WHERE IsClosed = false
GROUP BY StageNameMissing or unexpected data
A component that shows numbers, but the wrong numbers, is harder to spot than an empty one.
The running user sees less than you do
With a specified running user, every viewer sees the data that user can see. If the running user is a sales representative at the bottom of the role hierarchy, the dashboard will not include records owned by other teams, even when the viewer is a director who could see them directly. Viewers do not need access to the underlying records to see this data. The dashboard shows it anyway.
The opposite problem is also common. If the running user is an administrator, a viewer sees data they could never open in a report. This is a data exposure issue, not only a troubleshooting one. Review who the running user is for each dashboard that goes to a wide audience.
Every viewer sees the same numbers
If each person expected to see their own opportunities and everyone sees the same totals, the dashboard uses a specified running user. Change the setting "View dashboard as" to The dashboard viewer to make it a dynamic dashboard. Save and refresh, then check with two different users.
The numbers differ between the report and the dashboard
Two causes explain most mismatches:
- The dashboard is stale. It shows data from its last refresh. The report shows data from the moment you ran it.
- The two use different running users. You see your own records in the report. The dashboard shows the running user's records.
Also check the component's own settings. A component can limit the number of groups shown, such as the top 10, and can apply its own display options. A total in the report may include groups that the chart leaves out.
Matrix and summary report issues
A component built from a matrix report depends on which groupings you chose. If a chart shows fewer values than the matrix has, check whether the component uses the row grouping, the column grouping, or both. A summary report with one grouping can feed any chart type. A matrix is needed for stacked or grouped charts that use two dimensions. Reports with more than the groupings a component can use will not display as expected, so simplify the report if needed.
Inaccessible reports and dashboards
Access problems fall into two groups: a viewer cannot open the dashboard, or a viewer opens it but a component fails.
| Symptom | Likely cause | Fix |
|---|---|---|
| Viewer cannot find the dashboard | No access to the dashboard folder | Share the folder with the viewer at Viewer level or higher |
| Component shows "insufficient privileges" or similar | Dashboard viewers can see components only if the source report folder is accessible to the person editing the dashboard | Move or share the source report so the dashboard author and running user can use it |
| Viewer can open the dashboard but cannot edit it | Folder access is Viewer | Grant Editor or Manager access on the dashboard folder |
| Viewer sees the dashboard but "Refresh" is unavailable | The viewer lacks permission to refresh, or the dashboard has a refresh restriction | Check folder access and the dashboard's refresh settings |
| Report was moved or deleted | Component references a missing report | Edit the dashboard and choose a new source report |
Two points are worth remembering. First, a dashboard viewer does not need access to the source report folder to see the dashboard. The running user's access to the report controls whether the component loads. Second, if the running user is deactivated, the dashboard cannot refresh. Choose a new running user and save.
Dynamic dashboard limits
If you cannot create a dynamic dashboard, or you cannot switch the running user, check your edition's limit on dynamic dashboards. The limit varies by edition, so confirm the current number in Salesforce documentation for your edition. Also check that your user has the permissions to manage dynamic dashboards. Two SOQL queries help here. This one lists the dynamic dashboards in an org, which are those whose running user is the logged-in user:
SELECT Id, Title, DeveloperName, FolderName, Type, RunningUserId
FROM Dashboard
WHERE Type = 'LoggedInUser'This one counts dashboards by running-user type, so you can compare the LoggedInUser count with your edition limit:
SELECT Type, COUNT(Id) total
FROM Dashboard
GROUP BY TypeIf the count of LoggedInUser dashboards is at your limit, convert a dashboard you no longer need, or delete it, before creating another.
Refresh problems
Dashboards do not always show live data. Know which refresh mode applies.
- Manual refresh. Data updates when someone with permission clicks Refresh.
- Scheduled refresh. Data updates at set times. If the schedule fails, the dashboard keeps its old data. Check that the running user is active and still has access to the reports.
- Dynamic dashboards. These can be refreshed manually, but they cannot be scheduled for refresh in the same way as a specified-user dashboard. Check the restrictions for your edition and use the Refresh button for current data.
If a refresh keeps failing or never finishes, open each source report and run it. A report that times out or errors will block its dashboard component. Reduce the date range, add a selective filter, or remove an unneeded grouping.
If you see a message that the dashboard cannot be refreshed because of a recent refresh, wait. Salesforce limits how often a dashboard can be refreshed manually.
Filter problems
Dashboard filters narrow every component that uses them, but only if the source report has a matching field.
- A filter has no effect on one component. The report behind that component may not include the field used by the filter, or the report type may not support it. Add the field to the report type, or accept that the component is unfiltered.
- A filter returns nothing. The filter value may not exist in the data. Check spelling and field type, and clear the filter to compare.
- Different viewers see different filtered results. Filters apply on top of the running user's visibility, so a filter cannot reveal records the running user cannot see.
A short checklist
- Run the source report. Does it return rows?
- Does the report include the grouping or summary that the component type requires?
- Who is the running user, and can that user see the records?
- Is the dashboard dynamic, and are you within the edition limit?
- Can the viewer open the dashboard folder? Can the running user use the report folder?
- When was the dashboard last refreshed?
- Do dashboard filters remove all the data?
Exercise
A sales director opens a dashboard that uses a specified running user, a sales representative. The director expected to see the whole team's pipeline, but the numbers cover only that representative's records. What are two ways to fix this, and what is the risk of each?
Show answer
Option one: change the running user to someone with visibility across the team, such as a manager. The risk is that every viewer then sees that wider data, including viewers who should not see it. Option two: change "View dashboard as" to the dashboard viewer so it becomes a dynamic dashboard. The director then sees the data the director can see. The risk is the edition limit on dynamic dashboards, and the fact that dynamic dashboards cannot be scheduled for refresh the way specified-user dashboards can.
Exercise
A chart component is empty. The source report returns rows when you run it. List the next three things you check.
Show answer
First, the running user: confirm that user is active and can see the records. Second, the dashboard filters: clear them to see whether they exclude all rows. Third, the report's grouping or summary: confirm the report still has the field the component uses, since a changed report can leave a component with nothing to plot.