Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Security
Suggested answer

The view is not available.

(2) ShareShare
ReportReport
Posted on by 4
While attempting to complete a Microsoft Learn training exercise (https://learn.microsoft.com/en-us/training/modules/power-pages-studio-data-security/exercise) I keep getting the error "The view is not available.".
I have checked the steps and have performed them on two different environments. But keep getting the same error.
Categories:
  • Fubar Profile Picture
    8,027 Super User 2025 Season 2 on at
    The view is not available.
    @Robert Weaver the out of the box Authenticated Users role is configured (Authenticated checkbox on the Web Role) such that it is inherited by signed in users (i.e. you do not need to assign it directly to users, the exception to this is if you have multiple Web Roles that have been set for inheritance in which case the other role could be being used as only 1 will inherit). Other Web Roles need to be assigned to the respective Contact record.
    If manually assigning roles, there is difference between Standard and the Enhanced Model you may find old documentation that shows the Standard model way of doing things.  The Power Pages Management App, has a Portal Contact form for Contact records, on that form you will see a subgrid at the bottom of the first tab, this is where you can assign Web Roles - note the subgrid will only be on that specific form not all forms. (in the standard model you could assign from the Contact or the Web Role, but enhanced it is just from the Contact)
     
    The order of adding a List or adding Table Permissions should not matter. 
     
    One item that I noticed in the exercise is that it gets you to create a new column and then add that column to the criteria of a view. That new column will contain no data until populated (or a new record is created in which case it will get the default value, and even then the default value is No but the criteria is to show only Yes), as it is now part of the view criteria the view will have no data to show as no records match the criteria of Yes.
     
    Also, you could have experienced a cache issue - where the Portal is reading from its cache but your updates are not in the cache. Usually, the Preview button from the Designer clears the portals cache (but sometimes it doesn't and there is no indication that it hasn't).
  • Suggested answer
    Robert Weaver Profile Picture
    2 on at
    The view is not available.
    I found this when investigating the exact same issue for the exact same exercise. My best guess is that there is some missing information in the training material, some missing functionality on trial environments, or a bug with the "list" object.
     
    Firstly, we grant access to the "Authenticated users" role but then there is no direction on how to add users to that role. The closest I have got is using the "Sign in" button on the site preview to log in with my entra ID. At this point I can update my profile. This associates my user with a contact. There is then material online that describes how to associate contacts with roles, this doesn't seem to be possible in my trial environment. However I can now set page permissions to authenticated users. and get access to those pages based upon whether or not I am signed in to the page.
     
    If I replace the list control with a card gallery, I can get the filtered view to appear as a card gallery, which suggests I have access to the view, however I can only have the account name visible.
    ----------------------------
     
    As I was writing this I managed to fix this myself - upon deleting the list and recreating it with table permissions already created (authenticated users), I managed to view the list in preview while I was signed in. I think in this case this is a bug & issue with the training material: It seems we need to establish table permissions before we create the list view, not after. We can do this through the security menu on the left hand side of the designer. We then also need to be signed into the page with our entra ID to view the content.
     
  • Suggested answer
    RW-03071147-0 Profile Picture
    2 on at
    The view is not available.
     
     
  • JN-20020050-0 Profile Picture
    4 on at
    The view is not available.
    Hi Oliver,

    Thanks for your detailed checks, unfortunately for me it all looks like you have described to me. Permissions are set so all users can can view the page and table. The code is matching the list view name. Even changing the view still does not work.
     
    But doing the same steps with another table works. E.g. Contacts
     
    Is it possible that there is another level of permissions that I might be missing that is preventing me form viewing the table?
     
    See attached and code below:
     
    <div class="row sectionBlockLayout text-start" style="display: flex; flex-wrap: wrap; margin: 0px; min-height: auto; padding: 8px;">
      <div class="container" style="display: flex; flex-wrap: wrap;"><div class="col-lg-12 columnBlockLayout" style="flex-grow: 1; display: flex; flex-direction: column; min-width: 250px; padding: 16px; margin: 60px 0px;">{% include 'entity_list' key: 'Directory' %}</div></div>
    </div>
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    The view is not available.
    from what I can see, your configuration looks correct.. and I am actually not familiar with that error message, that looks new to me entirely
     
    a few things to check
    • Open the Power Pages Management App
    • Navigate to Web Pages - open your web page
    • Navigate to the Localized Content pages (it's a subgrid within the web page) - and open the child page
    • In there, you should see a HTML/Liquid code in the Body section - can you copy/paste it here?
    • Navigate to the Lists as well - and check if the name matches the Liquid code reference / also check to make sure table name / views / etc are all as expected
    • Navigate to Permissions and check for the same
    Ultimately your Portal configuration is stored in the Dataverse behind the scenes, and the Power Pages Management App is similar to the Portal Studio, however it provides more advanced configuration options
  • Suggested answer
    JN-20020050-0 Profile Picture
    4 on at
    The view is not available.
    I am just providing what I have available I have updated the table. Created the View, connected the view. Updated the permissions but keep getting the error "The view is not available.".
     
    If you look at the Account Read - Settings provided you can see the table in the preview. The name of the view is Directory see attached.
     
    There is not other errors or warnings.
  • Michael E. Gernaey Profile Picture
    45,183 Super User 2025 Season 2 on at
    The view is not available.
    Hi,
     
    You'd have to show the actual error etc. The picture of the View doesn't really tell us the name of the view.
     
    Look in your solution and validate the name of the solution and environment.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Featured topics