Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Answered

Unexpected Error with Query Parameter in Power Pages Portal

(1) ShareShare
ReportReport
Posted on by 24
I'm encountering an issue in my Power Pages portal when using year as a query parameter in the URL. Here’s the scenario:
  1. When the URL is structured as ?activationId=<value>&year=<value>, I receive the error:
    "The year query parameter is not supported."
  2. However, if I swap the order to ?year=<value>&activationId=<value>, it works fine.

The year parameter's value is correct (a valid record ID), and the error only occurs when year is used in the second position of the query string.

I've ensured proper URL encoding for all parameters..

How can I use year as a query parameter without causing this issue?

Categories:
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,242 Most Valuable Professional on at
    Unexpected Error with Query Parameter in Power Pages Portal
    I just tested this and didn't have any issues, do you have any custom Liquid code that could be validating on all request params that could be throwing this error? 
  • Suggested answer
    Fubar Profile Picture
    7,762 Super User 2025 Season 1 on at
    Unexpected Error with Query Parameter in Power Pages Portal
    Liquid can't read local storage etc as it runs server side - you would have to implement that in JavaScript on the receiving page.
     
    My question would be, how were you adding the url paramter that you were having the issue with? (and is it a field value on the current record?)
  • Verified answer
    CU26111754-0 Profile Picture
    24 on at
    Unexpected Error with Query Parameter in Power Pages Portal
    The error is solved but instead of passing as query param can we use js cookies or session storage.How we can retrieve them using liquid code. I didn't found anything for that
  • CU26111754-0 Profile Picture
    24 on at
    Unexpected Error with Query Parameter in Power Pages Portal
    i rename year with other param also but it also not working,

    The error  i got on console 
    {"code":"9004010B","message":"The [param_name] query parameter is not supported"}
  • Suggested answer
    SaiRT14 Profile Picture
    1,961 Super User 2025 Season 1 on at
    Unexpected Error with Query Parameter in Power Pages Portal
     
    Some query parameter names (like year) may conflict with reserved words or built-in functions in the Power Pages framework, causing unpredictable behavior. or The order of query parameters may affect how they are parsed if specific logic is implemented in the portal or custom scripts.
     
    The simplest fix is to avoid using year as a query parameter. Instead, use an alternative name like yearId, yr, or customYear. - ?activationId=<value>&yearId=<value>
     
    let me know whether it fixes your issue?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,661 Most Valuable Professional

Leaderboard

Featured topics