terraform-provider-azuredevops: Error parsing Work Item Template ID, got : invalid UUID length: 0
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave “+1” or “me too” comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform (and Azure DevOps Provider) Version
PS /Users/timja/projects/hmcts/ops-bootstrap/Terraform/Environments/Sandbox> terraform -v
Terraform v0.13.2
+ provider registry.terraform.io/hashicorp/azuread v0.11.0
+ provider registry.terraform.io/hashicorp/azurerm v2.15.0
+ provider registry.terraform.io/hashicorp/random v2.3.0
+ provider registry.terraform.io/terraform-providers/azuredevops v0.0.1
Your version of Terraform is out of date! The latest version
is 0.13.4. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
data.azuredevops_project
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
data "azuredevops_project" "project" {
project_name = "DevOps"
}
Debug Output
can’t see anything useful there
Panic Output
Expected Behavior
data source works
Actual Behavior
Error: Error flattening project: Error parsing Work Item Template ID, got : invalid UUID length: 0
on ../../Modules/Infrastructure/Management/main.tf line 323, in data "azuredevops_project" "project":
323: data "azuredevops_project" "project" {
Steps to Reproduce
terraform apply
Important Factoids
This project wasn’t created by AzureDevOps, looks like it’s expecting something to be setup that isn’t.
References
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 21 (5 by maintainers)
Commits related to this issue
- fix: flatten project falls back to organization default template ID The Azure DevOps API does not guarantee a process template ID will be returned when getting a project detail. This seems to be caus... — committed to wwmoraes/terraform-provider-azuredevops by wwmoraes 2 years ago
- fix: flatten project falls back to organization default template ID The Azure DevOps API does not guarantee a process template ID will be returned when getting a project detail. This seems to be caus... — committed to wwmoraes/terraform-provider-azuredevops by wwmoraes 2 years ago
We’ve recently come across this issue, despite nothing changing in our config (was working up until this week), and it’s stopping us being able to use this provider. I’m wondering if this is going to start becoming a more widespread issue.
@tmeckel thanks for the suggestion, I’ve implemented it on #626 😄
@tmeckel the default process at the organization level is set to “Agile”. So what you mention above seems to make sense, that it does not return
capabilities.processTemplate
if the project process matches the default org process.So what I have seen is that none of the projects that I have viewed that are defined as “Agile” return the property. Which means I cannot use this data resource provider for any other these projects. This seems to be a fairly fundamental issue to using the provider when a data resource is needed?
Can you help using
https://dev.azure.com/{orgniazaiton}/_apis/projects/{projectID or projectName}?includeCapabilitie=true&api-version=5.1-preview.1
to get the project properties and check whethercapabilities.processTemplate
block exist. Normally the response will looks like: