function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anne fdsgafaanne fdsgafa 

Unfortunately, the related list you're trying to view isn't in the layout error

Hi, I followed the steps on salesforce website to add action plans to my account object page layout Related Lists and I have also added the action plans list - financial services cloud to the client record page as well.

The Action Plan preview shows up correctly on the page layout, however when I click the "View All" or I click the "Action Plans (3)" link, it navigates me to a new page and shows me the error "Unfortunately, the related list you're trying to view isn't in the layout. Please get in touch with your administrator".

My user profile is system administrator.  

User-added image
Raj VakatiRaj Vakati
My Guess is the list view is not existing in the system 

Within a Lightning Experience custom detail page app, making use of force:navigateToRelatedList in a Lightning Component may result in errors. When the event force:navigateToRelatedList fires, you move to a new page you expect to display a list of all the records for some related list. 

Instead, you might see one or both of the following errors:


"This list view isn't available in Lightning Experience. To see this list view, use Salesforce Classic or switch to another list view." 
"Unfortunately, the related list you're trying to view isn't in the layout. Please get in touch with your administrator." 


Refer this link 

https://help.salesforce.com/articleView?id=000249693&type=1


And see what is the code in View All and check the list view ID or name is present in the system or now 
 
anne fdsgafaanne fdsgafa
I can't edit the code in View All because it's out of box 
Raj VakatiRaj Vakati
Can u check in the debugs logs and see why it is failing ?
Samuel MSamuel M
Hi Anne, 
Could you ensure that you have added related list in your page layout

Here is the solution for your question, please follow the below link
https://help.salesforce.com/articleView?id=000320285&type=1 (https://help.salesforce.com/articleView?id=000320285&type=1)

Thanks!
Samuel M
Anthony SkinnerAnthony Skinner
Anne, ever get an answer here?
Emi SantosEmi Santos
I tried clearing cookies, clearing the cache and so on. But it looks like it's not the browser error. That's the application error. I've been usingthe saleforce on https://mp3jaw.site/ (https://mp3jaw.site) and is loosing sales. I guess application error will be fixed soon.
Kiranjeet SinghKiranjeet Singh
I am facing the same issue. Has anyone found the declarative way of fixing this list view error ? 
Mira Cheytanova 3Mira Cheytanova 3
When you add the Related list Actino Plans to the Person account page layout, then you add the Action Plan List component in the Lightning app builder - the issue is that they both show on the page layout now. So How can you use the Component without seeing the Related list?You see both here, and when you click View All - no error. 1st is  Component. 2nd is the Related list.