掲示板

Error importing LAR

thumbnail
13年前 に Dmitry Brin によって更新されました。

Error importing LAR

New Member 投稿: 24 参加年月日: 10/06/29 最新の投稿
I am getting the following error when trying to import LAR. Any suggestions on how to resolve it? I don't know which article is a problem for certain but I have a guess.

...
2010-06-29 17:19:03,500 WARN  [JournalPortletDataHandlerImpl:945] An article with the ID 199839 already exists. The new generated ID is 213321
2010-06-29 17:19:03,527 WARN  [ImagePersistenceImpl:285] No Image exists with the primary key 213332
2010-06-29 17:19:03,529 WARN  [ImageLocalServiceImpl:200] Unable to get image 213332: No Image exists with the primary key 213332
2010-06-29 17:19:03,532 WARN  [ImagePersistenceImpl:143] No Image exists with the primary key 213332
2010-06-29 17:19:03,585 WARN  [JournalPortletDataHandlerImpl:945] An article with the ID 199847 already exists. The new generated ID is 213329
2010-06-29 17:19:03,617 ERROR [ImportPagesAction:84] com.liferay.portal.SystemException: com.liferay.portal.lar.PortletDataException: com.liferay.portlet.journal.DuplicateArticleIdException
com.liferay.portal.SystemException: com.liferay.portal.lar.PortletDataException: com.liferay.portlet.journal.DuplicateArticleIdException
        at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:468)
        at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:368)
        at com.liferay.portal.lar.LayoutImporter.importLayouts(LayoutImporter.java:644)
        at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:612)
...


Thanks very much,
D
p.s. 5.2 SP3
12年前 に Cristiano Carretti によって更新されました。

RE: Error importing LAR

New Member 投稿: 2 参加年月日: 11/11/25 最新の投稿
I have the same problem on Liferay 6.1 GA1 emoticon
Somebody can i help me?
thumbnail
10年前 に Jacques Traore によって更新されました。

RE: Error importing LAR

Junior Member 投稿: 49 参加年月日: 13/01/21 最新の投稿
Hi Cristiano,
Did you find a solution for that issue. I'm facing the same situation for a couple days and don't know how to figure it out. emoticonemoticonemoticonemoticon

Thanks in advance
thumbnail
10年前 に mohammad azaruddin によって更新されました。

RE: Error importing LAR

Expert 投稿: 492 参加年月日: 12/09/17 最新の投稿
Hi
I'm Unable to figure out exact solution for this
But LAR is version dependent.you cannot use LAR of liferay 6.1.0 in Liferay 6.1.1
thumbnail
10年前 に Jacques Traore によって更新されました。

RE: Error importing LAR

Junior Member 投稿: 49 参加年月日: 13/01/21 最新の投稿
Thank you Mohammad.
I forgot to mention that I am using LR 6.1.1 GA in both import and export environment.
The case is: I've imported some contents in my locals (host + db) by axis via journalArticle.addArticle(...) and I did some changes manually. There is about 600 contents.
Now, I want to export these contents in a lar file and then import them in the test environment which has a same configuration as my local one.
But I can't import the lar file and I get a DuplicateArticleIdException. Don't know what happens...

Any help will be greatly appreciated.

Thanks in advance
thumbnail
10年前 に mohammad azaruddin によって更新されました。

RE: Error importing LAR

Expert 投稿: 492 参加年月日: 12/09/17 最新の投稿
Hi
Create new database and import mysql dump to new database.and try importing LAR
thumbnail
10年前 に Jacques Traore によって更新されました。

RE: Error importing LAR

Junior Member 投稿: 49 参加年月日: 13/01/21 最新の投稿
Thank you Mohammad, that is working as expected.
It`s not look like a "consistent" solution but it works emoticon.

Note: I use Oracle as database.

Thks,