PushPublish - Error Publishing Bundle: Workflow-action-already-exists
Trying to publish an entire Site, Fails. Log in the Receiver side show Error Publishing Bundle: Workflow-action-already-exists
Expected Behavior
Should be able to publish an entire site with an existing Workflow
Current Behavior
[21/02/18 15:46:28:551 CST] INFO receiver.BundlePublisher: Start of Handler: WorkflowHandler [21/02/18 15:46:29:096 CST] ERROR business.WorkflowAPIImpl: Violation of PRIMARY KEY constraint pkworkflowactionstep'. Cannot insert duplicate key in object 'dbo.workflowactionstep'. The duplicate key value is (7309ed0d-cbf9-4b02-aa3c-8b599fd2a718, c965f6a5-0a4f-4b87-899d-053f84012e5e).{ "SQL": ["insert into workflowactionstep(actionid, stepid, actionorder) values (?,?,?)"], "maxRows": [-1], "offest": [0], "params": [ "7309ed0d-cbf9-4b02-aa3c-8b599fd2a718", "c965f6a5-0a4f-4b87-899d-053f84012e5e", 0 ] } See full Log: https://gist.github.com/acurionedotcms/6940833aafa349471e3d5c9c63022e36
Possible Solution
Modify Workflow Handler, so Workflow Action Steps are updated if they exist already.
Steps to Reproduce (for bugs)
- Configure Push Publish environments
- Go to Sites, Copy an entire site (i.e: copy demo.dotcms.com)
- Right Click on copied Site and select Publish.
- Check the status in the Push Publish queue.
Your Environment
- dotCMS version used: latest master
- Browser Name and version:
- Operating System and version:
- Application Server and version:
- Java Brand and version:
- Database and version: Tested on postgres (sender) and MSSQL (receiver)
- Application module (if apply):
Passed QA. Successfully pushed entire site Check logs in receiver, error related to workflow action is not showing. Tested on master branch Mac OS 10.10 / Postgres 9.6.6 / Chrome v54.0.2840.98 / Tomcat 8 / Java 8.6
Now we are unable to reproduce, but we are not sending workflows by dependency... Need fix the #13881 to test
Fixed, tested in the las master // postgres // FF