Loading

Error: "Report cannot be deleted" for report linked to dashboard component

Дата публикации: Oct 13, 2022
Описание

When you try to delete a Report, you might get the following error message:

CLASSIC:

Report cannot be deleted
One or more dashboards depend on this report. Please delete the dashboard components referring to this report and try again.


LIGHTNING:

We couldn't complete your request. Ask your Salesforce admin for help.
Error Details
The report can't be deleted because there are one or more dashboards referencing it.

Решение

The reason this error message comes up is because the report is a component of a dashboard. You cannot  delete reports if they are associated to a dashboard component. 

To find the Dashboard Component associated to the Report, follow these steps:
 

(A)  Create a custom report type


1. Go to Setup | Create | Report Types | New custom report types
2. Set the primary object to Reports and the secondary object to Dashboard components
3. Set the Dashboard components to "A" records may or may not have related "B" Records
4. Run the report using that report type and include the following fields:
  • Report Name
  • Dashboard Title
  • Dashboard Component ID
  • Dashboard Components: Created By: Full Name


Note: You may add a filter Report Name equal to "Name of Report" to limit the results.

 

(B)  Delete the Dashboard Component


1. Copy the Dashboard Component ID and paste it on your browser URL bar, right after your instance name. For example:
 
  • Dashboard Component ID: 000XXXXXXXXXXXX
  • Browser URL: https://na5.salesforce.com/ 000XXXXXXXXXX

2. If you can open the Dashboard Component, simply delete it.
3. If you can't open the Dashboard Component due to a "Data Not Available" error message, this means that the Dashboard Component is saved in someone else's Personal Dashboard Folder.
4. Have the user who owns the personal folder where the dashboard is stored delete the Dashboard Component ID, as explained in Step 1. 
Номер статьи базы знаний

000384818

 
Загрузка
Salesforce Help | Article