Global site DDMs are not exported
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- We have some DDMs defined in Global site.
- In a second site (Site A), we define some DDLs that use those DDMs from Global site.
- We export the Site A DDLs. When we try to import them in a third site (Site B), several errors arise because of DDMs are not included in the export file, so import action is not possible: referenced DDMs do not exist.
Environment
- DXP 7.0 with Fix Pack 85+
Resolution
- First of all, it is mandatory to define a DDL in Global site for every DDM. This is because is not possible to export DDMs without DDLs using them.
- Then you can define in a second site (Site A) your DDLs using, also, the Global site DDMs.
- Then you have to export both Global site and Site A DDLs. The key is this export includes both DDLs and DDMs.
- In the target instance (with Global and Site B sites) you have to import, firstly, the (source) Global site data and then the Site A data. This way DDLs imported in Site B can reference DDMs: these already are in the Global site.
Did this article resolve your issue ?