While importing a project exported from our local Server instance into our Cloud instance, I get the following error:
Found unmapped Ids in document ‘2.4.11’ (Octopus.Core.Model.Projects.Release): “Id”: “DVSM-2829-D4C63A85E7894C5D8C20D9297FEA1A43”,. Reference path: Project ‘SQL - Calendar Request’ => Release ‘2.4.11’
The ID referenced appears to be build information as it references a JIRA ticket. I resolved the error in older releases by deleting the release noted. However, this is the most recent release and we’d like to preserve that information if possible. Full trace can be provided.
Would it be possible for you to share a copy of the project export and the password? I’d like to try this in a test environment to see if we can figure out a better workaround.
Thank you for your patience. I was able to get the import to work by removing the work item information from the release and associated deployments. It does look like this is probably a bug with the Project Import/Export tool.
Unfortunately, this was a bit of a manual process with several steps. Essentially, all of the Work Items associated with the Id DVSM-2829-D4C63A85E7894C5D8C20D9297FEA1A43 need to be removed.
To do this, I opened all the JSONs in Notepad++, then did a “Find All in All Open Documents” for the Id. I then copied everything between the curly brackets { } then did “Replace All in All Open Documents” and replaced it with an empty curly bracket set {}. Repeat the process until the Id that generated the error cannot be found in any of the documents.
I saved all the documents in the original ZIP file as creating a new ZIP file won’t work.
Once this is done you’ll see a warning message upon import stating that files were modified.
Thanks, Donny. The process you outline did succeed for me. If there are any additional details on the root cause of this let me know. We have about 100 projects to migrate and if we can proactively identify which projects this issue may occur for, it will help us strategize our move. Thanks!
Please provide a link to any bug reports/tickets generated from this.
I’m glad to hear that worked for you. I have not yet hear back internally regarding this issue. However, I am working on reproducing this to confirm a bug and log an issue on GitHub.
Once I have completed my testing, I’ll let you know what I find. In the meantime, if you run into any more issues or have any more questions, please feel free to reach out.