Page copy or move fails because of template restrictions
Page copy and move operations fail when the destination path does not permit the source page’s template. Review and update cq:allowedTemplates, allowedPaths, allowedParents, and allowedChildren settings to allow the operation.
Description description
Environment
- Adobe Experience Manager (AEM) Managed Services
- Adobe Experience Manager as a Cloud Service
- AEM as a Cloud Service - Sites
Issue/Symptoms:
- Error message indicating that the source page is not allowed below the destination path.
- A background job is submitted, but the page does not move.
- Copy or move operations are blocked even when the destination appears to allow the template.
- Copy or move operations fail because of invalid regular expressions in template path restrictions.
Cause:
The application enforces template placement rules through configuration properties such as cq:allowedTemplates, allowedPaths, allowedParents, and allowedChildren. If the source page template does not match the configured rules for the destination location, the operation is blocked. Incorrect or overly restrictive path patterns can also prevent page movement.
Resolution resolution
To resolve this issue, follow these steps:
- Identify the template assigned to the page that you want to copy or move.
- Verify that the destination location allows the source page template.
- Add the template to
cq:allowedTemplatesif it is missing. - Review the template’s
allowedPathsconfiguration and ensure that the destination path matches an allowed pattern. - Correct invalid or overly restrictive regular expressions in path restrictions.
- Update
allowedParentsorallowedChildrenif those settings block the page at the destination. - Retry the copy or move operation and verify that the page appears in the destination location.
Related reading
recommendation-more-help
experience-cloud-kcs-help-kbarticles