core icon indicating copy to clipboard operation
core copied to clipboard

PushPublish - Error Publishing Bundle: Workflow-action-already-exists

Open acurionedotcms opened this issue 8 years ago • 3 comments

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)

  1. Configure Push Publish environments
  2. Go to Sites, Copy an entire site (i.e: copy demo.dotcms.com)
  3. Right Click on copied Site and select Publish.
  4. 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):

acurionedotcms avatar Feb 22 '18 14:02 acurionedotcms

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

shaydotcms avatar Feb 28 '18 00:02 shaydotcms

Now we are unable to reproduce, but we are not sending workflows by dependency... Need fix the #13881 to test

bryanboza avatar Mar 16 '18 15:03 bryanboza

Fixed, tested in the las master // postgres // FF

bryanboza avatar Mar 28 '18 00:03 bryanboza