InfoFinland - Open data

An error occurred while processing the template.
The following has evaluated to null or missing:
==> doc.selectSingleNode("/root/dynamic-element[@field-reference='heading']/dynamic-content[@language-id='fi_FI']")  [in template "16843633765032#2862924#2589204" at line 12, column 25]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign node = doc.selectSingleNode("...  [in template "16843633765032#2862924#2589204" at line 12, column 9]
----
1<#assign localeFi = localeUtil.fromLanguageId("fi_FI") /> 
2<div> 
3 
4    <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
5 
6    <#if locale != localeFi> 
7        <#assign groupId = (groupId!0) /> 
8        <#assign articleId = .vars["reserved-article-id"].data/> 
9        <#assign ja = journalArticleLocalService.fetchLatestArticle(groupId, articleId, 0) /> 
10 
11        <#assign doc = saxReaderUtil.read(ja.getContent()) /> 
12        <#assign node = doc.selectSingleNode("/root/dynamic-element[@field-reference='heading']/dynamic-content[@language-id='fi_FI']") /> 
13 
14        <#assign fiTitle = node.getText() /> 
15        <#if !fiTitle?has_content> 
16            <#assign fiTitle = themeDisplay.getLayout().getName(localeFi) /> 
17        </#if> 
18        <span lang="fi" style="font-size: 14px; margin-left:1px;" class="block text-action mb-3 text-gray-darker">${fiTitle}</span> 
19    </#if> 
20    <#if (heading.getData())?? && heading.getData()?has_content> 
21        <h1>${heading.getData()}</h1> 
22    <#else> 
23        <h1>${themeDisplay.getLayout().getName(locale)}</h1> 
24    </#if> 
25</div> 

All texts published on the InfoFinland website in all languages are freely available under the Creative Commons BY 4.0 deed. Right of use does not apply to images on the site.

You are free to:

  • Share — copy and redistribute the material in any medium or format
  • Adapt — remix, transform, and build upon the material for any purpose, even commercially.

Under the following terms:

  • Attribution — You must give credit to InfoFinland.fi as the source. Provide a link to InfoFinland.fi and mention the licence, CC BY 4.0. Indicate if you have made changes to the material. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or the material you produce.
  • No additional restrictions — You may not apply legal terms or technical measures that legally restrict others from doing anything the licence permits.

Please note that the permission under the licence does not apply to images and illustrations on the InfoFinland.fi website.

14.01.2026