Skip to content

Error: vra_catalog_item_vro_workflow cannot be created or imported #619

Description

@powertim

Code of Conduct

This project has a Code of Conduct that all participants are expected to understand and follow:

vRA Version

8.18.1.36791 (24282366)

Terraform Version

1.11.1

vRA Terraform Provider Version

0.17.0

Affected Resource(s)

  • vra_catalog_item_vro_workflow

Terraform Configuration Files

resource "vra_catalog_item_vro_workflow" "catalog_item_vro_workflow" {
  name        = "terraform-vro-workflow"
  description = "Catalog Item [terraform-vro-workflow] created by Terraform"
  project_id  = var.project_id

  workflow_id = var.workflow_id
}

Expected Behavior

  • terraform apply -> create or update vra_catalog_item_vro_workflow
  • terraform import vra_catalog_item_vro_workflow.catalog_item_vro_workflow "f419d363-82ba-4a7e-b0df-c530f0848325 -> import existing vra_catalog_item_vro_workflow into state

Actual Behavior

  • terraform apply ->
│ Error: response status code does not match any response statuses defined for this endpoint in the swagger spec (status 500): {}
│
│   with vra_catalog_item_vro_workflow.catalog_item_vro_workflow,
│   on catalog_item_vro_workflows.tf line 8, in resource "vra_catalog_item_vro_workflow" "catalog_item_vro_workflow":
│    8: resource "vra_catalog_item_vro_workflow" "catalog_item_vro_workflow" {
│
  • terraform import vra_catalog_item_vro_workflow.catalog_item_vro_workflow "f419d363-82ba-4a7e-b0df-c530f0848325 ->
│ Error: response status code does not match any response statuses defined for this endpoint in the swagger spec (status 400): {}
│
│

Steps to Reproduce

Screenshots

terraform apply
vra_catalog_item_vro_workflow.catalog_item_vro_workflow: Creating...
╷
│ Error: response status code does not match any response statuses defined for this endpoint in the swagger spec (status 500): {}
│
│   with vra_catalog_item_vro_workflow.catalog_item_vro_workflow,
│   on catalog_item_vro_workflows.tf line 1, in resource "vra_catalog_item_vro_workflow" "catalog_item_vro_workflow":1: resource "vra_catalog_item_vro_workflow" "catalog_item_vro_workflow" {
│
╵

terraform import vra_catalog_item_vro_workflow.catalog_item_vro_workflow "f419d363-82ba-4a7e-b0df-c530f0848325"
vra_catalog_item_vro_workflow.catalog_item_vro_workflow: Importing from ID "f419d363-82ba-4a7e-b0df-c530f0848325"...
vra_catalog_item_vro_workflow.catalog_item_vro_workflow: Import prepared!
  Prepared vra_catalog_item_vro_workflow for import
vra_catalog_item_vro_workflow.catalog_item_vro_workflow: Refreshing state... [id=f419d363-82ba-4a7e-b0df-c530f0848325]
╷
│ Error: response status code does not match any response statuses defined for this endpoint in the swagger spec (status 400): {}
│ 
│ 
╵

Debug Output

2026-03-18T09:41:42.695+0100 [INFO]  provider.terraform-provider-vra_v0.17.0.exe: 2026/03/18 09:41:42 HTTP/1.1 500 Internal Server Error: timestamp="2026-03-18T09:41:42.695+0100"
2026-03-18T09:41:42.696+0100 [ERROR] vertex "vra_catalog_item_vro_workflow.catalog_item_vro_workflow" error: response status code does not match any response statuses defined for this endpoint in the swagger spec (status 500): {}
2026-03-18T09:41:42.697+0100 [INFO]  provider.terraform-provider-vra_v0.17.0.exe: 2026/03/18 09:41:42 {"message":"Internal Server Error [Error Reference ID: 49fe5973-f58f-486d-aeab-d7d8de61f5f1]","statusCode":500,"errorCode":10001,"referenceId":"49fe5973-f58f-486d-aeab-d7d8de61f5f1"}: timestamp="2026-03-18T09:41:42.695+0100"

Panic Output

N/A

Important Factoids

  1. The resource is asking for a project ID but no project has to be selected when creating same resource from UI (Service Broker > Content Sources> NEW).
    POST payload dump:
{
  "config": {
    "workflows": [
      {
        "id": "8B81808080808080808080808080808080808080012995053491651398b094fa1",
        "name": "Add a broker",
        "description": "Adds an AMQP broker.",
        "version": "2.0.1",
        "integration": {
          "endpointConfigurationLink": "/resources/endpoints/abc2bced-6308-4a52-9d62-12bc33fa6125",
          "name": "embedded-VRO",
          "endpointUri": "https://<vra_url>:443"
        }
      }
    ]
  },
  "typeId": "com.vmw.vro.workflow",
  "name": "TEST VRO",
  "description": "Test workflow"
}

Still doesn't point to any project... same for an update on this resource from UI (Service Broker > Content Sources> NEW)

  1. Workflows can be multiples, so workflow_id parameter should be a list of IDs

References

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 other comments that do not add relevant new information or questions, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions