500 error when publishing Content Fragments in AEMaaCS

In Adobe Experience Manager as a Cloud Service, publishing Content Fragments through the New Editor returns a 500 error when the publishing workflow fails to create a workflow package. To fix this issue, grant the required permissions on /etc/workflow/packages to the affected authoring group.

Description description

Environment

  • Adobe Experience Manager as a Cloud Service (AEMaaCS), all versions

Issue/Symptoms

  • Publishing Content Fragments using the New Editor in AEM Cloud Sites returns a 500 error.
  • Manage/Quick Publish options from the classic screens continue to work as expected.
  • The network call for publishing returns HTTP 500 with a message about failure to create a workflow package.
  • Error logs include messages such as Unable to create the workflow package and repeated attempts to create the workflow package.

Resolution resolution

Follow the steps below to resolve the issue.

  1. Review the permissions for the affected authoring group and confirm that it has both jcr:read and rep:write permissions on /etc/workflow/packages.

  2. Choose one of the following approaches to grant the required permissions:

    • Preferred: Add the authoring group to the built-in workflow-users group, which already has the necessary access.
    • Alternative: Grant jcr:read and rep:write permissions directly on /etc/workflow/packages to the affected group.
  3. Apply the permission changes using repoinit (config-as-code). Manual changes in the UI or directly on the environment will not persist across deployments.

    Example repoinit script to grant permissions directly:

    set ACL on /etc/workflow/packages

      allow jcr:read,rep:write to group "<your-authoring-group>"

    end 

  4. Replace <your-authoring-group> with the actual group name.

  5. Deploy the repoinit configuration.

  6. After deployment, have an affected author log out and log back in, then retry publishing a Content Fragment via the New Editor to confirm the issue is resolved.

recommendation-more-help
experience-cloud-kcs-help-kbarticles