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,342 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
    8,019 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,988 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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35

Featured topics