Error: "You are not allowed to replace a versioned package with a non-versioned package"
Environment Details
Attempting to replace a workflow that was saved into Gallery from Designer with one that was uploaded from Server API fails wit the following error:
You are not allowed to replace a versioned package with a non-versioned package.
image.png
Cause
The error happens because workflows uploaded from the Server API are not stored in Server in the same way as workflows uploaded from the Designer. These workflows do not have the same versioning metadata and cannot be used to replace a workflow that has versioning metadata. This is by design to prevent the loss of versioning information when replacing workflows.
Resolution
Revise the workflow uploaded from API in Designer first so that the versioning metadata is updated.
Steps:
1. Open the workflow uploaded from API in Designer using File > Open Workflow > My Company's Server.
2. Click Save. This will create a new version of this workflow.
3. After this, you can replace a workflow saved from Designer using this copy of the workflow.