Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rajesh Nathi
Unable to Export LAR with Global strucuture and template
October 13, 2011 1:31 AM
Answer

Rajesh Nathi

Rank: Junior Member

Posts: 71

Join Date: March 8, 2011

Recent Posts

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
October 13, 2011 1:35 AM
Answer

Nisarg Parikh

Rank: Expert

Posts: 252

Join Date: December 30, 2009

Recent Posts

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
May 3, 2013 11:54 AM
Answer

Jacques Traore

Rank: Junior Member

Posts: 45

Join Date: January 21, 2013

Recent Posts

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
May 3, 2013 12:08 PM
Answer

Jacques Traore

Rank: Junior Member

Posts: 45

Join Date: January 21, 2013

Recent Posts

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