Forum Discussion
Ezhilvalan_Jesuraj
Jul 04, 2024Copper Contributor
REST API calls from Integration to Deployment pipeline is failing with PipelineValidationException
REST API calls from Integration pipeline to Deployment pipeline is failing with PipelineValidationException. Please provide suggestions on how to debug and troubleshoot this issue as the thrown error message is not clear.
2024-07-04T04:01:22.8596291Z URL: https://dev.azure.com/udtrucks-org1/UD%20KOLA/_apis/pipelines/1035/runs?api-version=7.0 2024-07-04T04:01:24.0152601Z [31;1mInvoke-RestMethod: [0m/home/vsts/work/_temp/952c4854-61d0-4416-8cf5-108d6579b3ba.ps1:51[0m 2024-07-04T04:01:24.0153574Z [31;1m[0m[36;1mLine |[0m 2024-07-04T04:01:24.0155598Z [31;1m[0m[36;1m[36;1m 51 | [0m $PIPELINE = [36;1mInvoke-RestMethod -Method Post -Uri $URL `[0m 2024-07-04T04:01:24.0156386Z [31;1m[0m[36;1m[36;1m[0m[36;1m[0m[36;1m | [31;1m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m 2024-07-04T04:01:24.0158174Z [31;1m[0m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m | [31;1m { "$id": "1", "innerException": null, "message": "The[0m 2024-07-04T04:01:24.0159453Z [31;1m[0m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m[31;1m[36;1m | [31;1m\u0027environment\u0027 parameter value \u0027DEV\u0027 is not a valid[0m 2024-07-04T04:01:24.0160547Z [31;1m[0m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m[31;1m[36;1m[31;1m[36;1m | [31;1mvalue.", "typeName":[0m 2024-07-04T04:01:24.0161794Z [31;1m[0m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m[31;1m[36;1m[31;1m[36;1m[31;1m[36;1m | [31;1m"Microsoft.Azure.Pipelines.WebApi.PipelineValidationException,[0m 2024-07-04T04:01:24.0163140Z [31;1m[0m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m[31;1m[36;1m[31;1m[36;1m[31;1m[36;1m[31;1m[36;1m | [31;1mMicrosoft.Azure.Pipelines.WebApi", "typeKey":[0m 2024-07-04T04:01:24.0164548Z [31;1m[0m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m[31;1m[36;1m[31;1m[36;1m[31;1m[36;1m[31;1m[36;1m[31;1m[36;1m | [31;1m"PipelineValidationException", "errorCode": 0, "eventId": 3000 }[0m 2024-07-04T04:01:24.0860549Z 2024-07-04T04:01:24.0921412Z ##[error]PowerShell exited with code '1'.
- chamindacBrass ContributorAs your error message says your parameter values supplied seems to be invalid. If you need further help we need more details such as what are parameter setting in your deployment pipline and how it is invoked from integration pipline (the invoke task details)
| [31;1m\u0027environment\u0027 parameter value \u0027DEV\u0027 is not a valid