REST API calls from Integration to Deployment pipeline is failing with PipelineValidationException

Copper Contributor

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 Invoke-RestMethod: /home/vsts/work/_temp/952c4854-61d0-4416-8cf5-108d6579b3ba.ps1:51
2024-07-04T04:01:24.0153574Z Line |
2024-07-04T04:01:24.0155598Z   51 |  $PIPELINE = Invoke-RestMethod -Method Post -Uri $URL `
2024-07-04T04:01:24.0156386Z      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-07-04T04:01:24.0158174Z      |  {   "$id": "1",   "innerException": null,   "message": "The
2024-07-04T04:01:24.0159453Z      | \u0027environment\u0027 parameter value \u0027DEV\u0027 is not a valid
2024-07-04T04:01:24.0160547Z      | value.",   "typeName":
2024-07-04T04:01:24.0161794Z      | "Microsoft.Azure.Pipelines.WebApi.PipelineValidationException,
2024-07-04T04:01:24.0163140Z      | Microsoft.Azure.Pipelines.WebApi",   "typeKey":
2024-07-04T04:01:24.0164548Z      | "PipelineValidationException",   "errorCode": 0,   "eventId": 3000 }
2024-07-04T04:01:24.0860549Z 
2024-07-04T04:01:24.0921412Z ##[error]PowerShell exited with code '1'.

 

1 Reply
As 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)

| \u0027environment\u0027 parameter value \u0027DEV\u0027 is not a valid