Foros de discusión

Error importing LAR

thumbnail
Dmitry Brin, modificado hace 13 años.

Error importing LAR

New Member Mensajes: 24 Fecha de incorporación: 29/06/10 Mensajes recientes
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
Cristiano Carretti, modificado hace 12 años.

RE: Error importing LAR

New Member Mensajes: 2 Fecha de incorporación: 25/11/11 Mensajes recientes
I have the same problem on Liferay 6.1 GA1 emoticon
Somebody can i help me?
thumbnail
Jacques Traore, modificado hace 10 años.

RE: Error importing LAR

Junior Member Mensajes: 49 Fecha de incorporación: 21/01/13 Mensajes recientes
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
mohammad azaruddin, modificado hace 10 años.

RE: Error importing LAR

Expert Mensajes: 492 Fecha de incorporación: 17/09/12 Mensajes recientes
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
Jacques Traore, modificado hace 10 años.

RE: Error importing LAR

Junior Member Mensajes: 49 Fecha de incorporación: 21/01/13 Mensajes recientes
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
mohammad azaruddin, modificado hace 10 años.

RE: Error importing LAR

Expert Mensajes: 492 Fecha de incorporación: 17/09/12 Mensajes recientes
Hi
Create new database and import mysql dump to new database.and try importing LAR
thumbnail
Jacques Traore, modificado hace 10 años.

RE: Error importing LAR

Junior Member Mensajes: 49 Fecha de incorporación: 21/01/13 Mensajes recientes
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,