web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Knowledge Base broken ...
Power Pages
Unanswered

Knowledge Base broken after clicking on Category Name

(0) ShareShare
ReportReport
Posted on by 27

Has anyone encountered this recently?

 

Our Knowledge Base was working fine in all environments. We had all configured and setup. We are using the ootb Knowledge Base and then suddenly it broke - stopped working - when clicking on any of the categories. The Page was showing the default text ' The requested Knowledge article is unavailable. Please contact your Portal Administrator.'

 

But if we browse to a KB Article URL the article was visible on the Portal - so something was wrong with the Category Details Page.

 

After much troubleshooting and successfully interrogating the fetch xml of the Category Details Web Template - there were knowledge articles results - I found that this section of the Web Template was not working:

 

{% block breadcrumbs %}
{% assign categoryid = request.params['id'] %}
 
{% if categoryid %}
{% assign category = knowledge.categories | category_number: categoryid %}
{% if category %}
{% assign pagetitle = category.title %}
{% assign categoryguid = category.categoryid %}
{% else %}
{% assign pagetitle = resx["Knowledge_Article_Unavailable"] %}
{% endif %}
{% endif%}
{% include 'Breadcrumbs' title: pagetitle %}
{% endblock %}

{% block title %}
{% include 'Page Header' title: pagetitle %}
{% endblock %}

 

It was not rendering / running so that when the next block main tried to use those values (categoryguid etc) they were not present. To fix I have just dropped the contents of block breadcumbs into block main. The Category Details page is then showing a list of articles related to the given category, as expected.

 

We have been using the new Power Pages Design Studio so I wonder if something went awry with this page when we used it in the Design Studio. The Category Details page is still using the installed Page Template Category Details (and not the Design Studio Default studio template).

 

Thanks!

Categories:
I have the same question (0)
  • BrianCryer Profile Picture
    21 on at

    It is worth double checking the basics, so:

     

    1. When viewing the page, the url has 'id' as a parameter, for example: category/?id=CAT123
    Where for you "CAT123" will be something unique to you, that's just an example.

     

    2. If you look in Dynamics ("Portal Management") that you can see a category with that exact category number.

  • dokane Profile Picture
    27 on at

    Thanks @BrianCryer 

     

    Both points check out - the ID is in the URL and matches up with the record in D365.

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @dokane 

     

    If it is working in other environments, not just in one environment, did you use any migration tools to transfer the content?  

    I would suggest you use the official configuration mover tool or XRM Toolbox portal records mover 

     

    If you still have broken links, Please raise a support case with Microsoft. Official link here. 

     

    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 64

#2
DP_Prabh Profile Picture

DP_Prabh 34

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 30 Most Valuable Professional

Last 30 days Overall leaderboard