AEM as a Cloud Service: Content Fragment auto-save and mandatory fields
This article explains the behavior of the Content Fragment Editor in Adobe Experience Manager as a Cloud Service, where fragments are auto-saved, even if mandatory fields are incomplete, and provides guidance for handling such fragments in downstream systems.
Description description
Environment
Adobe Experience Manager as a Cloud Service (AEMaaCS), all versions
Symptoms
- When authoring a Content Fragment, the fragment is auto-saved, even if mandatory fields (such as
name) aren’t filled in. - The incomplete fragment is saved in the editing environment but can’t be published until all mandatory fields are completed.
- Downstream systems that consume fragments directly from the editing environment have errors or broken functionality, if mandatory fields are missing.
- No error message is shown at save time; validation occurs only at publish time.
Cause
The auto-save feature is designed to prevent data loss during editing by saving drafts regardless of completeness. Mandatory field validation is enforced only when attempting to publish the fragment.
Resolution resolution
Follow the steps below to resolve the issue:
-
Be aware that the Content Fragment Editor auto-saves fragments in the editing environment, even if mandatory fields are incomplete. This is intended to protect against data loss during editing.
-
Mandatory field validation is enforced only at the time of publication. Fragments with missing mandatory fields can’t be published.
-
For downstream consumption:
-
Ensure that only published and validated fragments are used in production or live environments.
-
If fragments must be consumed directly from the editing environment, implement logic to check for the presence of mandatory fields before using the fragment.
-
Handle missing or null mandatory fields gracefully (For example: by skipping incomplete fragments or displaying a warning message) to avoid breaking downstream implementations.
-
-
There is currently no supported configuration to disable auto-save or to block saving when mandatory fields are empty in the Content Fragment Editor.
To verify, attempt to publish a fragment with missing mandatory fields. The system should prevent publication until all required fields are completed.