Error waiting for DVS creation to complete: A specified parameter was not correct: spec.name

I get error with my following code:

data "vsphere_host" "host" {
  name          = var.ENVIRONMENT_CONTEXT__VARIABLES__HOST
  datacenter_id = "${data.vsphere_datacenter.dc.id}"
}
data "vsphere_compute_cluster" "cluster" {
  name          = "New Cluster"
  datacenter_id = "${data.vsphere_datacenter.dc.id}"
}
resource "vsphere_distributed_virtual_switch" "dvs" {
  name          = "terraform-pahlevanzadeh-dvs"
  datacenter_id = "${data.vsphere_datacenter.dc.id}"

  uplinks         = ["tfup1"]
  active_uplinks  = ["tfup1"]
  
  host {
     host_system_id = "${data.vsphere_host.host.id}"
     //devices        = ["${var.network_interfaces}"]
     devices        = ["vmnic0"]
  }
  
}

My error is:

╷
│ Error: error waiting for DVS creation to complete: A specified parameter was not correct: spec.name
│ 
│   with vsphere_distributed_virtual_switch.dvs,
│   on main.tf line 82, in resource "vsphere_distributed_virtual_switch" "dvs":
│   82: resource "vsphere_distributed_virtual_switch" "dvs" {
│ 
╵

you might be able to catch the complete xml while using provider debug log. Right now, I only can guess about the length or format or special characters or duplicates.

TF_LOG_PROVIDER=DEBUG terraform apply

You have to delete DVS with same name on vCenter.