Fórumok

Unable to Export LAR with Global strucuture and template

Rajesh Bangaram, módosítva 12 év-val korábban

Unable to Export LAR with Global strucuture and template

Junior Member Bejegyzések: 71 Csatlakozás dátuma: 2011.03.08. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: Unable to Export LAR with Global strucuture and template

Expert Bejegyzések: 262 Csatlakozás dátuma: 2009.12.31. Legújabb bejegyzések
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
thumbnail
Jacques Traore, módosítva 10 év-val korábban

RE: Unable to Export LAR with Global strucuture and template

Junior Member Bejegyzések: 49 Csatlakozás dátuma: 2013.01.21. Legújabb bejegyzések
Hi,
Did you find a solution for the mentioned issue? I'm having a same trouble.

Thanks in advance to share if so...
thumbnail
Jacques Traore, módosítva 10 év-val korábban

RE: Unable to Export LAR with Global strucuture and template

Junior Member Bejegyzések: 49 Csatlakozás dátuma: 2013.01.21. Legújabb bejegyzések
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