The -preview flag must be supplied in the api-version for such requests. #2002
Unanswered
VenuVavilala
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Your version of TFS is not supported! We support versions of TFS where 5.1 is in production and 6.x is in preview. Which version of TFS do you have? Note on context: TFS = Server |
Beta Was this translation helpful? Give feedback.
3 replies
-
I'm using on prem ADS Version Dev18.M170.8 ( ADS 2020.0.1), in our tool can we change the version to user API V6? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Migrating Pipelines from ADS on prem 2020 to ADS SaaS
[16:03:18 FTL] [v15.0.2] Error while running AzureDevOpsPipelineProcessor
System.Exception: Failed on call to get list of [ServiceConnection].
Url: GET https://Dev.azure.com/_apis/serviceendpoint/endpoints/?
Response Code:BadRequest
{"$id":"1","innerException":null,"message":"The requested version "5.1" of the resource is under preview. The -preview flag must be supplied in the api-version for such requests. For example: "5.1-preview"","typeName":"Microsoft.VisualStudio.Services.WebApi.VssInvalidPreviewVersionException, Microsoft.VisualStudio.Services.WebApi","typeKey":"VssInvalidPreviewVersionException","errorCode":0,"eventId":3000}
at MigrationTools.Endpoints.AzureDevOpsEndpoint.d__9`1.MoveNext() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.Rest\Endpoints\AzureDevOpsEndpoint.cs:line 184
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MigrationTools.Processors.AzureDevOpsPipelineProcessor.d__27.MoveNext() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.Rest\Processors\AzureDevOpsPipelineProcessor.cs:line 619
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MigrationTools.Processors.AzureDevOpsPipelineProcessor.d__9.MoveNext() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.Rest\Processors\AzureDevOpsPipelineProcessor.cs:line 83
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MigrationTools.Processors.AzureDevOpsPipelineProcessor.InternalExecute() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.Rest\Processors\AzureDevOpsPipelineProcessor.cs:line 49
at MigrationTools.Processors.Processor.Execute() in D:\a\1\s\src\MigrationTools\Processors\Processor.cs:line 106
[16:03:18 INF] [v15.0.2] AzureDevOpsPipelineProcessor completed in 00:00:00.6104192
[16:03:18 ERR] [v15.0.2] AzureDevOpsPipelineProcessor The Processor MigrationEngine entered the failed state...stopping run
[16:03:18 INF] [v15.0.2] Application is shutting down...
[16:03:18 DBG] [v15.0.2] Hosting stopping
[16:03:18 DBG] [v15.0.2] Exiting with return code: 0
[16:03:18 INF] [v15.0.2] Application Ending
[16:03:18 INF] [v15.0.2] The application ran in 00:00:03.4512820 and finished at 03/23/2024 16:03:18
[16:03:18 DBG] [v15.0.2] Hosting stopped
Config File
{
"Version": "15.0",
"LogLevel": "Verbose",
"MappingTools": [],
"Endpoints": {
"AzureDevOpsEndpoints": [
{
"Name": "Source",
"AccessToken": "fmauicmbqtkmvps4jlp2nidczjmqjzi2je4buerdkvtfkjna46ka",
"Query": {
"Query": "SELECT [System.Id], [System.Tags] FROM WorkItems WHERE [System.TeamProject] = @teamproject AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan') ORDER BY [System.ChangedDate] desc",
"Parameters": {
"TeamProject": "XXX"
}
},
"Organisation": "XXX",
"Project": "XX",
"ReflectedWorkItemIdField": "Custom.ReflectedWorkItemId",
"AuthenticationMode": "AccessToken",
"AllowCrossProjectLinking": false,
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
}
},
{
"Name": "Target",
"AccessToken": "irpxkgycwslth36judvbdm6vyqzd4skmq4p4sjfjmnqca6wdq4oq",
"Query": {
"Query": "SELECT [System.Id], [System.Tags] FROM WorkItems WHERE [System.TeamProject] = @teamproject AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan') ORDER BY [System.ChangedDate] desc"
},
"Organisation": "https://dev.azure.com/XX/",
"Project": "ADS",
"ReflectedWorkItemIdField": "Philips.Generic01",
"AuthenticationMode": "AccessToken",
"AllowCrossProjectLinking": false,
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
}
}
]
},
"Source": null,
"Target": null,
"Processors": [
{
"$type": "AzureDevOpsPipelineProcessorOptions",
"Enabled": true,
"MigrateBuildPipelines": true,
"MigrateReleasePipelines": true,
"MigrateTaskGroups": true,
"MigrateVariableGroups": true,
"MigrateServiceConnections": true,
"BuildPipelines": null,
"ReleasePipelines": null,
"RefName": null,
"SourceName": "Source",
"TargetName": "Target",
"RepositoryNameMaps": {}
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions