Legacy Knowledge Base
Published Jun. 30, 2025

Import failed with duplicate layout page template

Written By

Sivakumar Perumal

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

  • The import process failed with the below error
    2023-01-02 06:33:32.734 [liferay/backgroundtask-4] com.liferay.exportimport.internal.lifecycle.LoggerExportImportLifecycleListener.onStagedModelImportFailed(LoggerExportImportLifecycleListener.java:399) : Staged model {class: com.liferay.layout.page.template.model.LayoutPageTemplateEntry, groupId: 20121, uuid: 92b3c1a5-a499-051e-b7a7-2cb3821474e3} import failed com.liferay.layout.page.template.exception.LayoutPageTemplateEntryNameException$MustNotBeDuplicate: Duplicate layout page template for group 20121 with name BEE(x) at com.liferay.layout.page.template.service.impl.LayoutPageTemplateEntryLocalServiceImpl.validate(LayoutPageTemplateEntryLocalServiceImpl.java:1004) ~[?:?]
    at com.liferay.layout.page.template.service.impl.LayoutPageTemplateEntryLocalServiceImpl.addLayoutPageTemplateEntry(LayoutPageTemplateEntryLocalServiceImpl.java:133) ~[?:?]

Environment

  • Liferay DXP 7.4

Resolution

  • The above error will appear if the different page templates are having the same name on the site.
    site id 20121 with page template name BEE.
  • Renaming any of the templates should help import successfully.
Did this article resolve your issue ?

Legacy Knowledge Base