Issue
- When I import a LAR file, it fails with a missing reference error.
Environment
- Liferay DXP 7.0 +
Resolution
- The fix for the issue is LPS-108453. It is fixed on DXP 7.0 fix pack de-91. DXP 7.1 fix pack 17, and DXP 7.2 fix pack DXP 5
- The solution would be to disable the validation of missing references prior to the import, and this can be achieved by performing the following:
- Go to Control Panel --> Configuration --> System Settings -->Infrastructure (in DXP 7.0 Web Experience) --> Export/Import
- Find the option "Validate Missing References" and uncheck it.
Note: This option should be used carefully. If possible, only for the first import, to get around the circular dependencies.
Using this option can lead to inconsistencies, and you should always try to import without it first. If you see missing reference errors, you should take notes of these, before unchecking this option.
After the imports are done, all these contents should be checked manually, whether their references are correct, and fix them manually if they are not.
Unfortunately, there could be still more errors, even with this new configuration value.
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In