Legacy Knowledge Base
Published Jul. 2, 2025

I cannot import a LAR file through the widget's Export/Import menu

Written By

Tímea Bihari

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

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

Issue

  • I have a LAR file that was exported from the portal instance (for example: Wiki_Admin-202004081110.portlet.lar)
  • I navigate to the page where the Wiki widget is located and select the Export/Import option in the widget's configuration menu
  • When I select my LAR file for import, I get an error: "The file Wiki_Admin-202004081110.portlet.lar cannot be imported. Please import a LAR file for the current portlet."
  • There is also an error in the console:
    WARN [http-nio-8080-exec-16][PortalImpl:6872] java.lang.IllegalStateException: Send redirect after commit 

Environment

  • Liferay DXP 7.0+
  • Liferay Portal 6.2

Resolution

  • There are two ways to export/import the widget's content. You can navigate to the administrative area located in the Product Menu, or you can visit the widget on its page. Both export/import menus work the same, but the administrative area may hold content different from its widget counterpart.

  • Therefore, the LAR file that you exported from the administrative area will not be compatible to be imported into the widget on the page. You can only import the file at the same place it was exported from.

  • The names of the LAR files are different as well:

    • LAR file exported from Site Administration > Content > Wiki: Wiki_Admin-202004081110.portlet.lar

    • LAR file exported from the Wiki widget on the page: Wiki-202004081112.portlet.lar

Note: The Wiki widget was used as an example only, the same mechanism is true for other widgets.

Additional Information

For a more detailed explanation, please refer to our Knowledge Base articles:

 

Did this article resolve your issue ?

Legacy Knowledge Base