Error: "validation error on field 'name': String value has invalid format" when managing or deleting a vApp or Virtual machine from Cloud Director Portal
search cancel

Error: "validation error on field 'name': String value has invalid format" when managing or deleting a vApp or Virtual machine from Cloud Director Portal

book

Article ID: 373757

calendar_today

Updated On: 03-10-2025

Products

VMware Cloud Director

Issue/Introduction

  • Managing or deleting a vApp or VM fails with the following error:

    Details: [ ########-####-####-####-############ ] validation error on field 'name': String value has invalid format, value: [ vApp/vm Name]

  • The name of the vApp or VM starts or ends with a space character. 
  • Removing the space character may fail with the below error:

    [ ########-####-####-####-############ ] Folder vApp Name (########-####-####-####-############) does not exist in our inventory, but vCenter Server claims that it does.

  • When deleting the vApp, the folder may not exist in the vCenter inventory.
  • When deleting the vApp, there may be no VMs within the vApp.
  • Delete and few other options for the vApp or VM may be greyed out.

Environment

VMware Cloud Director 10.x

Cause

This issue can occur when the vApp or virtual machine to be managed or deleted has a leading or trailing space character in the name field. 

Resolution

If updating the vApp or virtual machine name via UI or API is not working from your environment, contact Broadcom Support and note this Article ID (373757) in the problem description. For more information, see Creating and managing Broadcom support cases.