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
Mohsinkhan PathanMohsinkhan Pathan 

Related list you're trying to view isn't in the layout. Please get in touch with your administrator

Hi All,

I have a VF Page for Account that has the related list (Cases) added in the Vf page code. When I login in classic and click on account record, go to Cases related list and click on New case button - It is redirecting to Selecting record type page and flow continues till i create a case (Working as Expected).

But when i switch to Lightning and do the same, i.e Open a Account record, Go to cases related list and click on New case button - It allows to select the Record type and after that throws the below error.
Unfortunately, the related list you're trying to view isn't in the layout. Please get in touch with your administrator.

The related list is added in VF page and can be seen. Also works fine in Classic. But not working in Lightning.
Please help in resolving this error. Thanks in Advance.

Regards, 
Khan