Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Rajesh Nathi
Unable to Export LAR with Global strucuture and template
13. Oktober 2011 01:31
Antwort

Rajesh Nathi

Rang: Junior Member

Nachrichten: 71

Eintrittsdatum: 8. März 2011

Neue Beiträge

Hi,

I have some structures and templates created in Global scope, i use them to create webcontent in communities. Now when i tried to export LAR of a community
i get below error.

Caused by: com.liferay.portal.kernel.lar.PortletDataException: com.liferay.portlet.journal.NoSuchTemplateException: No JournalTemplate exists with the key {groupId=10164, templateId=GRP_ST_QUICKLINKS_V1}
at com.liferay.portal.kernel.lar.BasePortletDataHandler.exportData(BasePortletDataHandler.java:46)
at com.liferay.portal.lar.PortletExporter.exportPortletData(PortletExporter.java:733)
... 198 more
Caused by: com.liferay.portlet.journal.NoSuchTemplateException: No JournalTemplate exists with the key {groupId=10164, templateId=GRP_ST_QUICKLINKS_V1}
at com.liferay.portlet.journal.service.persistence.JournalTemplatePersistenceImpl.findByG_T(JournalTemplatePersistenceImpl.java:2090)
at com.liferay.portlet.journal.service.impl.JournalTemplateLocalServiceImpl.getTemplate(JournalTemplateLocalServiceImpl.java:403)
at sun.reflect.GeneratedMethodAccessor218.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)

I found that this issue is similar to "http://issues.liferay.com/browse/LPS-11955" , but the fixed version is not available for download in Liferay site.

Can anyone provide a workaround for this issue.

Thanks in advance

-Regards
Rajesh
Nisarg Parikh
RE: Unable to Export LAR with Global strucuture and template
13. Oktober 2011 01:35
Antwort

Nisarg Parikh

Rang: Expert

Nachrichten: 252

Eintrittsdatum: 30. Dezember 2009

Neue Beiträge

There may be some orphaned reference in you DB related to given grouId and templateId.
Check you DB once and try to remove that orphaned reference and then check.

-Nisarg
Jacques Traore
RE: Unable to Export LAR with Global strucuture and template
3. Mai 2013 11:54
Antwort

Jacques Traore

Rang: Junior Member

Nachrichten: 46

Eintrittsdatum: 21. Januar 2013

Neue Beiträge

Hi,
Did you find a solution for the mentioned issue? I'm having a same trouble.

Thanks in advance to share if so...
Jacques Traore
RE: Unable to Export LAR with Global strucuture and template
3. Mai 2013 12:08
Antwort

Jacques Traore

Rang: Junior Member

Nachrichten: 46

Eintrittsdatum: 21. Januar 2013

Neue Beiträge

Problem solved.
Effectively, there were some JournalArticle with the wrong templateId.
I had imported that template manually a couple weeks ago and I didn't use the right Id when I re used it.

I hope this can help in the future