Legacy Knowledge Base
Published Sep. 10, 2025

Why the "Error executing FreeMarker template" is thrown in the logs?

Written By

Prarthana Jadhav

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • What is the reason behind the following error which is thrown in the logs?
    [runtime:60] Error executing FreeMarker template 
    FreeMarker template error:
    The following has evaluated to null or missing:
    ==> httpUtil.decodeURL(filename) [in template "20116#201520000000#523000001477" at line 36, column 34]

Environment

  • Liferay DXP 7.0

Resolution

  • This Freemarker template error states that code is attempting to find a file with a name that is expected to be at line 36 in "20116#201520000000#523000001477" template.
  • The error and line number may vary scenario to scenario. To know which template is causing this error, search the template with the templateid:20116( in this case) among all the sites and figure the template is causing this error. 

Additional Information

  • Please note that the pointers provided in the resolution are based on generic scenarios. The resolutions may vary with different environments as well.
Did this article resolve your issue ?

Legacy Knowledge Base