<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>ExportImportConfiguration</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121146993" />
  <subtitle>ExportImportConfiguration</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121146993</id>
  <updated>2026-04-04T13:34:44Z</updated>
  <dc:date>2026-04-04T13:34:44Z</dc:date>
  <entry>
    <title>RE: ExportImportConfiguration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121162161" />
    <author>
      <name>Zsigmond Rab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121162161</id>
    <updated>2021-09-22T14:35:50Z</updated>
    <published>2021-09-22T14:35:49Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ok, I think the problem is that the LAR file you exported there is a
  portlet type LAR file that contains all the data from the
    &lt;em&gt;Navigation Menus&lt;/em&gt; portlet. That won't work in your code as
  that is for layouts. You can use LAR file that has been exported from
  a site, site temple, or page template.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Zsigmond&lt;/p&gt;</summary>
    <dc:creator>Zsigmond Rab</dc:creator>
    <dc:date>2021-09-22T14:35:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: ExportImportConfiguration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121157328" />
    <author>
      <name>Daniel G</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121157328</id>
    <updated>2021-09-20T09:07:40Z</updated>
    <published>2021-09-20T09:07:40Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the help. I was generating an export lar file of the
  navigation menu a site(Liferay 7.3). Menu - Site Builder -  Navigation menus&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</summary>
    <dc:creator>Daniel G</dc:creator>
    <dc:date>2021-09-20T09:07:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: ExportImportConfiguration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121149698" />
    <author>
      <name>Zsigmond Rab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121149698</id>
    <updated>2021-09-16T10:40:26Z</updated>
    <published>2021-09-16T10:40:25Z</published>
    <summary type="html">&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;That may come if the LAR type is not one of the predifined
  ones, &amp;quot;layout-prototype&amp;quot;, &amp;quot;layout-set&amp;quot;
  or &amp;quot;layout-set-prototype&amp;quot;. You could debug on the code level
  to see what is coming during processing the LAR.&lt;/p&gt;
&lt;p&gt;Otherwise, knowing where on the Control Panel you generated the LAR
  file exactly or a step by step description of what your trying may
  help to find the problem.&lt;/p&gt;
&lt;p&gt;Zsigmond&lt;/p&gt;</summary>
    <dc:creator>Zsigmond Rab</dc:creator>
    <dc:date>2021-09-16T10:40:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: ExportImportConfiguration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121149424" />
    <author>
      <name>Daniel G</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121149424</id>
    <updated>2021-09-16T09:07:44Z</updated>
    <published>2021-09-16T09:07:44Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First of all, thanks for the help. I was able to create exportIMport
  configuration with you link, but when I try to import, I received a &lt;/p&gt;
&lt;pre&gt;
com.liferay.exportimport.kernel.exception.LARTypeException&lt;/pre&gt;
&lt;p&gt;The file which I am trying to import is a lar file generated from the
  control panel, and not modified. Do you have any idea wy this is happening?&lt;br /&gt;
  &lt;br /&gt; Thanks!&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;</summary>
    <dc:creator>Daniel G</dc:creator>
    <dc:date>2021-09-16T09:07:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: ExportImportConfiguration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121148381" />
    <author>
      <name>Zsigmond Rab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121148381</id>
    <updated>2021-09-15T13:21:52Z</updated>
    <published>2021-09-15T13:21:34Z</published>
    <summary type="html">&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;Have you tried the examples that you can find in the portal source?&lt;/p&gt;
&lt;p&gt;For example: &lt;a href="https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/events/ServicePreAction.java#L225-L266"&gt;https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/events/ServicePreAction.java#L225-L266&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can that work to you?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Zsigmond&lt;/p&gt;</summary>
    <dc:creator>Zsigmond Rab</dc:creator>
    <dc:date>2021-09-15T13:21:34Z</dc:date>
  </entry>
  <entry>
    <title>ExportImportConfiguration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121146992" />
    <author>
      <name>Daniel G</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121146992</id>
    <updated>2021-09-16T20:17:02Z</updated>
    <published>2021-09-14T15:15:03Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to import programatically a navigation menu from one site
  to another. I export from the control panel the file from origin site,
  and then I recover it from database with this:&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;
configuration = ExportImportConfigurationLocalServiceUtil.getExportImportConfiguration(siteId);
file = ExportImportLocalServiceUtil.exportLayoutsAsFile(
    configuration );&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now I am trying to import to other file with this&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;ExportImportLocalService.importLayouts(ExportImportConfiguration exportImportConfiguration, File file)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but I don't know how to create the new ExportImportConfiguration
  object. Could anyone help me?&lt;br /&gt;
  &lt;br /&gt; Thanks in advance&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</summary>
    <dc:creator>Daniel G</dc:creator>
    <dc:date>2021-09-14T15:15:03Z</dc:date>
  </entry>
</feed>
