Issue
Import fails if a web content that contains fieldset in structure, is added in the LAR.
-
Steps to Reproduce:
-
Go to Content & Data --> Web Content --> Structures and create 3 structures like the following:
-
First structure, name it "fieldSetStructure" and add to it a few fields.
-
Second structure, name it "structure1" and add to it "fieldSetStructure" fieldset
-
Third structure, name it "structure2" and add to it "structure1" fieldset.
-
Export the structures by going to "Web Content" and then click on the 3 dot menu Export / Import and download the LAR
-
Create a new Site by navigating to Control Panel --> Sites --> Sites and try to import the LAR via Content & Data --> Web Content
-
-
Expected Result:
The import is successful with no errors. -
Actual Result:
The import fails with the following UI error:
An unexpected error occurred with the publish process. Please check your portal and publishing configuration. The model.resource.com.liferay.data.engine.model.DEDataDefinitionFieldLink FieldsGroup08544649 could not be imported because of the following error: org.hibernate.exception.ConstraintViolationException: could not execute batch.
Environment
- Liferay DXP 7.4
Resolution
- The observed behavior is a known issue/bug and is being resolved through LPS-155637
- Please create a Support ticket mentioning the provided LPS in order to get a hotfix for the same.