I was modifying deployment steps this morning and deleted an old step that the versioning was tied to. Now I have a blank entry in the versioning step and it will not let me chose the correct step. Instead I get this error:
There was a problem with your request.
The package step provided could not be found in the project’s deployment process.
Thanks for reaching out. I tried to reproduce this with the below steps in 3.5.1 but it worked as expected on my end. Can you double check that these steps allow you to reproduce this error?
Add 2 package deployment steps to a project.
Tie the release versioning strategy to one of them.
Delete that step.
Attempt to tie the release versioning strategy to the other package step (which should now be the only one in the process).
If you are using different steps to repro this, please let me know how you are doing it so I can reproduce it.
Also could you please let me know which version of Octopus are you running?
I couldn’t reproduce this with those steps unfortunatelly. Is there a chance you can pick a time on my calendar to schedule a screensharing sessiong so you can show it to me?
Had the same problem. Started the project by cloning an existing one, removed my existing ‘Deploy a Nuget Package’ step, then added the new ‘Deploy an IIS Web Site’ step. Got the error as soon as the new step type was added, configured & saved. The screen above gave the same error.
Also, if I modify the ‘Release Versioning’ to ‘Generate version numbers using a template’, and set the template to the default, I get the following error:
There was a problem with your request.
• A package step must be provided to enable automatic release creation.
After reviewing the project export sent by Jeff, and later on having a screensharing session with him (Thx Jeff!), I was able to track down the cause of the issue and came up with a fix, but unfortunately I’m still not entirely sure how to reproduce this bug without hacking my way around in the database manually.
The error message(s)
"A package step must be provided to enable automatic release creation."
"The package step provided could not be found in the project’s deployment process."
The above error shows up whenever the user tries to:
Add a step to the deployment process
Add a Library Variable set to the project
Change the release versioning stratgy
Enable/Disable Automatic Release Creation
The cause
This happens when the project’s JSON document has a reference for a step that no longer exists. The way to spot this is by browsing [octopus url]/api/project/[project id] and looking for:
If AutoCreateRelease is set to True and ReleaseCreationPackageStepId has a GUID value, this means the the project is still tied to the step that no longer exists.
The Fix
Using the below API script you can set AutoCreateRelease to False and ReleaseCreatingPackageStepId to "" so the project no longer dependes on deleted step
Unfortunately at the time of this message we still haven’t figured out how to reproduce this error without tweaking the database manually (we we strongly encourage everyone to avoid). If we every get a set of steps that allows us to reproduce this, we’ll surely work on a more permanent fix.