Export fails in Liferay ce 7 GA5 because of missing referencesExport fails in Liferay ce 7 GA5 because of missing referenceshttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1005463912024-03-28T22:02:45Z2024-03-28T22:02:45ZRE: Export fails in Liferay ce 7 GA5 because of missing referencesYannis Sinadinoshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1006405772017-12-12T12:46:35Z2017-12-12T12:46:35ZI finally succeeded to export the lar file.<br /><br />I overcome this error by adding a row in Group_ table with the missing id. Although it is an orphan row, the export passed successfully this error. <br /><br />Still need a tool for orphan entries in the database... Any proposals?<br /><br />Thank you for reading my post.<br />YannisYannis Sinadinos2017-12-12T12:46:35ZRE: Export fails in Liferay ce 7 GA5 because of missing referencesYannis Sinadinoshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1006288002017-12-12T11:04:15Z2017-12-12T11:04:15ZI just found out the the primary key 36194 was the groupid value in Group_ table in my first dev environment. <br /><br />It seems that during export import process somehow this value passed to the current environment.<br /><br />I tried to locate in the database and run several queries than scan the database for the specific value, without success. I also searched my custom theme and the filesystem for this value, without success.<br /><br />Is there a tool to search for orphan entries and clean the database?Yannis Sinadinos2017-12-12T11:04:15ZRE: Export fails in Liferay ce 7 GA5 because of missing referencesYannis Sinadinoshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1006207102017-12-12T07:46:16Z2017-12-12T07:46:16ZHi,<br /><br />I have created a structure for my site "services" and the related template and also an Application Display Template.<br />I didn't delete anything so far in my project, just tried to export the site and move to another server.<br /><br />So, there is no custom application, it is a simple site using Liferay's configuration structures/templates/ADT's.Yannis Sinadinos2017-12-12T07:46:16ZRE: Export fails in Liferay ce 7 GA5 because of missing referencesStephen Kostashttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1005988372017-12-11T22:14:27Z2017-12-11T22:14:27ZHey Yannis,<br /><br />Do you have any custom applications that are exporting data or any custom asset types? <br />My first guess is that there's an issue with exporting some kind of custom asset. My only other thought is that some reference from that "Wind Service Menu Styles" was in fact deleted at some point, and the template was never updated accordingly.Stephen Kostas2017-12-11T22:14:27ZExport fails in Liferay ce 7 GA5 because of missing referencesYannis Sinadinoshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1005463902017-12-11T14:03:59Z2017-12-11T14:03:59Z<html><head></head><body>Hi, <br><br>When i try to export my site from Publishing -> Export, i get the following error:<br><br><blockquote>An unexpected error occurred with the publication process. Please check your portal and publishing configuration.<br>The Dynamic Data Mapping Template: Wind Service Menu Tiles has missing reference(s) that could not be found during the process.</blockquote><br><br>And the related logs are:<br><pre><code>
13:50:08,763 WARN [liferay/background_task-1][BaseTextExportImportContentProcessor:299] No Group exists with the key {repositoryId=30268}
13:50:08,763 WARN [liferay/background_task-1][BaseTextExportImportContentProcessor:299] No Group exists with the key {repositoryId=30268}
13:50:08,868 WARN [liferay/background_task-1][BaseTextExportImportContentProcessor:299] No Group exists with the key {repositoryId=30268}
13:50:14,523 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:165] Unable to execute background task
com.liferay.exportimport.kernel.lar.PortletDataException: com.liferay.portal.kernel.exception.NoSuchGroupException: No Group exists with the primary key 36194
at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:146)
at com.liferay.exportimport.lar.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:67)
at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportStagedModel(StagedModelDataHandlerUtil.java:155)
at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportReferenceStagedModel(StagedModelDataHandlerUtil.java:77)
at com.liferay.portlet.display.template.exportimport.portlet.preferences.processor.PortletDisplayTemplateExportCapability.exportDisplayStyle(PortletDisplayTemplateExportCapability.java:89)
at com.liferay.portlet.display.template.exportimport.portlet.preferences.processor.PortletDisplayTemplateExportCapability.process(PortletDisplayTemplateExportCapability.java:51)
at com.liferay.exportimport.controller.PortletExportController.exportPortletPreference(PortletExportController.java:953)
at com.liferay.exportimport.controller.PortletExportController.exportPortletPreferences(PortletExportController.java:1056)
at com.liferay.exportimport.controller.PortletExportController.exportPortlet(PortletExportController.java:766)
at com.liferay.exportimport.controller.LayoutExportController.doExport(LayoutExportController.java:563)
at com.liferay.exportimport.controller.LayoutExportController.export(LayoutExportController.java:158)
at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.exportLayoutsAsFile(ExportImportLocalServiceImpl.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)...
</code></pre><br><br>I was searching in the database for