Failed to create workflow with GitHub app

One of my workflows listed in the .yaml file of a GitHub repository is failing. I have all of the workflows synced with the GitHub app, and the other workflows are updating correctly.

In the Dockstore app log, my error message for the workflow is:

Failed to create workflow 'Run_cSplotch':
- Converting `org.hibernate.exception.ConstraintViolationException` to JPA `PersistenceException` : could not execute batch

I’ve tried archiving the workflow which isn’t working, but I’m not sure how to fully delete it and start again.

The public repository is https://github.com/matthewse19/cSplotch-workflow/tree/main
and the workflow specifically is https://dockstore.org/workflows/github.com/matthewse19/cSplotch-workflow/Run_Splotch:main?tab=info.

Hi Matthew,

The issue is that you have the workflow run_csplotch already created in Dockstore (you had that name in an earlier revision of your .dockstore.yml), and you’re now trying to create a workflow run_cSplotch, with a capital S.

Dockstore does not allow duplicate workflows with the same org/repository (case-sensitive) and workflow names (case-insensitive). If curious, here’s the issue with background to why we added that check.

We currently don’t let you delete workflows in Dockstore. Our next release, later this year, will let users delete workflows that have never been published.

Here’s what you can do in the current release:

  1. Rename run_cSplotch back to run_csplotch in your .dockstore.yml
  2. Rename run_cSplotch to a name that doesn’t match case-insensitively, e.g., runCsplotch, etc.

I know that’s not ideal, but hopefully one of those will work for you.

Also, I know the error message in the logs was not helpful; it didn’t provide any details on what the constraint violation was. I think we may have fixed that in the upcoming release, but I’ll make sure to log an issue if we haven’t.

Charles

Worked!

Thanks for the quick response Charles.

Great, thanks for letting us know!

I created an issue to make the problem clearer: Have a more informative message for duplicate workflow name error · Issue #5997 · dockstore/dockstore · GitHub