Comala Publishing Cloud is creating duplicate pages in the target space

Comala Publishing Cloud is creating duplicate pages in the target space

 Problem

There are duplicated pages in the target space:

image_2025-05-21_101755821.png

This issue typically arises when the workflow established in the source space includes a trigger that activates the publish-page macro upon reaching the final state of the workflow. It's important to note that the publishing task is already being executed in the background by Comala Publishing, as detailed in: Publish a page on transition to a Comala workflow final state. In summary, the problem is occurring because the publishing task is being initiated twice.

 Solution

Please follow the steps below to address this behavior:

  1. Navigate to the source space and select Space settings.

  2. Locate Comala Document Management and open the applied workflow using the code editor.

    image_2025-05-21_102334080.png
  3. Scroll down to the triggers section and find the one that includes the publish-page macro.

    image-20250521-083641.png
  4. Remove the highlighted trigger and save the changes

  5. Delete the duplicated page from the target space:

    image-20250521-083931.png
  6. Go to the issued page in the source space and open the Page Analysis diagnostic tool:

    image-20250521-084217.png
  7. In the Overview tab it can be seen which page from the target space is currently linked with the source space page:

    image-20250521-084747.png

    In this case it’s linked with the duplicated page we deleted, which is not the expected one.

  8. To fix this, go to the Diagnostics tab and click on ‘Link it to this page’:

    image-20250521-090741.png
  9. Now the expected page is displayed as Target Page in the Overview tab:

    image-20250521-091814.png
  10. Once this issue is resolved, please rerun the workflow process until it reaches the final state again, and confirm that the problem no longer occurs.